OSDN Git Service

selftests/bpf: Add a test to confirm PT_REGS_PARM4_SYSCALL
authorKenta Tada <Kenta.Tada@sony.com>
Mon, 24 Jan 2022 14:16:22 +0000 (23:16 +0900)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 25 Jan 2022 05:04:10 +0000 (21:04 -0800)
commit77fc0330dfe5abf9b7ec336f173d2e1fd7258cd5
treecf3c2cd0d9ca08edbf4893bacca420a3418554b5
parentd084df3b7a4c49fb2abec55f8d512c51d643c408
selftests/bpf: Add a test to confirm PT_REGS_PARM4_SYSCALL

Add a selftest to verify the behavior of PT_REGS_xxx
and the CORE variant.

Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220124141622.4378-4-Kenta.Tada@sony.com
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_syscall_macro.c [new file with mode: 0644]