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)
commitf99bf205dab026ef434520198af2fcb7dae0efdb
tree8cb3f0004875ebb38f404b1297bcc79e2ba6400e
parent7b5dc0dd59a8e5cf837c941ab10a565dcca76603
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