]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/trace/ring_buffer.c
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)
commit58fbc3c63275c6255a10ae151cc3882d9190c4e0
tree4851ff13460d9afe47e7091e0a7a90a9dcc67a2b
parent75b21c6dfa2d816bcabac24a530d9cffc12092b8
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