]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add show_fdinfo handler for maps
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Nov 2015 10:56:22 +0000 (11:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 16:04:15 +0000 (11:04 -0500)
commit7e3af1407a26a4f41545a2b84121c797efcb442d
tree8cb3f0004875ebb38f404b1297bcc79e2ba6400e
parent00f76014640600d83b2d34f1279adb76566ee5ec
bpf: add show_fdinfo handler for maps

Add a handler for show_fdinfo() to be used by the anon-inodes
backend for eBPF maps, and dump the map specification there. Not
only useful for admins, but also it provides a minimal way to
compare specs from ELF vs pinned object.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/syscall.c