diff options
author | Kui-Feng Lee <[email protected]> | 2024-05-23 10:42:00 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-06-03 20:52:42 -0700 |
commit | c4c6c3b785a0b1426add15d078da61f899abeaac (patch) | |
tree | bdf978cfc78a73d41542df82a794c3b069184d61 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | f19caf57d80f4432acea61d858d45ce194444389 (diff) |
selftests/bpf: Test kptr arrays and kptrs in nested struct fields.
Make sure that BPF programs can declare global kptr arrays and kptr fields
in struct types that is the type of a global variable or the type of a
nested descendant field in a global variable.
An array with only one element is special case, that it treats the element
like a non-array kptr field. Nested arrays are also tested to ensure they
are handled properly.
Acked-by: Eduard Zingerman <[email protected]>
Signed-off-by: Kui-Feng Lee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions