Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-07 Thread Jiri Olsa
On Thu, Jun 07, 2018 at 09:09:10AM -0700, Stephane Eranian wrote: > On Wed, Jun 6, 2018 at 11:22 PM Jiri Olsa wrote: > > > > On Wed, Jun 06, 2018 at 04:19:02PM -0700, Andi Kleen wrote: > > > On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > > > > Currently by default we try to match the

Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-07 Thread Stephane Eranian
On Wed, Jun 6, 2018 at 11:22 PM Jiri Olsa wrote: > > On Wed, Jun 06, 2018 at 04:19:02PM -0700, Andi Kleen wrote: > > On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > > > Currently by default we try to match the user specified PMU > > > name to all PMU units available and use them to ag

Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-06 Thread Jiri Olsa
On Wed, Jun 06, 2018 at 04:19:02PM -0700, Andi Kleen wrote: > On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > > Currently by default we try to match the user specified PMU > > name to all PMU units available and use them to aggregate > > all matched PMUs event counts into one 'pattern'

Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-06 Thread Andi Kleen
On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > Currently by default we try to match the user specified PMU > name to all PMU units available and use them to aggregate > all matched PMUs event counts into one 'pattern' event. > > While this is useful for uncore events, it screws up na

[PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event

2018-06-06 Thread Jiri Olsa
Currently by default we try to match the user specified PMU name to all PMU units available and use them to aggregate all matched PMUs event counts into one 'pattern' event. While this is useful for uncore events, it screws up names for other events, where this is not desirable, like: Before: #