]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tracing: Return -EINVAL if a boot tracer tries to enable the mmiotracer at boot
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 19 Dec 2024 20:12:00 +0000 (15:12 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 26 Dec 2024 15:38:36 +0000 (10:38 -0500)
commitd1e27ee9c6f21ccbb3f2d910171427ceb66a0af1
tree58543c7ad820094836826028b6cee47a09df70be
parentd33b10c0c73adca00f72bf4a153a07b7f5f34715
tracing: Return -EINVAL if a boot tracer tries to enable the mmiotracer at boot

The mmiotracer is not set to be enabled at boot up from the kernel command
line. If the boot command line tries to enable that tracer, it will fail
to be enabled. The return code is currently zero when that happens so the
caller just thinks it was enabled. Return -EINVAL in this case.

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>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/20241219201344.854254394@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c