]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: Create a always_inlined __trace_buffer_lock_reserve()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 23 Nov 2016 16:29:58 +0000 (11:29 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 23 Nov 2016 16:29:58 +0000 (11:29 -0500)
commit3e9a8aadca4807b4eadd33a50014c9b2767a4f1f
tree464645f993a63256266c1d89ea1fee82f21b8f1a
parent7d436400223bb46e9f88e6bba6f8d867acf0d82c
tracing: Create a always_inlined __trace_buffer_lock_reserve()

As Andi Kleen pointed out in the Link below, the trace events has quite a
bit of code execution. A lot of that happens to be calling functions, where
some of them should simply be inlined. One of these functions happens to be
trace_buffer_lock_reserve() which is also a global, but it is used
throughout the file it is defined in. Create a __trace_buffer_lock_reserve()
that is always inlined that the file can benefit from.

Link: http://lkml.kernel.org/r/20161121183700.GW26852@two.firstfloor.org
Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c