aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorLeo Yan <[email protected]>2025-07-11 11:10:15 +0000
committerNamhyung Kim <[email protected]>2025-07-11 19:05:02 +0000
commit4a6cdecaa1497f1fbbd1d5307a225b6ca5a62a90 (patch)
tree9d9d866346a2acf661339a4a4e76ce0eb22baa41 /tools/perf/builtin-script.c
parentperf list: Remove trailing A in PAI crypto event 4210 (diff)
downloadkernel-4a6cdecaa1497f1fbbd1d5307a225b6ca5a62a90.tar.gz
kernel-4a6cdecaa1497f1fbbd1d5307a225b6ca5a62a90.zip
perf tests bp_account: Fix leaked file descriptor
Since the commit e9846f5ead26 ("perf test: In forked mode add check that fds aren't leaked"), the test "Breakpoint accounting" reports the error: # perf test -vvv "Breakpoint accounting" 20: Breakpoint accounting: --- start --- test child forked, pid 373 failed opening event 0 failed opening event 0 watchpoints count 4, breakpoints count 6, has_ioctl 1, share 0 wp 0 created wp 1 created wp 2 created wp 3 created wp 0 modified to bp wp max created ---- end(0) ---- Leak of file descriptor 7 that opened: 'anon_inode:[perf_event]' A watchpoint's file descriptor was not properly released. This patch fixes the leak. Fixes: 032db28e5fa3 ("perf tests: Add breakpoint accounting/modify test") Reported-by: Aishwarya TCV <[email protected]> Signed-off-by: Leo Yan <[email protected]> Reviewed-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/20250711-perf_fix_breakpoint_accounting-v1-1-b314393023f9@arm.com Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions