aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-23 20:01:05 +0000
committerDaniel Borkmann <[email protected]>2021-11-25 22:05:23 +0000
commite4f7ac90c2b09766e4acf771908987391c836413 (patch)
tree06c24222569e75dd661c2f65edb9447ec13681ed /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c
parentlibbpf: Load global data maps lazily on legacy kernels (diff)
downloadkernel-e4f7ac90c2b09766e4acf771908987391c836413.tar.gz
kernel-e4f7ac90c2b09766e4acf771908987391c836413.zip
selftests/bpf: Mix legacy (maps) and modern (vars) BPF in one test
Add selftest that combines two BPF programs within single BPF object file such that one of the programs is using global variables, but can be skipped at runtime on old kernels that don't support global data. Another BPF program is written with the goal to be runnable on very old kernels and only relies on explicitly accessed BPF maps. Such test, run against old kernels (e.g., libbpf CI will run it against 4.9 kernel that doesn't support global data), allows to test the approach and ensure that libbpf doesn't make unnecessary assumption about necessary kernel features. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions