Re: Reading Pinned maps in eBPF Programs
Andrii Nakryiko
On Mon, Aug 17, 2020 at 6:36 AM Ian <icampbe14@...> wrote:
Libbpf supports declarative pinning of maps, that's how you easily get "map re-use" from BPF side. See [0] for example. But there is also bpf_map__pin() and bpf_map__reuse_fd() API on user-space side to set everything up, if you need to do it more flexibly. [0] https://github.com/torvalds/linux/blob/master/tools/testing/selftests/bpf/progs/test_pinning.c I have seen a function called bpf_obj_get_user in linux/bpf.h but I cannot find any documentation on it. It also just returns an unsupported error in my kernel's source code. |
|