Re: [V3 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-04-26 Thread Liang, Kan
On 4/26/2018 12:14 PM, Jiri Olsa wrote: On Wed, Apr 25, 2018 at 10:58:43AM -0700, kan.li...@linux.intel.com wrote: SNIP -void parse_events__set_leader(char *name, struct list_head *list) +/* + * Check if the two uncore PMUs are from the same uncore block + * The format of the uncore PMU name

Re: [V3 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-04-26 Thread Jiri Olsa
On Wed, Apr 25, 2018 at 10:58:43AM -0700, kan.li...@linux.intel.com wrote: SNIP > -void parse_events__set_leader(char *name, struct list_head *list) > +/* > + * Check if the two uncore PMUs are from the same uncore block > + * The format of the uncore PMU name is uncore_#blockname_#pmuidx > + */

[V3 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-04-25 Thread kan . liang
From: Kan Liang Perf stat doesn't count the uncore event aliases from the same uncore block in a group, for example: perf stat -e '{unc_m_cas_count.all,unc_m_clockticks}' -a -I 1000 # time counts unit events 1.000447342unc_m_cas_count.all 1.000