summaryrefslogtreecommitdiff
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2016-11-19 20:02:07 +0300
committerRadim Krčmář <rkrcmar@redhat.com>2016-11-19 20:02:07 +0300
commite5dbc4bf0b8c9ab50cc5699214240e84515be6eb (patch)
tree608554bb7e3aecf05d81106d32c4312c941fecdb /arch/arm64/include
parenta25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (diff)
parentb112c84a6ff035271d41d548c10215f18443d6a6 (diff)
downloadlinux-e5dbc4bf0b8c9ab50cc5699214240e84515be6eb.tar.xz
Merge tag 'kvm-arm-for-4.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm
KVM/ARM updates for v4.9-rc6 - Fix handling of the 32bit cycle counter - Fix cycle counter filtering
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/perf_event.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/perf_event.h b/arch/arm64/include/asm/perf_event.h
index 2065f46fa740..38b6a2b49d68 100644
--- a/arch/arm64/include/asm/perf_event.h
+++ b/arch/arm64/include/asm/perf_event.h
@@ -46,7 +46,15 @@
#define ARMV8_PMU_EVTYPE_MASK 0xc800ffff /* Mask for writable bits */
#define ARMV8_PMU_EVTYPE_EVENT 0xffff /* Mask for EVENT bits */
-#define ARMV8_PMU_EVTYPE_EVENT_SW_INCR 0 /* Software increment event */
+/*
+ * PMUv3 event types: required events
+ */
+#define ARMV8_PMUV3_PERFCTR_SW_INCR 0x00
+#define ARMV8_PMUV3_PERFCTR_L1D_CACHE_REFILL 0x03
+#define ARMV8_PMUV3_PERFCTR_L1D_CACHE 0x04
+#define ARMV8_PMUV3_PERFCTR_BR_MIS_PRED 0x10
+#define ARMV8_PMUV3_PERFCTR_CPU_CYCLES 0x11
+#define ARMV8_PMUV3_PERFCTR_BR_PRED 0x12
/*
* Event filters for PMUv3