libbpf: add raw tracepoint attach API
authorAndrii Nakryiko <andriin@fb.com>
Mon, 1 Jul 2019 23:59:00 +0000 (16:59 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Jul 2019 20:37:30 +0000 (22:37 +0200)
commit84bf5e1f4f174fc4f06bc747dafa1a7cfa4e9a67
treeda92af899ab505f964b7f037135fc4d8cb68d9a0
parentf6de59c17f111b3efc701c95b438e46245c4aeb1
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>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map