[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160105104601.GB13561@danjae.kornet>
Date: Tue, 5 Jan 2016 19:46:01 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
LKML <linux-kernel@...r.kernel.org>,
David Ahern <dsahern@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Andi Kleen <andi@...stfloor.org>,
Wang Nan <wangnan0@...wei.com>
Subject: Re: [PATCH 2/5] perf tools: Add all matching dynamic sort keys for
field name
Hi Jiri,
Thanks for your review!
On Tue, Jan 05, 2016 at 10:24:27AM +0100, Jiri Olsa wrote:
> On Tue, Jan 05, 2016 at 12:03:44PM +0900, Namhyung Kim wrote:
>
> SNIP
>
> > static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok)
> > {
> > char *str, *event_name, *field_name, *opt_name;
> > @@ -1995,7 +2017,12 @@ static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok)
> > }
> >
> > if (!strcmp(field_name, "trace_fields")) {
> > - ret = add_all_dynamic_fields(evlist ,raw_trace);
> > + ret = add_all_dynamic_fields(evlist, raw_trace);
> > + goto out;
> > + }
> > +
> > + if (event_name == NULL) {
> > + ret = add_all_matching_fields(evlist, field_name, raw_trace);
> > goto out;
>
> should this be handled within find_evsel function:
>
> /* case 1 */
> if (event_name == NULL) {
> if (evlist->nr_entries != 1) {
>
>
> looks like it'd be dead code otherwise
Hmm.. OK. But the find_evsel() is to get a evsel so it's not good
place to add the code IMHO. I'll remove the case 1 from it.
Thanks,
Namhyung
--
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