iovisor / iovisor/bcc

The latest bpf_map_type list

Open
#2,460 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
5d 13h
Merged PRs (30d)
3

Description

I want to use af_xdp feature with gobpf.

The is the latest bpf_map_type list. Would you have a plan to supplement this list in bcc ?

enum bpf_map_type {
BPF_MAP_TYPE_UNSPEC,
BPF_MAP_TYPE_HASH,
BPF_MAP_TYPE_ARRAY,
BPF_MAP_TYPE_PROG_ARRAY,
BPF_MAP_TYPE_PERF_EVENT_ARRAY,
BPF_MAP_TYPE_PERCPU_HASH,
BPF_MAP_TYPE_PERCPU_ARRAY,
BPF_MAP_TYPE_STACK_TRACE,
BPF_MAP_TYPE_CGROUP_ARRAY,
BPF_MAP_TYPE_LRU_HASH,
BPF_MAP_TYPE_LRU_PERCPU_HASH,
BPF_MAP_TYPE_LPM_TRIE,
BPF_MAP_TYPE_ARRAY_OF_MAPS,
BPF_MAP_TYPE_HASH_OF_MAPS,
BPF_MAP_TYPE_DEVMAP,
BPF_MAP_TYPE_SOCKMAP,
BPF_MAP_TYPE_CPUMAP,
BPF_MAP_TYPE_XSKMAP,
BPF_MAP_TYPE_SOCKHASH,
BPF_MAP_TYPE_CGROUP_STORAGE,
BPF_MAP_TYPE_REUSEPORT_SOCKARRAY,
BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE,
BPF_MAP_TYPE_QUEUE,
BPF_MAP_TYPE_STACK,
BPF_MAP_TYPE_SK_STORAGE,
};

The following is that the bcc currently is supporting bpf_map_type list.

1. BPF_TABLE
2. BPF_HASH
3. BPF_ARRAY
4. BPF_HISTOGRAM
5. BPF_STACK_TRACE
6. BPF_PERF_ARRAY
7. BPF_PERCPU_ARRAY
8. BPF_LPM_TRIE
9. BPF_PROG_ARRAY
10. BPF_DEVMAP
11. BPF_CPUMAP

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating BCC's handling of bpf_map_type values and compare its supported list with the enum in the issue. Confirm which missing map types are needed for af_xdp support and verify the updated list against the relevant BCC tests or validation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking, operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.