aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-07-01 16:59:00 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-05 22:37:30 +0200
commit84bf5e1f4f174fc4f06bc747dafa1a7cfa4e9a67 (patch)
treeda92af899ab505f964b7f037135fc4d8cb68d9a0 /tools/lib/bpf/libbpf.h
parentlibbpf: add tracepoint attach API (diff)
downloadlinux-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.h3
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;