RE: [PATCH 1/2] perf,tools: get correct cpu id for print_aggr

2015-06-30 Thread Liang, Kan
> On Mon, Jun 29, 2015 at 03:55:34PM -0400, kan.li...@intel.com wrote: > > From: Kan Liang > > > > print_aggr fails to print per-core/per-socket statistics after commit > > b7f0c203586b ("perf evlist: Propagate cpu maps to evsels in an > > evlist"), if events have differnt cpus. Because in print

Re: [PATCH 1/2] perf,tools: get correct cpu id for print_aggr

2015-06-29 Thread Jiri Olsa
On Mon, Jun 29, 2015 at 03:55:34PM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > print_aggr fails to print per-core/per-socket statistics after commit > b7f0c203586b ("perf evlist: Propagate cpu maps to evsels in an evlist"), > if events have differnt cpus. Because in print_aggr, aggr_g

[PATCH 1/2] perf,tools: get correct cpu id for print_aggr

2015-06-29 Thread kan . liang
From: Kan Liang print_aggr fails to print per-core/per-socket statistics after commit b7f0c203586b ("perf evlist: Propagate cpu maps to evsels in an evlist"), if events have differnt cpus. Because in print_aggr, aggr_get_id needs index (not cpu id) to find core/pkg id. This patch introduced perf_