Re: [RFC v2 1/5] perf/pmu-events/jevents: Add enum to store aggregation like PerPkg

2020-07-14 Thread kajoljain
On 7/13/20 12:25 AM, Jiri Olsa wrote: > On Tue, Jul 07, 2020 at 05:53:10PM +0530, Kajol Jain wrote: > > SNIP > >> } >> >> diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c >> index 93fe72a9dc0b..3cafbb320d68 100644 >> --- a/tools/perf/util/pmu.c >> +++ b/tools/p

Re: [RFC v2 1/5] perf/pmu-events/jevents: Add enum to store aggregation like PerPkg

2020-07-12 Thread Jiri Olsa
On Tue, Jul 07, 2020 at 05:53:10PM +0530, Kajol Jain wrote: SNIP > } > > diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c > index 93fe72a9dc0b..3cafbb320d68 100644 > --- a/tools/perf/util/pmu.c > +++ b/tools/perf/util/pmu.c > @@ -306,7 +306,7 @@ static bool perf_

[RFC v2 1/5] perf/pmu-events/jevents: Add enum to store aggregation like PerPkg

2020-07-07 Thread Kajol Jain
Initially, every time we want to add new terms like chip, core, thread etc, we need to create corrsponding fields in pmu_events and event struct. This patch adds an enum called 'aggr_mode_class' which store all these aggregation like perpkg/percore. It also adds new field 'aggr_mode' to capture the