diff options
author | 2022-05-10 01:22:20 -0700 | |
---|---|---|
committer | 2022-05-10 10:34:57 -0700 | |
commit | 9263dddc7b6f816fdd327eee435cc54ba51dd095 (patch) | |
tree | 14509baef62b14a30ed234e8fd0cd2fcd0af60b8 /tools/perf/scripts/python/stackcollapse.py | |
parent | bpf: Print some info if disable bpf_jit_enable failed (diff) | |
download | linux-dev-9263dddc7b6f816fdd327eee435cc54ba51dd095.tar.xz linux-dev-9263dddc7b6f816fdd327eee435cc54ba51dd095.zip |
bpf: Extend batch operations for map-in-map bpf-maps
This patch extends batch operations support for map-in-map map-types:
BPF_MAP_TYPE_HASH_OF_MAPS and BPF_MAP_TYPE_ARRAY_OF_MAPS
A usecase where outer HASH map holds hundred of VIP entries and its
associated reuse-ports per VIP stored in REUSEPORT_SOCKARRAY type
inner map, needs to do batch operation for performance gain.
This patch leverages the exiting generic functions for most of the batch
operations. As map-in-map's value contains the actual reference of the inner map,
for BPF_MAP_TYPE_HASH_OF_MAPS type, it needed an extra step to fetch the
map_id from the reference value.
selftests are added in next patch 2/2.
Signed-off-by: Takshak Chahande <ctakshak@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220510082221.2390540-1-ctakshak@fb.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions