bpf: Make the bpf_prog_array_map more generic
All the map backends are of generic nature. In order to avoid adding much special code into the eBPF core, rewrite part of the bpf_prog_array map code and make it more generic. So the new perf_event_array map type can reuse most of code with bpf_prog_array map and add fewer lines of special code. Signed-off-by:Wang Nan <wangnan0@huawei.com> Signed-off-by:
Kaixu Xia <xiakaixu@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- arch/x86/net/bpf_jit_comp.c 3 additions, 3 deletionsarch/x86/net/bpf_jit_comp.c
- include/linux/bpf.h 6 additions, 2 deletionsinclude/linux/bpf.h
- kernel/bpf/arraymap.c 49 additions, 31 deletionskernel/bpf/arraymap.c
- kernel/bpf/core.c 1 addition, 1 deletionkernel/bpf/core.c
- kernel/bpf/syscall.c 1 addition, 1 deletionkernel/bpf/syscall.c
Loading
Please register or sign in to comment