iovisor / bcc

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

docs: helper functions: list bpf program kinds #1415

Open alban opened 6 years ago

alban commented 6 years ago

The list of BPF helper functions is very useful but it's not clear in which kind of bpf program they can be used. We could add another column to specify that.

Something like:

Helper Kernel version Commit BPF programs
BPF_FUNC_get_current_task() 4.8 606274c5abd8 KPROBE or TRACEPOINT
BPF_FUNC_map_lookup_elem() 3.19 d0003ec01c66 any

https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md#helpers

/cc @iaguis @schu @dongsupark

4ast commented 6 years ago

I like the idea. May be separate tables for each program type that list only functions for this type will be easier to read?

awangc commented 6 years ago

https://github.com/iovisor/bcc/pull/1881 addresses this issue