summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLeon Hwang <leon.hwang@linux.dev>2026-08-15 01:32:03 +0800
committerAndrii Nakryiko <andrii@kernel.org>2026-08-14 13:33:35 -0700
commit3808171428f563633d532a801197ed9b410735bf (patch)
treec758f3051464f16e7313fee6be27a58afae70347 /tools/perf/scripts/python/stackcollapse.py
parentf2aaa621591093cfe8224a25ef2f04a3b1e304b0 (diff)
libbpf: Avoid unnecessary mmap resize for percpu data maps
Use array_map_mmap_sz() for PERCPU_ARRAY like ARRAY in bpf_map_mmap_sz(). This lets bpf_map__set_value_size() skip mmap(), memcpy(), and munmap() when the old and new value sizes occupy the same number of pages. Fix some typos btw: * mmapble -> mmapable * satisified -> satisfied * relocatin -> relocation * atach_btf_obj_fd -> attach_btf_obj_fd * len_secnd -> len_second * precendence -> precedence Signed-off-by: Leon Hwang <leon.hwang@linux.dev> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20260814173206.93082-3-leon.hwang@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions