Re: Accessing pinned eBPF map from the kernel

Yonghong Song

The following is an example in C++ to import an external map to BPF modules.
You can use libbpf function `bpf_obj_get` to get a map fd in the above example.

On Wed, Jul 18, 2018 at 11:48 AM, <hyunseok@...> wrote:

I have an eBPF map created and pinned by a userspace process.

Now I would like several eBPF programs to access this pinned eBPF map.

Is there any bcc APIs that can be used?

BPF_TABLE(), etc creates a new eBPF map, not loads an existing pinned map.


Join to automatically receive all group messages.