aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-07-11 23:24:00 +0000
committerAlexei Starovoitov <[email protected]>2023-07-12 14:57:18 +0000
commitc21de5fc5ffde70b21e4f370aebad79a7d7bdc0d (patch)
tree0d46394bd4c11858edd577b0299d495584bb7cbf /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentbpf: teach verifier actual bounds of bpf_get_smp_processor_id() result (diff)
downloadkernel-c21de5fc5ffde70b21e4f370aebad79a7d7bdc0d.tar.gz
kernel-c21de5fc5ffde70b21e4f370aebad79a7d7bdc0d.zip
selftests/bpf: extend existing map resize tests for per-cpu use case
Add a per-cpu array resizing use case and demonstrate how bpf_get_smp_processor_id() can be used to directly access proper data with no extra checks. Signed-off-by: Andrii Nakryiko <[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/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions