diff options
| author | Andrii Nakryiko <[email protected]> | 2019-12-14 01:43:26 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-12-15 23:58:04 +0000 |
| commit | d7a18ea7e8b612669acd0131fd075e5c735c1ce5 (patch) | |
| tree | 7f7ebd5bd4dfb74c107270cd775ce7ec23e28a7a /tools/bpf/bpftool/net.c | |
| parent | libbpf: Don't require root for bpf_object__open() (diff) | |
| download | kernel-d7a18ea7e8b612669acd0131fd075e5c735c1ce5.tar.gz kernel-d7a18ea7e8b612669acd0131fd075e5c735c1ce5.zip | |
libbpf: Add generic bpf_program__attach()
Generalize BPF program attaching and allow libbpf to auto-detect type (and
extra parameters, where applicable) and attach supported BPF program types
based on program sections. Currently this is supported for:
- kprobe/kretprobe;
- tracepoint;
- raw tracepoint;
- tracing programs (typed raw TP/fentry/fexit).
More types support can be trivially added within this framework.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/net.c')
0 files changed, 0 insertions, 0 deletions
