diff options
author | Song Liu <song@kernel.org> | 2024-07-22 22:14:55 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-07-29 15:05:04 -0700 |
commit | c7db4873fbd63918c124a5d67182492c78ba705b (patch) | |
tree | ec9505fd0f3b14d1911e9708af3120c49e7913d3 /tools/testing/selftests/bpf/prog_tests/assign_reuse.c | |
parent | 1edf364a8af49390ae8f81595625a189a08b9be3 (diff) |
selftests/bpf: Add a test for mmap-able map in map
Regular BPF hash map is not mmap-able from user space. However, map-in-map
with outer map of type BPF_MAP_TYPE_HASH_OF_MAPS and mmap-able array as
inner map can perform similar operations as a mmap-able hash map. This
can be used by applications that benefit from fast accesses to some local
data.
Add a selftest to show this use case.
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240723051455.1589192-1-song@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/assign_reuse.c')
0 files changed, 0 insertions, 0 deletions