Andrii Nakryiko
bc7430cc8b
selftests/bpf: convert selftests using BTF-defined maps to new syntax
...
Convert all the existing selftests that are already using BTF-defined
maps to use new syntax (with no static data initialization).
Signed-off-by: Andrii Nakryiko <andriin@fb.com >
Acked-by: Song Liu <songliubraving@fb.com >
Acked-by: Yonghong Song <yhs@fb.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2019-07-05 22:52:25 +02:00
Andrii Nakryiko
f654407481
selftests/bpf: switch BPF_ANNOTATE_KV_PAIR tests to BTF-defined maps
...
Switch tests that already rely on BTF to BTF-defined map definitions.
Signed-off-by: Andrii Nakryiko <andriin@fb.com >
Acked-by: Song Liu <songliubraving@fb.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2019-06-18 00:10:43 +02:00
Yonghong Song
16f0efc3b4
tools/bpf: add selftest in test_progs for bpf_send_signal() helper
...
The test covered both nmi and tracepoint perf events.
$ ./test_progs
...
test_send_signal_tracepoint:PASS:tracepoint 0 nsec
...
test_send_signal_common:PASS:tracepoint 0 nsec
...
test_send_signal_common:PASS:perf_event 0 nsec
...
test_send_signal:OK
Acked-by: Andrii Nakryiko <andriin@fb.com >
Signed-off-by: Yonghong Song <yhs@fb.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2019-05-24 23:26:48 +02:00