Re: [RFC] Sharing PMU counters across compatible events

From: Tejun Heo
Date: Wed Dec 13 2017 - 11:18:37 EST


Hello, Peter.

On Tue, Dec 12, 2017 at 11:37:36PM +0100, Peter Zijlstra wrote:
> That would be a fairly massive change from how perf works today. And the
> obvious pain point would be changing the per-cpu event set, which would
> mean recomputing all possible combinations of task sets.
>
> Also note that each context (cpu,task) is allowed to have more events
> than fit on the PMU, at which point we'll start rotating events. Do we
> also pre-compute all possible rotation sets?
>
> Just not quite seeing this..

Yeah, right. Will think more about it

Thanks.

--
tejun