selftests/bpf: Add raw_tp_test_run
authorSong Liu <songliubraving@fb.com>
Fri, 25 Sep 2020 20:54:31 +0000 (13:54 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Sep 2020 19:52:36 +0000 (21:52 +0200)
commit09d8ad16885ee2ea3b9a4d4735ae053f425a1faf
tree29a4777062105484362120c0279d2d3a9a3b91c7
parent88f7fe7233244101fa5b7786e2e298bf27fe1375
selftests/bpf: Add raw_tp_test_run

This test runs test_run for raw_tracepoint program. The test covers ctx
input, retval output, and running on correct cpu.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200925205432.1777-4-songliubraving@fb.com
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_raw_tp_test_run.c [new file with mode: 0644]