iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.59k stars 3.88k forks source link

Frontend and implementation for bpf_ringbuf_query #3089

Open fntlnz opened 4 years ago

fntlnz commented 4 years ago

The 5.8 BPF_MAP_TYPE_RINGBUF helpers have been recentely added to BCC by https://github.com/iovisor/bcc/pull/2969 and https://github.com/iovisor/bcc/pull/2989 .

While working on it, I noticed that we miss the bpf_ringbuf_query in src/cc/frontends/clang/b_frontend_action.cc so it's actually not possible for an user to use bpf_ringbuf_query in BCC.

Once that is done, the Python wrapper will need to be updated too.

I will look into contributing this.

yonghong-song commented 4 years ago

That will be great. Thanks!