]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Consolidate add_timestamp to remove some branches
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 30 Jun 2020 12:59:26 +0000 (08:59 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 2 Jul 2020 02:11:22 +0000 (22:11 -0400)
commit78aa51088a908a1159f8d7a500a8b5c2b1990a3a
tree4851ff13460d9afe47e7091e0a7a90a9dcc67a2b
parent92a8513a860e906b26da8f6ed7a02c1fdf900326
ring-buffer: Consolidate add_timestamp to remove some branches

Reorganize a little the logic to handle adding the absolute time stamp,
extended and forced time stamps, in such a way to remove a branch or two.
This is just a micro optimization.

Also add before and after time stamps to the rb_event_info structure to
display those values in the rb_check_timestamps() code, if something were to
go wrong.

Suggested-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c