summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-03-16 17:41:07 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-03-18 17:58:26 +0100
commitd8279bfc5e9598682f657606d3830ab65932cfe4 (patch)
tree6cd284bd35cbf8ed816225a9dab28fb74fcce4c2 /init
parentring-buffer: Add verifier for using ring_buffer_event_time_stamp() (diff)
downloadlinux-d8279bfc5e9598682f657606d3830ab65932cfe4.tar.xz
linux-d8279bfc5e9598682f657606d3830ab65932cfe4.zip
tracing: Add tracing_event_time_stamp() API
Add a tracing_event_time_stamp() API that checks if the event passed in is not on the ring buffer but a pointer to the per CPU trace_buffered_event which does not have its time stamp set yet. If it is a pointer to the trace_buffered_event, then just return the current time stamp that the ring buffer would produce. Otherwise, return the time stamp from the event. Link: https://lkml.kernel.org/r/20210316164114.131996180@goodmis.org Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions