Lines Matching refs:timeout

160 	printf("usage: ksm_tests [-h] <test type> [-a prot] [-p page_count] [-l timeout]\n"
218 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout)
234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) {
244 struct timespec start_time, int timeout)
262 if (ksm_do_scan(2, start_time, timeout))
269 struct timespec start_time, int timeout)
348 long page_count, int timeout, size_t page_size)
363 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout))
381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size)
397 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout))
405 if (ksm_do_scan(1, start_time, timeout))
422 int timeout, bool use_zero_pages, size_t page_size)
440 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout))
486 static int check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout,
523 if (ksm_merge_pages(merge_type, numa1_map_ptr, page_size, start_time, timeout) ||
524 ksm_merge_pages(merge_type, numa2_map_ptr, page_size, start_time, timeout))
551 int timeout, size_t map_size)
593 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout))
618 static int ksm_merge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size)
634 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout))
659 static int ksm_unmerge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size)
674 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout))
681 if (ksm_unmerge_pages(map_ptr, map_size, start_time, timeout))
706 static int ksm_cow_time(int merge_type, int mapping, int prot, int timeout, size_t page_size)
745 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout))