Re: [PATCH v13] perf: Sharing PMU counters across compatible events

2020-06-18 Thread Song Liu
> On Jun 18, 2020, at 2:09 AM, Athira Rajeev > wrote: > > > >> On 02-May-2020, at 5:51 AM, Song Liu wrote: >> >> This patch tries to enable PMU sharing. When multiple perf_events are >> counting the same metric, they can share the hardware PMU counter. We >> call these events as

[PATCH v13] perf: Sharing PMU counters across compatible events

2020-05-01 Thread Song Liu
This patch tries to enable PMU sharing. When multiple perf_events are counting the same metric, they can share the hardware PMU counter. We call these events as "compatible events". The PMU sharing are limited to events within the same perf_event_context (ctx). When a event is installed or