]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Always inline ftrace_hash_empty() helper function
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 1 May 2014 16:44:50 +0000 (12:44 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 14 May 2014 15:37:28 +0000 (11:37 -0400)
commit698c93c71c32e0ba3c00e98f5970d5394a4dd315
tree79a6312ecb0ed728adb66f731bc88f1d55632904
parent482f887b1af636f908fbe4caf4a947828b3a18d4
ftrace: Always inline ftrace_hash_empty() helper function

The ftrace_hash_empty() function is a simple test:

return !hash || !hash->count;

But gcc seems to want to make it a call. As this is in an extreme
hot path of the function tracer, there's no reason it needs to be
a call. I only wrote it to be a helper function anyway, otherwise
it would have been inlined manually.

Force gcc to inline it, as it could have also been a macro.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c