bpf: add bpffs pretty print for program array map
authorYonghong Song <yhs@fb.com>
Fri, 7 Sep 2018 00:26:04 +0000 (17:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 11 Sep 2018 21:17:24 +0000 (14:17 -0700)
commita7c19db38d62fc1ce797dba19936e9f81cf2b9fb
tree15272c1f537fde1b721005ab92b7d14875285024
parentf6f3bac08ff9855d803081a353a1fafaa8845739
bpf: add bpffs pretty print for program array map

Added bpffs pretty print for program array map. For a particular
array index, if the program array points to a valid program,
the "<index>: <prog_id>" will be printed out like
   0: 6
which means bpf program with id "6" is installed at index "0".

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/arraymap.c