Skip to content

Commit 5bb9871

Browse files
committed
Merge tag 'trace-fixes-v4.5-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt: "Another small bug reported to me by Chunyu Hu. When perf added a "reg" function to the function tracing event (not a tracepoint), it caused that event to be displayed as a tracepoint and could cause errors in tracepoint handling. That was solved by adding a flag to ignore ftrace non-tracepoint events. But that flag was missed when displaying events in available_events, which should only contain tracepoint events. This broke a documented way to enable all events with: cat available_events > set_event As the function non-tracepoint event would cause that to error out. The commit here fixes that by having the available_events file not list events that have the ignore flag set" * tag 'trace-fixes-v4.5-rc5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing: Fix showing function event in available_events
2 parents 73056bb + d045437 commit 5bb9871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/trace/trace_events.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ t_next(struct seq_file *m, void *v, loff_t *pos)
869869
* The ftrace subsystem is for showing formats only.
870870
* They can not be enabled or disabled via the event files.
871871
*/
872-
if (call->class && call->class->reg)
872+
if (call->class && call->class->reg &&
873+
!(call->flags & TRACE_EVENT_FL_IGNORE_ENABLE))
873874
return file;
874875
}
875876

0 commit comments

Comments
 (0)