diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-03-13 20:23:36 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-14 01:30:53 +0300 |
commit | acbd06206bbbe59ffd2415c0b902dd244910e42e (patch) | |
tree | 46e7397710281de9f743512c43d65bc279ab4a51 /tools/testing/selftests/bpf/test_btf.c | |
parent | b8ebce86ffe655ac15a841bba2d645105ffe3d38 (diff) | |
download | linux-acbd06206bbbe59ffd2415c0b902dd244910e42e.tar.xz |
selftests/bpf: Add vmlinux.h selftest exercising tracing of syscalls
Add vmlinux.h generation to selftest/bpf's Makefile. Use it from newly added
test_vmlinux to trace nanosleep syscall using 5 different types of programs:
- tracepoint;
- raw tracepoint;
- raw tracepoint w/ direct memory reads (tp_btf);
- kprobe;
- fentry.
These programs are realistic variants of real-life tracing programs,
excercising vmlinux.h's usage with tracing applications.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200313172336.1879637-5-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_btf.c')
0 files changed, 0 insertions, 0 deletions