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

2018-05-01 Thread Liang, Kan
+static int +parse_events__set_leader_for_uncore_aliase(char *name, struct list_head *list, + struct parse_events_state *parse_state) +{ + struct perf_evsel *evsel, *leader; + uintptr_t *leaders; + bool is_leader = true; + int i,

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

2018-05-01 Thread Jiri Olsa
On Thu, Apr 26, 2018 at 11:46:19AM -0700, kan.li...@linux.intel.com wrote: > 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

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

2018-04-26 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