diff options
author | Andrii Nakryiko <[email protected]> | 2023-01-20 12:09:00 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-01-23 20:53:00 +0100 |
commit | bc72742bebec8e0766af1e07e13169a873f9119c (patch) | |
tree | 027818ac31cd6e04710828bbcafb29c8259e9c39 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | ac4afd6e6fa4d4f9a0ab6ca76f4953545e4da7e6 (diff) |
selftests/bpf: Validate arch-specific argument registers limits
Update uprobe_autoattach selftest to validate architecture-specific
argument passing through registers. Use new BPF_UPROBE and
BPF_URETPROBE, and construct both BPF-side and user-space side in such
a way that for different architectures we are fetching and checking
different number of arguments, matching architecture-specific limit of
how many registers are available for argument passing.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: Alan Maguire <[email protected]> # arm64
Tested-by: Ilya Leoshkevich <[email protected]> # s390x
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions