ring-buffer: Force inline of hotpath helper functions
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 24 Nov 2016 01:35:32 +0000 (20:35 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 24 Nov 2016 01:35:32 +0000 (20:35 -0500)
commit2289d5672f99d36764cbf66e13b5401f700e7043
tree64726cffc8e59b25c34079bc09514d8049016016
parent52ffabe3848a1ebd944cdf7801a77247b1cb46d5
ring-buffer: Force inline of hotpath helper functions

There's several small helper functions in ring_buffer.c that are used in the
hot path. For some reason, even though they are marked inline, gcc tends not
to enforce it. Make sure these functions are always inlined.

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/ring_buffer.c