summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2026-04-01 06:50:37 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-04-05 18:37:32 -0700
commitf64eb44ce9067d37e6334a940518dcf1254e83fe (patch)
tree151644c9a12e571bd9257619b9cbd4fb1774506c /tools/perf/scripts/python/stackcollapse.py
parent07738bc566c38e0a8c82084e962890d1d59715c8 (diff)
selftests/bpf: Add torn write detection test for htab BPF_F_LOCK
Add a consistency subtest to htab_reuse that detects torn writes caused by the BPF_F_LOCK lockless update racing with element reallocation in alloc_htab_elem(). The test uses three thread roles started simultaneously via a pipe: - locked updaters: BPF_F_LOCK|BPF_EXIST in-place updates - delete+update workers: delete then BPF_ANY|BPF_F_LOCK insert - locked readers: BPF_F_LOCK lookup checking value consistency Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Link: https://lore.kernel.org/r/20260401-bpf_map_torn_writes-v1-2-782d071c55e7@meta.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions