summaryrefslogtreecommitdiff
path: root/samples/bpf/map_perf_test_user.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2020-07-08 03:48:53 +0900
committerDaniel Borkmann <daniel@iogearbox.net>2020-07-08 01:33:10 +0200
commit88795b4adb01a30fbfd75ef1c1ef73b4442e38b2 (patch)
tree674e5c8c7fcac6d50e75fb5a185c5b0493eed7f7 /samples/bpf/map_perf_test_user.c
parentaf9bd3e3331b8af42b6606c75797d041ab39380c (diff)
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 <danieltimlee@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200707184855.30968-3-danieltimlee@gmail.com
Diffstat (limited to 'samples/bpf/map_perf_test_user.c')
0 files changed, 0 insertions, 0 deletions