]> git.baikalelectronics.ru Git - kernel.git/commit
arm: perf: clean up PMU names
authorMark Rutland <mark.rutland@arm.com>
Wed, 19 Dec 2012 16:33:24 +0000 (16:33 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 2 Jul 2014 14:48:25 +0000 (15:48 +0100)
commit708f130e1bcb8510e289c40ba69e5bc210fb9256
treefa383e35e84c16d07d4b535e7bb989ba0f4791e0
parent807cf3b065a39c23e034478864270e9d9a00e070
arm: perf: clean up PMU names

The perf userspace tools can't handle dashes or spaces in PMU names,
which conflicts with the current naming scheme in the arm perf backend.
This prevents these PMUs from being accessed by name from the perf
tools. Additionally the ARMv6 pmus are named "v6", which does not fully
distinguish them in the sys/bus/event_source namespace.

This patch renames the PMUs consistently to a lower case form with
underscores, e.g. "armv6_1176", "armv7_cortex_a9". This is both readily
accepted by today's perf tool, and far easier to type than the
(apparently unused) convention in use previously. The OProfile name
conversion code is updated to handle this.

Due to a copy-paste error involving two "xscale1" entries, "xscale2" has
never been matched by the name OProfile name mapping. While we're
updating names, this is corrected.

Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[sachin: fixed missing semicolons in armv6 backend]
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_cpu.c
arch/arm/kernel/perf_event_v6.c
arch/arm/kernel/perf_event_v7.c
arch/arm/kernel/perf_event_xscale.c
arch/arm/oprofile/common.c