]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: Make the bpf_prog_array_map more generic
authorWang Nan <wangnan0@huawei.com>
Thu, 6 Aug 2015 07:02:33 +0000 (07:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 05:50:05 +0000 (22:50 -0700)
commit2a36f0b92eb638dd023870574eb471b1c56be9ad
tree74d714e1fc1e2daa98d61fdf948d9b7fae0e4378
parentffe8690c85b8426db7783064724d106702f1b1e8
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>
arch/x86/net/bpf_jit_comp.c
include/linux/bpf.h
kernel/bpf/arraymap.c
kernel/bpf/core.c
kernel/bpf/syscall.c