lkml.org 
[lkml]   [2022]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH V3 10/10] perf/tools: Add PERF_BR_NEW_ARCH_[N] map for BRBE on arm64 platform
Date
This updates the perf tool with arch specific branch type classification
used for BRBE on arm64 platform as added in the kernel earlier.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
tools/include/uapi/linux/perf_event.h | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h
index 193dba2ecdc1..37276a737a97 100644
--- a/tools/include/uapi/linux/perf_event.h
+++ b/tools/include/uapi/linux/perf_event.h
@@ -282,6 +282,14 @@ enum {
PERF_BR_PRIV_HV = 3,
};

+#ifdef CONFIG_ARM64
+#define PERF_BR_NEW_FIQ PERF_BR_NEW_ARCH_1
+#define PERF_BR_NEW_DEBUG_HALT PERF_BR_NEW_ARCH_2
+#define PERF_BR_NEW_DEBUG_EXIT PERF_BR_NEW_ARCH_3
+#define PERF_BR_NEW_DEBUG_INST PERF_BR_NEW_ARCH_4
+#define PERF_BR_NEW_DEBUG_DATA PERF_BR_NEW_ARCH_5
+#endif
+
#define PERF_SAMPLE_BRANCH_PLM_ALL \
(PERF_SAMPLE_BRANCH_USER|\
PERF_SAMPLE_BRANCH_KERNEL|\
--
2.25.1
\
 
 \ /
  Last update: 2022-03-14 07:01    [W:0.088 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site