summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorAnshuman Khandual <anshuman.khandual@arm.com>2022-02-24 11:06:54 +0530
committerPeter Zijlstra <peterz@infradead.org>2022-03-01 16:19:01 +0100
commitcedd3614e5d9c80908099c19f8716714ce0610b1 (patch)
tree3bea1a0bdb3cae0c743b88c04417ab266bddb8fc /tools/perf/util
parent71a412ed4c104bcc239b1a8e06f90b58a4aee0bb (diff)
downloadlinux-cedd3614e5d9c80908099c19f8716714ce0610b1.tar.bz2
perf: Add irq and exception return branch types
This expands generic branch type classification by adding two more entries there in i.e irq and exception return. Also updates the x86 implementation to process X86_BR_IRET and X86_BR_IRQ records as appropriate. This changes branch types reported to user space on x86 platform but it should not be a problem. The possible scenarios and impacts are enumerated here. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/1645681014-3346-1-git-send-email-anshuman.khandual@arm.com
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/branch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/branch.c b/tools/perf/util/branch.c
index 2285b1eb3128..a9a909db8cc7 100644
--- a/tools/perf/util/branch.c
+++ b/tools/perf/util/branch.c
@@ -49,7 +49,9 @@ const char *branch_type_name(int type)
"SYSCALL",
"SYSRET",
"COND_CALL",
- "COND_RET"
+ "COND_RET",
+ "ERET",
+ "IRQ"
};
if (type >= 0 && type < PERF_BR_MAX)