Re: [PATCH v1 1/2] perf/core: Add API to look up PMU type by name

2018-02-24 Thread Peter Zijlstra
On Fri, Feb 23, 2018 at 04:19:37PM -0800, Saravana Kannan wrote: > When the event numbers registered by multiple PMUs overlap, the > attr->type value passed to perf_event_create_kernel_counter() is used > to determine which PMU to use to create a perf_event. > > However, when the PMU in question

Re: [PATCH v1 1/2] perf/core: Add API to look up PMU type by name

2018-02-24 Thread Peter Zijlstra
On Fri, Feb 23, 2018 at 04:19:37PM -0800, Saravana Kannan wrote: > When the event numbers registered by multiple PMUs overlap, the > attr->type value passed to perf_event_create_kernel_counter() is used > to determine which PMU to use to create a perf_event. > > However, when the PMU in question

[PATCH v1 1/2] perf/core: Add API to look up PMU type by name

2018-02-23 Thread Saravana Kannan
When the event numbers registered by multiple PMUs overlap, the attr->type value passed to perf_event_create_kernel_counter() is used to determine which PMU to use to create a perf_event. However, when the PMU in question is not a standard PMU (defined in perf_type_id), there is no way for a

[PATCH v1 1/2] perf/core: Add API to look up PMU type by name

2018-02-23 Thread Saravana Kannan
When the event numbers registered by multiple PMUs overlap, the attr->type value passed to perf_event_create_kernel_counter() is used to determine which PMU to use to create a perf_event. However, when the PMU in question is not a standard PMU (defined in perf_type_id), there is no way for a