summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2026-03-30 15:27:57 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-04-02 09:31:42 -0700
commitcc878b414450d4d49f57b2d5812b44697c7090d5 (patch)
tree3373c4f962869b83ecd52e7bb33653eac2e4a1ff /tools/perf/scripts/python
parent90f51ebff242e9446a9bbd3ce1a04d50c30e8b96 (diff)
bpf: Migrate dynptr file to kmalloc_nolock
Replace bpf_mem_alloc/bpf_mem_free with kmalloc_nolock/kfree_nolock for bpf_dynptr_file_impl, continuing the migration away from bpf_mem_alloc now that kmalloc can be used from NMI context. freader_cleanup() runs before kfree_nolock() while the dynptr still holds exclusive access, so plain kfree_nolock() is safe — no concurrent readers can access the object. Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20260330-kmalloc_special-v2-2-c90403f92ff0@meta.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions