summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaolo Bertinetti <paolobertinetti200f4@proton.me>2026-11-03 13:07:53 +0000
committerPeter Zijlstra <peterz@infradead.org>2026-11-06 11:45:14 +0100
commit6bea5e29daf123a78ae58cb5926023f4705f396f (patch)
tree048f03180d1eed0834ba601d23810c6eaebaf790 /tools/perf/scripts/python
parentfb3f6b21b04f1e8b8982e90e9bf62db9f0dcb5e4 (diff)
perf/hw_breakpoint: Clear stop state in hw_breakpoint_add()
Since commit 18dbcbfabfff ("perf: Fix the POLL_HUP delivery breakage"), __perf_event_overflow() stops the event with pmu->stop() and disables it when the PERF_EVENT_IOC_REFRESH limit is reached. When userspace re-arms the event with PERF_EVENT_IOC_REFRESH, the event is enabled again and pmu->add() is called with PERF_EF_START. hw_breakpoint_add() sets PERF_HES_STOPPED when PERF_EF_START is missing, but never clears it. The flag set by pmu->stop() stays, and perf_bp_event() drops every later hit, so a breakpoint re-armed this way delivers only its first overflow. Set the state from PERF_EF_START on every add, as perf_swevent_add() does. Fixes: 18dbcbfabfff ("perf: Fix the POLL_HUP delivery breakage") Assisted-by: LLM Signed-off-by: Paolo Bertinetti <paolobertinetti200f4@proton.me> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261103130732.764081-3-paolobertinetti200f4@proton.me
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions