Home
last modified time | relevance | path

Searched refs:MMAP_SZ (Results 1 – 2 of 2) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/vm/
Dmap_populate.c20 #ifndef MMAP_SZ
21 #define MMAP_SZ 4096 macro
41 ret = msync(smap, MMAP_SZ, MS_SYNC); in parent_f()
57 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f()
84 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main()
87 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
93 ret = msync(smap, MMAP_SZ, MS_SYNC); in main()
/external/igt-gpu-tools/tests/i915/
Dgem_exec_latency.c459 #define MMAP_SZ (64 << 10) in rthog_latency_on_ring() macro
470 igt_assert(ARRAY_SIZE(engines) * NPASS * sizeof(*results) <= MMAP_SZ); in rthog_latency_on_ring()
471 results = mmap(NULL, MMAP_SZ, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); in rthog_latency_on_ring()
616 munmap(results, MMAP_SZ); in rthog_latency_on_ring()