libbpf: add kprobe/uprobe attach API
authorAndrii Nakryiko <andriin@fb.com>
Mon, 1 Jul 2019 23:58:58 +0000 (16:58 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Jul 2019 20:37:30 +0000 (22:37 +0200)
commitb26500274767bacbe571c75926fee2489f91ba28
treecc359342cef07c33aab95447813899fe81e6d866
parent63f2f5ee856ba9db751123bc5519be099a3849a7
libbpf: add kprobe/uprobe attach API

Add ability to attach to kernel and user probes and retprobes.
Implementation depends on perf event support for kprobes/uprobes.

Signed-off-by: Andrii Nakryiko <andriin@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