Re: Simple bpf_map reader prog

Yonghong Song

This is exactly what `bpftool map` is doing. The source code

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 Иван Иванов <iwan12iwan12@...> 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 )

Join { to automatically receive all group messages.