aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/map_perf_test_user.c
diff options
context:
space:
mode:
authorDaniel T. Lee <[email protected]>2020-07-07 18:48:53 +0000
committerDaniel Borkmann <[email protected]>2020-07-07 23:33:10 +0000
commit88795b4adb01a30fbfd75ef1c1ef73b4442e38b2 (patch)
tree674e5c8c7fcac6d50e75fb5a185c5b0493eed7f7 /samples/bpf/map_perf_test_user.c
parentsamples: bpf: Fix bpf programs with kprobe/sys_connect event (diff)
downloadkernel-88795b4adb01a30fbfd75ef1c1ef73b4442e38b2.tar.gz
kernel-88795b4adb01a30fbfd75ef1c1ef73b4442e38b2.zip
samples: bpf: Refactor BPF map in map test with libbpf
From commit 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map support"), a way to define internal map in BTF-defined map has been added. Instead of using previous 'inner_map_idx' definition, the structure to be used for the inner map can be directly defined using array directive. __array(values, struct inner_map) This commit refactors map in map test program with libbpf by explicitly defining inner map with BTF-defined format. Signed-off-by: Daniel T. Lee <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'samples/bpf/map_perf_test_user.c')
0 files changed, 0 insertions, 0 deletions