]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Pass buffer of event to trigger operations
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 16 Mar 2021 16:41:03 +0000 (12:41 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 18 Mar 2021 16:58:26 +0000 (12:58 -0400)
commite21a69b3019e25a00f3910b644b1c069e8ecbc32
tree21504891aad81b71e9dcb3afc2f2b9ed6f193aed
parente2d8cb88f60ea8e663ea1479f80129f95f67c421
tracing: Pass buffer of event to trigger operations

The ring_buffer_event_time_stamp() is going to be updated to extract the
time stamp for the event without needing it to be set to have absolute
values for all events. But to do so, it needs the buffer that the event is
on as the buffer saves information for the event before it is committed to
the buffer.

If the trace buffer is disabled, a temporary buffer is used, and there's
no access to this buffer from the current histogram triggers, even though
it is passed to the trace event code.

Pass the buffer that the event is on all the way down to the histogram
triggers.

Link: https://lkml.kernel.org/r/20210316164113.542448131@goodmis.org
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/trace_events.h
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events_hist.c
kernel/trace/trace_events_trigger.c