bpflist(8)
๐ bpflist: Display processes currently using BPF programs and maps ๐
โจ NAME โจ
bpflist - Display processes currently using BPF programs and maps. ๐ง
โจ SYNOPSIS โจ
bpflist [-v]
โจ DESCRIPTION โจ
okay so bpflist is the tool that shows you which processes are currently using BPF programs and maps ๐ It can also count kprobes and uprobes on the system if you ask nicely. ๐ฆ This is lowkey essential if you want to know which BPF programs are loaded on your machine. no cap ๐
ngl the way it works is kinda messy ๐ For lack of a better option, this tool pipes into ls and parses the output to sniff out BPF file descriptors across all the running processes. ๐ In the future, once the kernel provides BPF accounting, this tool should switch over to using those features instead. we love an upgrade ๐ซถ
๐ Only the root user can run this tool, because it accesses debugfs. Not you, not me, only root. ๐ญ
โจ REQUIREMENTS โจ
You'll need bcc and debugfs ๐ธ
โจ OPTIONS โจ
-hโ Prints the usage message. ๐-vโ Counts kprobes and uprobes too, not just BPF programs. ๐ฅ Repeat verbose mode twice (-v -v) and it also prints the kprobe and uprobe definitions on top of counting them. the main character energy is real ๐
โจ EXAMPLES โจ
Display processes currently using BPF programs: ๐
# bpflist
Also count kprobes and uprobes: โจ
# bpflist -v
โจ FIELDS โจ
PIDโ The process ID. ๐COMMโ The process comm. ๐TYPEโ The type of data being shown: BPF program, BPF map, kprobe, or uprobe. ๐ฆCOUNTโ How many items of this type belong to the specified process. ๐งฎ
โจ SOURCE โจ
This is from bcc. ๐ The source lives at https://github.com/iovisor/bcc
Also look in the bcc distribution for a companion _examples.txt file. It has example usage, output, and commentary for this tool, so it's giving tutorial energy ๐
โจ OS โจ
Linux ๐ง
โจ STABILITY โจ
Unstable, it's still in development. ๐ง Be gentle with it, bestie ๐ฅบ
โจ AUTHOR โจ
Sasha Goldshtein ๐
That's the whole page, bestie ๐ซถ This was bpflist(8) from the USER COMMANDS section, dated 2017-03-09 โจ๐
๐ฆ where this page comes from
- alpine 3.24: bcc-doc 0.36.1-r1 ยท Apache-2.0
- nixpkgs unstable: bcc 0.37.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 ยท Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 ยท Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 ยท Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 ยท Apache-2.0
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms