[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1269133750.5363.211.camel@localhost>
Date: Sat, 20 Mar 2010 21:09:10 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Dan Carpenter <error27@...il.com>
Cc: Ingo Molnar <mingo@...hat.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Li Zefan <lizf@...fujitsu.com>,
Tom Zanussi <tzanussi@...il.com>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch v2] trace: find the correct ftrace event
On Sat, 2010-03-20 at 17:39 +0300, Dan Carpenter wrote:
> The original code doesn't work because "call" is never NULL there.
>
> Signed-off-by: Dan Carpenter <error27@...il.com>
Thanks, I'll apply and test this on Monday.
-- Steve
>
> ---
> The original patch was fine, but this version is more tasteful. ;)
>
> diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
> index 4615f62..c1a263a 100644
> --- a/kernel/trace/trace_events_filter.c
> +++ b/kernel/trace/trace_events_filter.c
> @@ -1397,7 +1397,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists