]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ftrace: Do not bother checking per CPU "disabled" flag
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 5 May 2025 21:21:06 +0000 (17:21 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 8 May 2025 13:36:09 +0000 (09:36 -0400)
commitc638ebd8232e69daed2f2573365c48cd1e064a89
tree8969c5a0365dd277bddd477c252e0b25503a1772
parent6936298393d8d8bc3cec6b704f6a774162cf9bd3
ftrace: Do not bother checking per CPU "disabled" flag

The per CPU "disabled" value was the original way to disable tracing when
the tracing subsystem was first created. Today, the ring buffer
infrastructure has its own way to disable tracing. In fact, things have
changed so much since 2008 that many things ignore the disable flag.

There's no reason for the function tracer to check it, if tracing is
disabled, the ring buffer will not record the event anyway.

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://lore.kernel.org/20250505212234.868972758@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_functions.c