Re: Perf framework : Cluster based counter support
From: Mark Rutland
Date: Fri Jun 28 2019 - 12:59:20 EST
On Fri, Jun 28, 2019 at 10:23:10PM +0530, Mukesh Ojha wrote:
> Hi All,
Hi Mukesh,
> Is it looks considerable to add cluster based event support to add in
> current perf event framework and later in userspace perf to support
> such events ?
Could you elaborate on what you mean by "cluster based event"?
I assume you mean something like events for a cluster-affine shared
resource like some level of cache?
If so, there's a standard pattern for supporting such system/uncore
PMUs, see drivers/perf/qcom_l2_pmu.c and friends for examples.
Thanks,
Mark.