Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs

From: Lin Ming
Date: Mon May 10 2010 - 07:18:44 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/