linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Perf framework : Cluster based counter support
@ 2019-06-28 16:53 Mukesh Ojha
  2019-06-28 16:59 ` Mark Rutland
  0 siblings, 1 reply; 4+ messages in thread
From: Mukesh Ojha @ 2019-06-28 16:53 UTC (permalink / raw)
  To: lkml

Hi All,

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 ?

Thanks,
Mukesh


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Perf framework : Cluster based counter support
  2019-06-28 16:53 Perf framework : Cluster based counter support Mukesh Ojha
@ 2019-06-28 16:59 ` Mark Rutland
  2019-07-01 15:39   ` Mukesh Ojha
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Rutland @ 2019-06-28 16:59 UTC (permalink / raw)
  To: Mukesh Ojha; +Cc: lkml

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Perf framework : Cluster based counter support
  2019-06-28 16:59 ` Mark Rutland
@ 2019-07-01 15:39   ` Mukesh Ojha
  2019-07-01 16:37     ` Mark Rutland
  0 siblings, 1 reply; 4+ messages in thread
From: Mukesh Ojha @ 2019-07-01 15:39 UTC (permalink / raw)
  To: Mark Rutland; +Cc: lkml


On 6/28/2019 10:29 PM, Mark Rutland wrote:
> 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 for pointing it out.
Also What is stopping us in adding cluster based event e.g L2 cache 
hit/miss or some other type raw events  in core framework ?


Thanks.
Mukesh






>
> Thanks,
> Mark.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Perf framework : Cluster based counter support
  2019-07-01 15:39   ` Mukesh Ojha
@ 2019-07-01 16:37     ` Mark Rutland
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Rutland @ 2019-07-01 16:37 UTC (permalink / raw)
  To: Mukesh Ojha; +Cc: lkml

On Mon, Jul 01, 2019 at 09:09:33PM +0530, Mukesh Ojha wrote:
> 
> On 6/28/2019 10:29 PM, Mark Rutland wrote:
> > 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 for pointing it out.
> Also What is stopping us in adding cluster based event e.g L2 cache hit/miss
> or some other type raw events  in core framework ?

That depends on how the event is exposed.

If it's exposed via the architectural PMU, then it's already accessible
as a raw (cpu-affine) event, regardless of whether that makes sense.

If it's a separate PMU (as I suspect is the case), then it simply has to
be a separate PMU driver.

Thanks,
Mark.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-01 16:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-28 16:53 Perf framework : Cluster based counter support Mukesh Ojha
2019-06-28 16:59 ` Mark Rutland
2019-07-01 15:39   ` Mukesh Ojha
2019-07-01 16:37     ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).