]> 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)
commit99666668e27e8edaa3f9507f27942577e41e1f5d
tree8cb3f0004875ebb38f404b1297bcc79e2ba6400e
parent0e9240b77370aa70eb2d4e6e7e7ae8c8a2bb5717
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