android_kernel_motorola_sm6225/arch/x86/events/amd
Ravi Bangoria d9e36c56c0 perf/amd/ibs: Use interrupt regs ip for stack unwinding
[ Upstream commit 3d47083b9ff46863e8374ad3bb5edb5e464c75f8 ]

IbsOpRip is recorded when IBS interrupt is triggered. But there is
a skid from the time IBS interrupt gets triggered to the time the
interrupt is presented to the core. Meanwhile processor would have
moved ahead and thus IbsOpRip will be inconsistent with rsp and rbp
recorded as part of the interrupt regs. This causes issues while
unwinding stack using the ORC unwinder as it needs consistent rip,
rsp and rbp. Fix this by using rip from interrupt regs instead of
IbsOpRip for stack unwinding.

Fixes: ee9f8fce99 ("x86/unwind: Add the ORC unwinder")
Reported-by: Dmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220429051441.14251-1-ravi.bangoria@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:59:22 +02:00
..
core.c perf/x86/amd: Add missing L2 misses event spec to AMD Family 17h's event map 2020-02-19 19:51:57 +01:00
ibs.c perf/amd/ibs: Use interrupt regs ip for stack unwinding 2022-06-14 16:59:22 +02:00
iommu.c x86/events/amd/iommu: Fix sysfs type mismatch 2021-05-22 10:59:34 +02:00
iommu.h
Makefile
power.c
uncore.c perf/amd/uncore: Replace manual sampling check with CAP_NO_INTERRUPT flag 2020-03-20 11:55:50 +01:00