mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
The function rb_reserved_next_event() is called by two functions: ring_buffer_lock_reserve() and ring_buffer_write(). This is in a very hot path of the tracing code, and it is best that they are not functions. The two callers are basically wrapers for rb_reserver_next_event(). Removing the function calls can save execution time in the hotpath of tracing. Link: http://lkml.kernel.org/r/[email protected] Reported-by: Andi Kleen <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>