summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorJiayuan Chen <jiayuan.chen@linux.dev>2026-07-20 15:15:18 +0800
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-07-20 17:02:31 +0200
commitcfce77b63375dac81d53f2f85593c548415206b7 (patch)
treeb373b2e654a80812efdbe4d5d74009819c2c9db1 /tools/perf/scripts/python/bin/stackcollapse-record
parent761214e5c0b14aa4e16a6b763c7a4932ce89f589 (diff)
bpftool: Skip prog/map that disappears while looking it up by name
Looking up a prog or map by name walks the whole id space. There is a window between bpf_prog_get_next_id()/bpf_map_get_next_id() and getting an fd for that id in which an unrelated object can be freed, and the lookup then fails with ENOENT and aborts the whole command. Skip such ids and keep walking, the same way do_show() already does. Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev> Link: https://lore.kernel.org/bpf/20260720071520.396363-1-jiayuan.chen@linux.dev Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions