]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:58:58 +0000 (11:58 +0200)
commit030099bc9115ec0db1de33665eb47bc8cade9e62
tree498691ca4e775e5715203698f227cafe40fcd9ce
parentae80d5290c1449b4cbe0234cfbfc2c760bc6e1e9
perf: Add irq and exception return branch types

[ Upstream commit cedd3614e5d9c80908099c19f8716714ce0610b1 ]

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
Stable-dep-of: e53899771a02 ("perf/x86/lbr: Filter vsyscall addresses")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/events/intel/lbr.c
include/uapi/linux/perf_event.h
tools/include/uapi/linux/perf_event.h
tools/perf/util/branch.c