selftests/bpf: Add global subprog context passing tests
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Feb 2023 04:59:54 +0000 (20:59 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 Feb 2023 20:21:50 +0000 (21:21 +0100)
commite2b5cfc978f871996d1f8667515c0e06b33e620e
tree980f38a1b4e043ec3167cf63ce4d19c9eba42f6f
parent95ebb376176c52382293e05e63f142114a5e40ef
selftests/bpf: Add global subprog context passing tests

Add tests validating that it's possible to pass context arguments into
global subprogs for various types of programs, including a particularly
tricky KPROBE programs (which cover kprobes, uprobes, USDTs, a vast and
important class of programs).

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230216045954.3002473-4-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
tools/testing/selftests/bpf/progs/test_global_func_ctx_args.c [new file with mode: 0644]