perf: Fix check at end of event search
Steven Rostedt
maintainerIngo,
I just notice that I had this patch laying around and never pushed it out. I first had it in my ftrace branches but then realized that it was a perf change. I moved it there, but got distracted and unfortunately, forgot about it. I rebased it to the latest tip/perf/core.
The change is within a #ifdef CONFIG_PERF_EVENTS
Please pull the latest tip/perf/core tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/perf/core
Dan Carpenter (1):
perf: Fix check at end of event search
----
kernel/trace/trace_events_filter.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --------------------------- commit d9f599e1e6d019968b35d2dc63074b9e8964fa69 Author: Dan Carpenter <[email protected]> Date: Sat Mar 20 17:39:11 2010 +0300
perf: Fix check at end of event search
The original code doesn't work because "call" is never NULL there.
LKML-Reference: <20100320143911.GF5331@bicker>
kernel/trace/trace_events_filter.c +1 -1
@@ -1398,7 +1398,7 @@ int ftrace_profile_set_filter(struct perf_event *event, int event_id, } err = -EINVAL ; -if (!call) +if (&call->list == &ftrace_events) goto out_unlock; err = -EEXIST ;
Quoted 16 lines · Steven Rostedt
Ingo,
I just notice that I had this patch laying around and never pushed it out. I first had it in my ftrace branches but then realized that it was a perf change. I moved it there, but got distracted and unfortunately, forgot about it. I rebased it to the latest tip/perf/core.
The change is within a #ifdef
CONFIG_PERF_EVENTSPlease pull the latest tip/perf/core tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/perf/core
Quoted 6 lines
Dan Carpenter (1):
perf: Fix check at end of event search----
kernel/trace/trace_events_filter.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Pulled, thanks Steve!
Ingo