This is exactly what `bpftool map` is doing. The source code https://github.com/torvalds/linux/blob/master/tools/bpf/bpftool/map.c
You can find the map you are interested by iterating all the maps in the system and then iterating to get all map key/values for that map. On Mon, Dec 24, 2018 at 9:41 AM Иван Иванов <[email protected]> wrote: > > Can you give link or some code to understand, how can i get data from maps in > c. I saw example, but as i begginer in such programming, i can understand > map_fd, obj...etc. > I create xdp prog, inserted in via ip link set... And can see data with > bpftool in hex. How can i simply write a prog to get data from map without > writing code to load. I am now at start of the way ) > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1548): https://lists.iovisor.org/g/iovisor-dev/message/1548 Mute This Topic: https://lists.iovisor.org/mt/28847664/21656 Group Owner: [email protected] Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
