OSDN Git Service

perf: Add irq and exception return branch types
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 24 Feb 2022 05:36:54 +0000 (11:06 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Mar 2022 15:19:01 +0000 (16:19 +0100)
commitcedd3614e5d9c80908099c19f8716714ce0610b1
tree3bea1a0bdb3cae0c743b88c04417ab266bddb8fc
parent71a412ed4c104bcc239b1a8e06f90b58a4aee0bb
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
arch/x86/events/intel/lbr.c
include/uapi/linux/perf_event.h
tools/include/uapi/linux/perf_event.h
tools/perf/util/branch.c