summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBenjamin Segall <bsegall@google.com>2026-11-02 15:11:56 -0800
committerPeter Zijlstra <peterz@infradead.org>2026-11-06 11:45:15 +0100
commit3bbd85b2f67aff58f2cbec9a7fb705677b94473b (patch)
treed2caa91120a5c5b0ef403ea1aa2f2499a8ef59e8 /tools/perf/scripts/python
parent6bea5e29daf123a78ae58cb5926023f4705f396f (diff)
perf: Fix racy update of cpc->hrtimer_interval
Updates to cpc->hrtimer_interval can race with reads either in the hrtimer itself, or other calls to perf_mux_hrtimer_restart. This is not exactly expected to be a common config change, but it's easy enough to fix. Since there's already an IPI to each cpu to restart the timer, and all reads are with irqs disabled, just move the update onto the target cpu. Fixes: 62b856397927 ("perf: Add sysfs entry to adjust multiplexing interval per PMU") Reported-by: Sashiko <sashiko-bot@kernel.org> Signed-off-by: Ben Segall <bsegall@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://sashiko.dev/#/patchset/xm265wykhyrv.fsf%40google.com Link: https://patch.msgid.link/xm26se1ihlqb.fsf@google.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions