ring-buffer: Incorporate absolute timestamp into add_timestamp logic
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 29 Jun 2020 02:52:26 +0000 (22:52 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 30 Jun 2020 20:16:14 +0000 (16:16 -0400)
commit7c4b4a5164fbedc11c23e3671bd90ba0d23a5efd
treeb0fda34b5d2451a2a738969704e16a4792a2a446
parenta389d86f7fd0902e4ce4136a5601988dbd371eb1
ring-buffer: Incorporate absolute timestamp into add_timestamp logic

Instead of calling out the absolute test for each time to check if the
ring buffer wants absolute time stamps for all its recording, incorporate it
with the add_timestamp field and turn it into flags for faster processing
between wanting a absolute tag and needing to force one.

Link: http://lkml.kernel.org/r/20200629025259.154892368@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c