OSDN Git Service

bpf/selftests: Add selftests for new task kfuncs
authorDavid Vernet <void@manifault.com>
Sun, 20 Nov 2022 05:10:04 +0000 (23:10 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 20 Nov 2022 17:16:21 +0000 (09:16 -0800)
commitfe147956fca4604b920e6be652abc9bea8ce8952
treede1d9429ce4cf0c4308ffda5fb17f0f61b25829f
parent90660309b0c76c564a31a21f3a81d6641a9acaa0
bpf/selftests: Add selftests for new task kfuncs

A previous change added a series of kfuncs for storing struct
task_struct objects as referenced kptrs. This patch adds a new
task_kfunc test suite for validating their expected behavior.

Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20221120051004.3605026-5-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/DENYLIST.s390x
tools/testing/selftests/bpf/prog_tests/task_kfunc.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/task_kfunc_common.h [new file with mode: 0644]
tools/testing/selftests/bpf/progs/task_kfunc_failure.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/task_kfunc_success.c [new file with mode: 0644]