]> git.baikalelectronics.ru Git - kernel.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)
commit09b06c33713d086294fe890fed116b91bd978240
tree74d714e1fc1e2daa98d61fdf948d9b7fae0e4378
parent316bd914e3576c114eac64385e2de802bcf63fc9
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