lkml.org 
[lkml]   [2010]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs
From
Date
On Mon, 2010-05-10 at 19:11 +0800, Lin Ming wrote:
> On Mon, 2010-05-10 at 19:04 +0800, Peter Zijlstra wrote:
> > On Mon, 2010-05-10 at 18:58 +0800, Lin Ming wrote:
> > > Take Nehalem core and uncore pmu as an example,
> > >
> > > core pmu sits under /sys/devices/system/cpu/cpuN/pmu_id with ID 0,
> > >
> > > But uncore pmu is shared by cpus within package, where should it sit
> > > under?
> >
> > I already gave you the answer to that:
> >
> > /sys/devices/system/cpu/cpuN/nodeN/
> >
> > the uncore pmu is the memory controller (aka node) pmu.
>
> Ah, much clear now.
>
> perf_event_register_pmu needs another paramter, like
>
> perf_event_register_pmu(struct pmu *pmu, int pmu_type);

Or just put this "pmu_type" into struct pmu?

>
> Thanks.



\
 
 \ /
  Last update: 2010-05-10 13:21    [W:1.105 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site