]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Use a no_filter_buffering_ref to stop using the filter buffer
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 16 Mar 2021 16:41:05 +0000 (12:41 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 18 Mar 2021 16:58:26 +0000 (12:58 -0400)
commit1148eee195c650db2353288c134780bac4152264
tree6e81519228b10dea452886eb2bbc1ae8a1450877
parent529a6310c594c23c15c16f85d78b65c206f48dab
tracing: Use a no_filter_buffering_ref to stop using the filter buffer

Currently, the trace histograms relies on it using absolute time stamps to
trigger the tracing to not use the temp buffer if filters are set. That's
because the histograms need the full timestamp that is saved in the ring
buffer. That is no longer the case, as the ring_buffer_event_time_stamp()
can now return the time stamp for all events without all triggering a full
absolute time stamp.

Now that the absolute time stamp is an unrelated dependency to not using
the filters. There's nothing about having absolute timestamps to keep from
using the filter buffer. Instead, change the interface to explicitly state
to disable filter buffering that the histogram logic can use.

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