Home
last modified time | relevance | path

Searched refs:map_sz (Results 1 – 4 of 4) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dmmap.c19 const size_t map_sz = roundup_page(sizeof(struct map_data)); in test_mmap() local
135 err = mprotect(map_mmaped, map_sz, PROT_READ); in test_mmap()
140 err = munmap(map_mmaped, map_sz); in test_mmap()
152 err = mprotect(map_mmaped, map_sz, PROT_WRITE); in test_mmap()
155 err = mprotect(map_mmaped, map_sz, PROT_EXEC); in test_mmap()
168 err = munmap(p, map_sz); in test_mmap()
183 munmap(tmp1, map_sz); in test_mmap()
268 CHECK_FAIL(munmap(map_mmaped, map_sz)); in test_mmap()
274 munmap(tmp1, map_sz); in test_mmap()
280 munmap(tmp1, map_sz); in test_mmap()
[all …]
A Dmap_init.c38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup() argument
52 err = bpf_map__set_max_entries(skel->maps.hashmap1, map_sz); in setup()
/tools/bpf/bpftool/
A Dgen.c489 size_t map_sz; in bpf_map_mmap_sz() local
491 map_sz = (size_t)roundup(bpf_map__value_size(map), 8) * bpf_map__max_entries(map); in bpf_map_mmap_sz()
492 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
493 return map_sz; in bpf_map_mmap_sz()
855 size_t i, map_sz; in codegen_maps_skeleton() local
866 map_sz = offsetof(struct bpf_map_skeleton, link); in codegen_maps_skeleton()
870 map_sz = sizeof(struct bpf_map_skeleton); in codegen_maps_skeleton()
889 map_cnt, map_sz, map_sz, map_sz in codegen_maps_skeleton()
/tools/lib/bpf/
A Dlibbpf.c1793 size_t map_sz; in array_map_mmap_sz() local
1795 map_sz = (size_t)roundup(value_sz, 8) * max_entries; in array_map_mmap_sz()
1796 map_sz = roundup(map_sz, page_sz); in array_map_mmap_sz()
1797 return map_sz; in array_map_mmap_sz()
2344 size_t map_sz; in bpf_object__init_kconfig_map() local
2356 map_sz = last_ext->kcfg.data_off + last_ext->kcfg.sz; in bpf_object__init_kconfig_map()
2359 NULL, map_sz); in bpf_object__init_kconfig_map()

Completed in 31 milliseconds