History

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

Linus Torvalds committed 10 years ago

Commit 5bb98712 parents 73056bb d0454371 file · +2 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/trace/trace_events.c+2−1
@@ -869,7 +869,8 @@ t_next(struct seq_file *m, void *v, loff_t *pos) · 868 unmodified lines
869 * The ftrace subsystem is for showing formats only.869 * The ftrace subsystem is for showing formats only.
870 * They can not be enabled or disabled via the event files.870 * They can not be enabled or disabled via the event files.
871 */871 */
872 if (call->class && call->class->reg)872 if (call->class && call->class->reg &&
873 !(call->flags & TRACE_EVENT_FL_IGNORE_ENABLE))
873 return file;874 return file;
874 }875 }
875 876