bpf: show prog and map id in fdinfo
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 2 Jun 2018 21:06:34 +0000 (23:06 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 3 Jun 2018 14:42:06 +0000 (07:42 -0700)
commit4316b40914ecde3738968225af56e650e8b61938
tree81a8391f76ed9377f9933d8d89045226a35e1cdd
parent3fe2867cdf088ffb2dc5aed6cdcf757b4c62476c
bpf: show prog and map id in fdinfo

Its trivial and straight forward to expose it for scripts that can
then use it along with bpftool in order to inspect an individual
application's used maps and progs. Right now we dump some basic
information in the fdinfo file but with the help of the map/prog
id full introspection becomes possible now.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/syscall.c