aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_mmap.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-11-17 09:28:05 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-11-18 11:41:59 +0100
commit7fe74b436236b17ac57e46527166d22bcc230175 (patch)
tree7caa1d7e4c28ee1b925410be13da037eaee7d902 /tools/testing/selftests/bpf/progs/test_mmap.c
parentbpf: Add mmap() support for BPF_MAP_TYPE_ARRAY (diff)
downloadlinux-dev-7fe74b436236b17ac57e46527166d22bcc230175.tar.xz
linux-dev-7fe74b436236b17ac57e46527166d22bcc230175.zip
libbpf: Make global data internal arrays mmap()-able, if possible
Add detection of BPF_F_MMAPABLE flag support for arrays and add it as an extra flag to internal global data maps, if supported by kernel. This allows users to memory-map global data and use it without BPF map operations, greatly simplifying user experience. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20191117172806.2195367-5-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_mmap.c')
0 files changed, 0 insertions, 0 deletions