BPF-HELPERS - list of eBPF helper functions
| Use Case | Command | Description |
|---|---|---|
| πΊοΈ Look up map element | bpf_map_lookup_elem(map, key) | Find value associated with key in a map |
| π Update map element | bpf_map_update_elem(map, key, value, flags) | Add or update entry in a map |
| β Delete map element | bpf_map_delete_elem(map, key) | Remove entry from a map |
| π Print debug message | bpf_trace_printk(fmt, fmt_size, ...) | Print formatted message to trace log |
| β±οΈ Get monotonic time | bpf_ktime_get_ns() | Nanoseconds since boot (excl. suspend) |
| π€ Get current PID/TGID | bpf_get_current_pid_tgid() | 64-bit: tgid
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License |