]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6e1830b684aa1c00661b7ea6e15bb58ac44b734
tree81a8391f76ed9377f9933d8d89045226a35e1cdd
parentbf7b0dfb905eadf296bbce6a5fd23fe2aa1e367f
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