History log of /linux-master/tools/testing/selftests/bpf/progs/freplace_global_func.c
Revision Date Author Comments
# 2cf7b7ff 06-Jun-2022 Toke Høiland-Jørgensen <toke@redhat.com>

selftests/bpf: Add selftest for calling global functions from freplace

Add a selftest that calls a global function with a context object parameter
from an freplace function to check that the program context type is
correctly converted to the freplace target when fetching the context type
from the kernel BTF.

v2:
- Trim includes
- Get rid of global function
- Use __noinline

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20220606075253.28422-2-toke@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>