]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a12ec8489aa58eb22e76ae9664cca1a8c14281c
tree29a4777062105484362120c0279d2d3a9a3b91c7
parentb997f7d3dfd51ceac30cae43b27495fde3b5404f
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]