diff options
author | Mark Rutland | 2012-09-12 11:53:23 +0200 |
---|---|---|
committer | Will Deacon | 2014-10-30 13:16:59 +0100 |
commit | 67b4305aab0fa993d91fa4c6ea2169cfb3f41c93 (patch) | |
tree | 7151ed438a743de534dcd1c20860d64a14664653 /arch/alpha/lib/ev6-clear_page.S | |
parent | arm: perf: make PMU probing data-driven (diff) | |
download | kernel-qcow2-linux-67b4305aab0fa993d91fa4c6ea2169cfb3f41c93.tar.gz kernel-qcow2-linux-67b4305aab0fa993d91fa4c6ea2169cfb3f41c93.tar.xz kernel-qcow2-linux-67b4305aab0fa993d91fa4c6ea2169cfb3f41c93.zip |
arm: perf: use IDR types for CPU PMUs
For systems with heterogeneous CPUs (e.g. big.LITTLE systems) the PMUs
can be different in each cluster, and not all events can be migrated
between clusters. To allow userspace to deal with this, it must be
possible to address each PMU independently.
This patch changes PMUs to be registered with dynamic (IDR) types,
allowing them to be targeted individually. Each PMU's type can be found
in ${SYSFS_ROOT}/bus/event_source/devices/${PMU_NAME}/type.
From userspace, raw events can be targeted at a specific PMU:
$ perf stat -e ${PMU_NAME}/config=V,config1=V1,.../
Doing this does not break existing tools which use existing perf types:
when perf core can't find a PMU of matching type (in perf_init_event)
it'll iterate over the set of all PMUs. If a compatible PMU exists,
it'll be found eventually. If more than one compatible PMU exists, the
event will be handled by whichever PMU happens to be earlier in the pmus
list (which currently will be the last compatible PMU registered).
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/alpha/lib/ev6-clear_page.S')
0 files changed, 0 insertions, 0 deletions