diff options
author | Marc Zyngier <maz@kernel.org> | 2022-02-08 21:56:03 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-03-08 16:32:48 +0300 |
commit | 1280f12f56a15abde23503ba876343e5f201c9c2 (patch) | |
tree | 490142c08c420d91ffecf9d5d9d4cfe6783ca1ea /include/linux/perf | |
parent | 47804aab73d85147b9110a8cb025e01f8638e77d (diff) | |
download | linux-1280f12f56a15abde23503ba876343e5f201c9c2.tar.xz |
drivers/perf: arm_pmu: Handle 47 bit counters
The current ARM PMU framework can only deal with 32 or 64bit counters.
Teach it about a 47bit flavour.
Yes, this is odd.
Reviewed-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/perf')
-rw-r--r-- | include/linux/perf/arm_pmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h index 2512e2f9cd4e..0407a38b470a 100644 --- a/include/linux/perf/arm_pmu.h +++ b/include/linux/perf/arm_pmu.h @@ -26,6 +26,8 @@ */ /* Event uses a 64bit counter */ #define ARMPMU_EVT_64BIT 1 +/* Event uses a 47bit counter */ +#define ARMPMU_EVT_47BIT 2 #define HW_OP_UNSUPPORTED 0xFFFF #define C(_x) PERF_COUNT_HW_CACHE_##_x |