summaryrefslogtreecommitdiff
path: root/samples/watch_queue
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2026-02-07 22:24:18 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2026-02-08 21:01:11 -0500
commit64dee86ad7de3d59bae041e0d8f80ef89ddc4cf6 (patch)
tree8b691f4171f08d07a342a5baa90593236b79b2db /samples/watch_queue
parentba73713da50e5c24499ca8941171593466ea34f7 (diff)
tracing: Make tracing_disabled global for tracing system
The tracing_disabled variable is set to one on boot up to prevent some parts of tracing to access the tracing infrastructure before it is set up. It also can be set after boot if an anomaly is discovered. It is currently a static variable in trace.c and can be accessed via a function call trace_is_disabled(). There's really no reason to use a function call as the tracing subsystem should be able to access it directly. By making the variable accessed directly, code can be moved out of trace.c without adding overhead of a function call to see if tracing is disabled or not. Make tracing_disabled global and remove the tracing_is_disabled() helper function. Also add some "unlikely()"s around tracing_disabled where it's checked in hot paths. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andrew Morton <akpm@linux-foundation.org> Link: https://patch.msgid.link/20260208032449.483690153@kernel.org Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'samples/watch_queue')
0 files changed, 0 insertions, 0 deletions