aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_access_variable_array.c
diff options
context:
space:
mode:
authorFeng Zhou <[email protected]>2023-04-20 03:27:34 +0000
committerAlexei Starovoitov <[email protected]>2023-04-20 04:29:39 +0000
commit2569c7b8726fc06d946a4f999fb1be15b68f3f3c (patch)
tree527655701fd522478922029e1af75d45352df4c0 /tools/testing/selftests/bpf/progs/test_access_variable_array.c
parentselftests/xsk: Fix munmap for hugepage allocated umem (diff)
downloadkernel-2569c7b8726fc06d946a4f999fb1be15b68f3f3c.tar.gz
kernel-2569c7b8726fc06d946a4f999fb1be15b68f3f3c.zip
bpf: support access variable length array of integer type
After this commit: bpf: Support variable length array in tracing programs (9c5f8a1008a1) Trace programs can access variable length array, but for structure type. This patch adds support for integer type. Example: Hook load_balance struct sched_domain { ... unsigned long span[]; } The access: sd->span[0]. Co-developed-by: Chengming Zhou <[email protected]> Signed-off-by: Chengming Zhou <[email protected]> Signed-off-by: Feng Zhou <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_access_variable_array.c')
0 files changed, 0 insertions, 0 deletions