selftests/bpf: add __arg_ctx BTF rewrite test
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 4 Jan 2024 01:38:47 +0000 (17:38 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Jan 2024 05:22:49 +0000 (21:22 -0800)
commit95226f5a36695fd5740e130016d9ed697cfb2bad
tree60b32e18321347e5c34c7cf03ac24aa8d3650b68
parent67fe459144dd629855bd9fb4b12bd9c4f792a8cf
selftests/bpf: add __arg_ctx BTF rewrite test

Add a test validating that libbpf uploads BTF and func_info with
rewritten type information for arguments of global subprogs that are
marked with __arg_ctx tag.

Suggested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240104013847.3875810-10-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c