ARM: perf: register CPU PMUs with idr types
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Tue, 25 Sep 2012 16:26:50 +0000 (17:26 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:12:03 +0000 (11:12 +0100)
commitc5cb3e02afbaaa22d4fcd6d9f641bc60b357eb24
tree8ee6dc587a6ab36ba6df14ea1f1a7083247e47bb
parent66fd721f38a9de0f020d77eb2995e6b8a3db5157
ARM: perf: register CPU PMUs with idr types

In order to support multiple, heterogeneous CPU PMUs and distinguish
them, they cannot be registered as PERF_TYPE_RAW type. Instead we can
get perf core to allocate a new idr type id for each PMU.
Userspace applications can refer sysfs entried to find a PMU's type,
which can then be used in tracking events on individual PMUs.

Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event_cpu.c