aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2022-08-31 08:26:46 -0700
committerAlexei Starovoitov <[email protected]>2022-09-06 19:51:14 -0700
commit720e6a435194fb5237833a4a7ec6aa60a78964a8 (patch)
treec93447defab4fe640644d503afab8a2022315d4e /tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
parent1e660f7ebe0ff6ac65ee0000280392d878630a67 (diff)
bpf: Allow struct argument in trampoline based programs
Allow struct argument in trampoline based programs where the struct size should be <= 16 bytes. In such cases, the argument will be put into up to 2 registers for bpf, x86_64 and arm64 architectures. To support arch-specific trampoline manipulation, add arg_flags for additional struct information about arguments in btf_func_model. Such information will be used in arch specific function arch_prepare_bpf_trampoline() to prepare argument access properly in trampoline. Signed-off-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c')
0 files changed, 0 insertions, 0 deletions