tracing: Use the new eventfs descriptor for print trigger
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 8 Sep 2023 02:19:11 +0000 (22:19 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 9 Sep 2023 03:13:01 +0000 (23:13 -0400)
commit1ef26d8b2ca5d8715563c951083cf6c385c77d1f
treeb1a99ee1cb43c0e2bcbc04c5144f632591c4594b
parent95a404bd60af6c4d9d8db01ad14fe8957ece31ca
tracing: Use the new eventfs descriptor for print trigger

The check to create the print event "trigger" was using the obsolete "dir"
value of the trace_event_file to determine if it should create the trigger
or not. But that value will now be NULL because it uses the event file
descriptor.

Change it to test the "ef" field of the trace_event_file structure so that
the trace_marker "trigger" file appears again.

Link: https://lkml.kernel.org/r/20230908022001.371815239@goodmis.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ajay Kaher <akaher@vmware.com>
Fixes: 27152bceea1df ("eventfs: Move tracing/events to eventfs")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c