summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/devmap.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2022-09-02 23:10:54 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2022-09-05 15:33:06 +0200
commit96da3f7d489d11b43e7c1af90d876b9a2492cca8 (patch)
tree45ddc0b1d6da09d1acfe4f9be1de97b490dad59c /kernel/bpf/devmap.c
parentbpf: Convert percpu hash map to per-cpu bpf_mem_alloc. (diff)
downloadlinux-96da3f7d489d11b43e7c1af90d876b9a2492cca8.tar.xz
linux-96da3f7d489d11b43e7c1af90d876b9a2492cca8.zip
bpf: Remove tracing program restriction on map types
The hash map is now fully converted to bpf_mem_alloc. Its implementation is not allocating synchronously and not calling call_rcu() directly. It's now safe to use non-preallocated hash maps in all types of tracing programs including BPF_PROG_TYPE_PERF_EVENT that runs out of NMI context. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220902211058.60789-13-alexei.starovoitov@gmail.com
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions