tracing: Call trace_ftrace_test_filter() for the event
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 23 Jul 2025 19:41:45 +0000 (15:41 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 25 Jul 2025 01:33:35 +0000 (21:33 -0400)
commit8c4e53a1a09374c232fe96232426226b2824f473
tree40f98badfdfdf3b816b050f2dc7eae0e2147f8d3
parent9f0cb91767f582df6b17c1e2f22f684c36962295
tracing: Call trace_ftrace_test_filter() for the event

The trace event filter bootup self test tests a bunch of filter logic
against the ftrace_test_filter event, but does not actually call the
event. Work is being done to cause a warning if an event is defined but
not used. To quiet the warning call the trace event under an if statement
where it is disabled so it doesn't get optimized out.

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: Arnd Bergmann <arnd@arndb.de>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nicolas Schier <nicolas.schier@linux.dev>
Cc: Nick Desaulniers <nick.desaulniers+lkml@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/20250723194212.274458858@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_filter.c