Lines Matching defs:mapping
200 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size)
202 void *map_ptr = mmap(ptr, map_size, PROT_WRITE, mapping, -1, 0);
347 static int check_ksm_merge(int merge_type, int mapping, int prot,
359 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count);
381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size)
393 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count);
421 static int check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count,
436 map_ptr = allocate_memory(NULL, prot, mapping, 0, page_size * page_count);
486 static int check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout,
550 static int ksm_merge_hugepages_time(int merge_type, int mapping, int prot,
618 static int ksm_merge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size)
626 map_ptr = allocate_memory(NULL, prot, mapping, '*', map_size);
659 static int ksm_unmerge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size)
667 map_ptr = allocate_memory(NULL, prot, mapping, '*', map_size);
706 static int ksm_cow_time(int merge_type, int mapping, int prot, int timeout, size_t page_size)
715 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count);