selftests/bpf: add kprobe/uprobe selftests
authorAndrii Nakryiko <andriin@fb.com>
Mon, 1 Jul 2019 23:59:02 +0000 (16:59 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Jul 2019 20:37:31 +0000 (22:37 +0200)
commit1e8611bbdfc99faf8c9670dbbe582129a9a29973
tree681065077d7a90ecaf91c3ff2d02c414dad57c18
parent8c51b314d2eeae687bf8c28491c9f5e4f05f30f5
selftests/bpf: add kprobe/uprobe selftests

Add tests verifying kprobe/kretprobe/uprobe/uretprobe APIs work as
expected.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/prog_tests/attach_probe.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_attach_probe.c [new file with mode: 0644]