Lines Matching refs:start_time
139 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() argument
155 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan()
164 static int ksm_merge_pages(void *addr, size_t size, struct timespec start_time, int timeout) in ksm_merge_pages() argument
174 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages()
245 struct timespec start_time; in check_ksm_merge() local
247 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge()
257 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge()
276 struct timespec start_time; in check_ksm_unmerge() local
279 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge()
289 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_unmerge()
297 if (ksm_do_scan(1, start_time, timeout)) in check_ksm_unmerge()
317 struct timespec start_time; in check_ksm_zero_page_merge() local
319 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_zero_page_merge()
332 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_zero_page_merge()
361 struct timespec start_time; in check_ksm_numa_merge() local
364 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_numa_merge()
392 if (ksm_merge_pages(numa1_map_ptr, page_size, start_time, timeout) || in check_ksm_numa_merge()
393 ksm_merge_pages(numa2_map_ptr, page_size, start_time, timeout)) in check_ksm_numa_merge()
422 struct timespec start_time, end_time; in ksm_merge_time() local
431 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_merge_time()
435 if (ksm_merge_pages(map_ptr, map_size, start_time, timeout)) in ksm_merge_time()
442 scan_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_merge_time()
443 (end_time.tv_nsec - start_time.tv_nsec); in ksm_merge_time()
463 struct timespec start_time, end_time; in ksm_cow_time() local
473 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_cow_time()
484 cow_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_cow_time()
485 (end_time.tv_nsec - start_time.tv_nsec); in ksm_cow_time()
499 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in ksm_cow_time()
502 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_cow_time()
513 cow_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_cow_time()
514 (end_time.tv_nsec - start_time.tv_nsec); in ksm_cow_time()