diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-02-25 20:12:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-02-25 20:12:09 -0800 |
commit | 5bb9871eb8daa2e6a07caf7aeafbe2d0b3faad8f (patch) | |
tree | c97ba6f5e26f1bfe6ba0d73c388b7914eb26c45c | |
parent | 73056bbc683f16672b948968a92fc3aa6aefbfbd (diff) | |
parent | d045437a169f899dfb0f6f7ede24cc042543ced9 (diff) | |
download | talos-obmc-linux-5bb9871eb8daa2e6a07caf7aeafbe2d0b3faad8f.tar.gz talos-obmc-linux-5bb9871eb8daa2e6a07caf7aeafbe2d0b3faad8f.zip |
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
-rw-r--r-- | kernel/trace/trace_events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index f333e57c4614..ab09829d3b97 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -869,7 +869,8 @@ t_next(struct seq_file *m, void *v, loff_t *pos) * The ftrace subsystem is for showing formats only. * They can not be enabled or disabled via the event files. */ - if (call->class && call->class->reg) + if (call->class && call->class->reg && + !(call->flags & TRACE_EVENT_FL_IGNORE_ENABLE)) return file; } |