Home
last modified time | relevance | path

Searched refs:mmap_sz (Results 1 – 5 of 5) sorted by relevance

/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap06.c47 struct mp *mmap_sz = arg; in thr() local
53 a = rand() % mmap_sz->sz; in thr()
55 b = rand() % mmap_sz->sz; in thr()
56 *(mmap_sz->addr + b * hpage_size) = rand(); in thr()
66 struct mp mmap_sz[ARSZ]; in do_mmap() local
84 mmap_sz[i].sz = sz; in do_mmap()
85 mmap_sz[i].addr = addr; in do_mmap()
87 TEST(pthread_create(&tid[i], NULL, thr, &mmap_sz[i])); in do_mmap()
/external/bpftool/src/
Dgen.c654 size_t i, map_cnt = 0, prog_cnt = 0, file_sz, mmap_sz; in do_skeleton() local
704 mmap_sz = roundup(file_sz, sysconf(_SC_PAGE_SIZE)); in do_skeleton()
710 obj_data = mmap(NULL, mmap_sz, PROT_READ, MAP_PRIVATE, fd, 0); in do_skeleton()
1034 munmap(obj_data, mmap_sz); in do_skeleton()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c841 const size_t mmap_sz = roundup_page(sizeof(struct data)); in test_core_reloc() local
901 mmap_data = mmap(NULL, mmap_sz, PROT_READ | PROT_WRITE, in test_core_reloc()
954 CHECK_FAIL(munmap(mmap_data, mmap_sz)); in test_core_reloc()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dxdpxceiver.c1222 const size_t mmap_sz = 2 * ifobject->umem->num_frames * ifobject->umem->frame_size; in hugepages_present() local
1225 bufs = mmap(NULL, mmap_sz, PROT_READ | PROT_WRITE, in hugepages_present()
1230 munmap(bufs, mmap_sz); in hugepages_present()
/external/libbpf/src/
Dlibbpf.c11739 size_t mmap_sz = bpf_map_mmap_sz(map); in bpf_object__load_skeleton() local
11766 *mmaped = mmap(map->mmaped, mmap_sz, prot, in bpf_object__load_skeleton()