Re: [RFC] Sharing PMU counters across compatible events

From: Tejun Heo
Date: Wed Dec 13 2017 - 11:15:28 EST


Hello, Jiri.

On Wed, Dec 13, 2017 at 11:18:07AM +0100, Jiri Olsa wrote:
> so I can see this to be useful for HW conters only, because
> of limited number of regs
>
> as for the higher level on which this could be implemented I
> see some pitfals with event rotations as Peter mentioned and
> task/cpu contexts scheduling.. while the hw-level implementation
> seems pretty straight forward

Heh, yeah, maybe.

> I'll test the code and let's see ;-)

Thanks. I'll think more about it and see whether this can be evolved
into something useable.

Thanks.

--
tejun