Messages in this thread | | | Subject | Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs | From | Lin Ming <> | Date | Mon, 10 May 2010 19:11:53 +0800 |
| |
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);
Thanks.
| |