tracepoints: Code clean up
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 4 Feb 2021 19:30:04 +0000 (14:30 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 9 Feb 2021 17:27:29 +0000 (12:27 -0500)
commit7211f0a25781ace5f79b272318b4c60b5dcfd413
tree04b6f10a7566c162fb398c35a45b567445aa58f1
parentd9a1be1be331fc857d3fe29f86c3a305950b35a9
tracepoints: Code clean up

Restructure the code a bit to make it simpler, fix some formatting problems
and add READ_ONCE/WRITE_ONCE to make sure there's no compiler load/store
tearing to the variables that can be accessed across CPUs.

Started with Mathieu Desnoyers's patch:

Link: https://lore.kernel.org/lkml/20210203175741.20665-1-mathieu.desnoyers@efficios.com/
And will keep his signature, but I will take the responsibility of this
being correct, and keep the authorship.

Link: https://lkml.kernel.org/r/20210204143004.61126582@gandalf.local.home
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/tracepoint.h
kernel/tracepoint.c