summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorAnshuman Khandual <anshuman.khandual@arm.com>2022-02-24 08:36:54 +0300
committerPeter Zijlstra <peterz@infradead.org>2022-03-01 18:19:01 +0300
commitcedd3614e5d9c80908099c19f8716714ce0610b1 (patch)
tree3bea1a0bdb3cae0c743b88c04417ab266bddb8fc /tools/perf
parent71a412ed4c104bcc239b1a8e06f90b58a4aee0bb (diff)
downloadlinux-cedd3614e5d9c80908099c19f8716714ce0610b1.tar.xz
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')
-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)