[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170119001735.GH5460@tassilo.jf.intel.com>
Date: Wed, 18 Jan 2017 16:17:35 -0800
From: Andi Kleen <ak@...ux.intel.com>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Andi Kleen <andi@...stfloor.org>, acme@...nel.org,
jolsa@...nel.org, linux-kernel@...r.kernel.org, mingo@...nel.org
Subject: Re: [PATCH 04/11] perf, tools: Support per pmu json aliases
> > index 8bffe99d8e3f..4bfc98953aba 100644
> > --- a/tools/perf/util/pmu.c
> > +++ b/tools/perf/util/pmu.c
> > @@ -587,14 +587,13 @@ static struct perf_pmu *pmu_lookup(const char *name)
> > if (pmu_format(name, &format))
> > return NULL;
> >
> > - if (pmu_aliases(name, &aliases))
> > + if (pmu_type(name, &type))
> > return NULL;
> >
> > - pmu_add_cpu_aliases(&aliases, name);
> > -
> > - if (pmu_type(name, &type))
> > + if (pmu_aliases(name, &aliases))
> > return NULL;
> >
> > + pmu_add_cpu_aliases(&aliases, name);
>
> AFAICS you switched the calls.. how does it matter?
It avoids lots of duplicate messages with -v (and also is more efficient)
-Andi
Powered by blists - more mailing lists