summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMartin Kelly <martin.kelly@crowdstrike.com>2023-09-26 00:50:32 +0300
committerAndrii Nakryiko <andrii@kernel.org>2023-09-26 02:22:42 +0300
commit4448f64c549c28175dd9af4e8f9a2e0c62ef6d38 (patch)
treea99117dde3b9d965c92594e16f65b6c3632060ca /tools/perf/scripts/python/check-perf-trace.py
parent831916fb93d4b99bd5f18b8530708b88d901a522 (diff)
downloadlinux-4448f64c549c28175dd9af4e8f9a2e0c62ef6d38.tar.xz
libbpf: Refactor cleanup in ring_buffer__add
Refactor the cleanup code in ring_buffer__add to use a unified err_out label. This reduces code duplication, as well as plugging a potential leak if mmap_sz != (__u64)(size_t)mmap_sz (currently this would miss unmapping tmp because ringbuf_unmap_ring isn't called). Signed-off-by: Martin Kelly <martin.kelly@crowdstrike.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20230925215045.2375758-2-martin.kelly@crowdstrike.com
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions