[iovisor-dev] Accessing maps on already installed BPF program
ys114321 at gmail.com
Fri Sep 15 14:57:00 UTC 2017
On Thu, Sep 14, 2017 at 1:22 PM, Douglas Caetano dos Santos via
iovisor-dev <iovisor-dev at lists.iovisor.org> wrote:
> Hi there,
> I'm writing some long running BPF programs with BCC for packet filtering
> purposes, but don't want to keep the Python part running all the time, only when
> I want to read some statistics or when I want to update some maps. I couldn't
> find, though, documentation on how to make a Python script get access to maps
> being used by an already installed program, instead of creating new ones and
> recompiling the program. I know that maps' file descriptors can be exported and
> imported with tc alone, but is it possible through BCC?
The better way than export/import is prog/map pinning.
Unfortunately, this is not available in bcc API yet.
> iovisor-dev mailing list
> iovisor-dev at lists.iovisor.org
More information about the iovisor-dev