]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: export map_data[] for more info on maps
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 2 May 2017 12:32:06 +0000 (14:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 May 2017 13:30:24 +0000 (09:30 -0400)
commit71b68c99cb6ceb484461bcd8529e3510dd25f568
tree31ee4d76035341b8cbab10e224651afb7cc4f53f
parent1d8a330db392861d2c6ac13a19775d1272bf79e4
samples/bpf: export map_data[] for more info on maps

Giving *_user.c side tools access to map_data[] provides easier
access to information on the maps being loaded.  Still provide
the guarantee that the order maps are being defined in inside the
_kern.c file corresponds with the order in the array.  Now user
tools are not blind, but can inspect and verify the maps that got
loaded from the ELF binary.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/bpf_load.h