[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e26524c-9f4c-b351-2498-0a56bc86b4ee@huawei.com>
Date: Mon, 10 Jan 2022 18:50:54 +0000
From: John Garry <john.garry@...wei.com>
To: Ian Rogers <irogers@...gle.com>, Andi Kleen <ak@...ux.intel.com>,
"Jiri Olsa" <jolsa@...hat.com>, Namhyung Kim <namhyung@...nel.org>,
Kajol Jain <kjain@...ux.ibm.com>,
"Paul A . Clarke" <pc@...ibm.com>,
"Arnaldo Carvalho de Melo" <acme@...nel.org>,
Riccardo Mancini <rickyman7@...il.com>,
Kan Liang <kan.liang@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
"Ingo Molnar" <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
"Alexander Shishkin" <alexander.shishkin@...ux.intel.com>,
<linux-perf-users@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
"Vineet Singh" <vineet.singh@...el.com>,
James Clark <james.clark@....com>,
"Mathieu Poirier" <mathieu.poirier@...aro.org>,
Suzuki K Poulose <suzuki.poulose@....com>,
Mike Leach <mike.leach@...aro.org>,
Leo Yan <leo.yan@...aro.org>, <coresight@...ts.linaro.org>,
<linux-arm-kernel@...ts.infradead.org>, <zhengjun.xing@...el.com>
CC: <eranian@...gle.com>
Subject: Re: [PATCH v4 04/48] perf stat: Switch aggregation to use for_each
loop
On 05/01/2022 06:13, Ian Rogers wrote:
> + cpus = evsel__cpus(evsel);
> + perf_cpu_map__for_each_cpu(cpu, idx, cpus) {
It seems a common pattern to evaluate cpus and use in
perf_cpu_map__for_each_cpu() - is it possible to make a macro to accept
evsel and create cpus, like perf_evsel__for_each_cpu()?
> + if (cpu_map__compare_aggr_cpu_id(config->aggr_get_id(config, cpus, idx),
> + id))
> + return cpu;
> }
> return 0;
Powered by blists - more mailing lists