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

2018-06-25 Thread Song Liu
Dear Peter, Could you please share you feedbacks/comments on this work? Thanks, Song On Fri, Jun 8, 2018 at 3:47 PM, Song Liu wrote: > This patch tries to enable PMU sharing. To make perf event scheduling > fast, we use special data structures. > > An array of "struct perf_event_dup" is added t

[PATCH] perf: Sharing PMU counters across compatible events

2018-06-08 Thread Song Liu
This patch tries to enable PMU sharing. To make perf event scheduling fast, we use special data structures. An array of "struct perf_event_dup" is added to the perf_event_context, to remember all the duplicated events under this ctx. All the events under this ctx has a "dup_id" pointing to its per

[PATCH] perf: Sharing PMU counters across compatible events

2018-06-08 Thread Song Liu
This is to follow up earlier discussion on sharing hardware PMU counters across compatible events: https://marc.info/?t=151213803600016 https://marc.info/?t=15254756921 This version limits PMU sharing to events within same ctx. As a result, compatible events are not evaluated during task