diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-07-01 16:59:00 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-07-05 22:37:30 +0200 |
commit | 84bf5e1f4f174fc4f06bc747dafa1a7cfa4e9a67 (patch) | |
tree | da92af899ab505f964b7f037135fc4d8cb68d9a0 /tools/lib/bpf/libbpf.h | |
parent | libbpf: add tracepoint attach API (diff) | |
download | linux-dev-84bf5e1f4f174fc4f06bc747dafa1a7cfa4e9a67.tar.xz linux-dev-84bf5e1f4f174fc4f06bc747dafa1a7cfa4e9a67.zip |
libbpf: add raw tracepoint attach API
Add a wrapper utilizing bpf_link "infrastructure" to allow attaching BPF
programs to raw tracepoints.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '')
-rw-r--r-- | tools/lib/bpf/libbpf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h index 60611f4b4e1d..f55933784f95 100644 --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h @@ -182,6 +182,9 @@ LIBBPF_API struct bpf_link * bpf_program__attach_tracepoint(struct bpf_program *prog, const char *tp_category, const char *tp_name); +LIBBPF_API struct bpf_link * +bpf_program__attach_raw_tracepoint(struct bpf_program *prog, + const char *tp_name); struct bpf_insn; |