summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2026-02-26 11:22:32 +0300
committerSasha Levin <sashal@kernel.org>2026-03-04 15:20:56 +0300
commit594d85ce95d2c2fc90fbfa81ff66876ce7c3a2df (patch)
tree3fda196944d5b5cde26f037071c2b72de0d632f8 /tools/perf/scripts/python/stackcollapse.py
parent409fe5e265bf23cdf6d9cc24f93cb561dc6527d2 (diff)
downloadlinux-594d85ce95d2c2fc90fbfa81ff66876ce7c3a2df.tar.xz
arm64: Fix sampling the "stable" virtual counter in preemptible section
[ Upstream commit e5cb94ba5f96d691d8885175d4696d6ae6bc5ec9 ] Ben reports that when running with CONFIG_DEBUG_PREEMPT, using __arch_counter_get_cntvct_stable() results in well deserves warnings, as we access a per-CPU variable without preemption disabled. Fix the issue by disabling preemption on reading the counter. We can probably do a lot better by not disabling preemption on systems that do not require horrible workarounds to return a valid counter value, but this plugs the issue for the time being. Fixes: 29cc0f3aa7c6 ("arm64: Force the use of CNTVCT_EL0 in __delay()") Reported-by: Ben Horgan <ben.horgan@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/aZw3EGs4rbQvbAzV@e134344.arm.com Tested-by: Ben Horgan <ben.horgan@arm.com> Tested-by: André Draszik <andre.draszik@linaro.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions