[PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-11-18 Thread Andi Kleen
From: Andi Kleen The code for handling pmu aliases without specifying the PMU hardcoded only supported the cpu PMU. This patch extends it to work for all PMUs. We always duplicate the event for all PMUs that have an matching alias. This allows to automatically expand an

[PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-11-18 Thread Andi Kleen
From: Andi Kleen The code for handling pmu aliases without specifying the PMU hardcoded only supported the cpu PMU. This patch extends it to work for all PMUs. We always duplicate the event for all PMUs that have an matching alias. This allows to automatically expand an alias for all instances

Re: [PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-10-17 Thread Jiri Olsa
On Thu, Oct 13, 2016 at 02:15:27PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The code for handling pmu aliases without specifying > the PMU hardcoded only supported the cpu PMU. > > This patch extends it to work for all PMUs. We always > duplicate the event for all

Re: [PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-10-17 Thread Jiri Olsa
On Thu, Oct 13, 2016 at 02:15:27PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The code for handling pmu aliases without specifying > the PMU hardcoded only supported the cpu PMU. > > This patch extends it to work for all PMUs. We always > duplicate the event for all PMUs that have an

Re: [PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-10-17 Thread Jiri Olsa
On Thu, Oct 13, 2016 at 02:15:27PM -0700, Andi Kleen wrote: SNIP > @@ -236,15 +237,32 @@ PE_KERNEL_PMU_EVENT sep_dc > struct list_head *head; > struct parse_events_term *term; > struct list_head *list; > + struct perf_pmu *pmu = NULL; > + int ok = 0; > > -

Re: [PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-10-17 Thread Jiri Olsa
On Thu, Oct 13, 2016 at 02:15:27PM -0700, Andi Kleen wrote: SNIP > @@ -236,15 +237,32 @@ PE_KERNEL_PMU_EVENT sep_dc > struct list_head *head; > struct parse_events_term *term; > struct list_head *list; > + struct perf_pmu *pmu = NULL; > + int ok = 0; > > -

[PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-10-13 Thread Andi Kleen
From: Andi Kleen The code for handling pmu aliases without specifying the PMU hardcoded only supported the cpu PMU. This patch extends it to work for all PMUs. We always duplicate the event for all PMUs that have an matching alias. This allows to automatically expand an

[PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-10-13 Thread Andi Kleen
From: Andi Kleen The code for handling pmu aliases without specifying the PMU hardcoded only supported the cpu PMU. This patch extends it to work for all PMUs. We always duplicate the event for all PMUs that have an matching alias. This allows to automatically expand an alias for all instances