iovisor / iovisor/bcc

Frontend and implementation for bpf_ringbuf_query

Open
#3,089 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/cc/frontends/clang/b_frontend_action.cc, where the missing bpf_ringbuf_query frontend entry is identified, and compare it with the BPF_MAP_TYPE_RINGBUF helper additions from pull requests 2969 and 2989. Then locate the Python wrapper corresponding to these helpers and update it too; done means users can call bpf_ringbuf_query through BCC.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.