Lines Matching refs:start_time
218 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() argument
234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan()
244 struct timespec start_time, int timeout) in ksm_merge_pages() argument
262 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages()
269 struct timespec start_time, int timeout) in ksm_unmerge_pages() argument
351 struct timespec start_time; in check_ksm_merge() local
353 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge()
363 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge()
384 struct timespec start_time; in check_ksm_unmerge() local
387 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge()
397 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_unmerge()
405 if (ksm_do_scan(1, start_time, timeout)) in check_ksm_unmerge()
425 struct timespec start_time; in check_ksm_zero_page_merge() local
427 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_zero_page_merge()
440 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_zero_page_merge()
490 struct timespec start_time; in check_ksm_numa_merge() local
494 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_numa_merge()
523 if (ksm_merge_pages(merge_type, numa1_map_ptr, page_size, start_time, timeout) || in check_ksm_numa_merge()
524 ksm_merge_pages(merge_type, numa2_map_ptr, page_size, start_time, timeout)) in check_ksm_numa_merge()
554 struct timespec start_time, end_time; in ksm_merge_hugepages_time() local
589 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_merge_hugepages_time()
593 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_hugepages_time()
600 scan_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_merge_hugepages_time()
601 (end_time.tv_nsec - start_time.tv_nsec); in ksm_merge_hugepages_time()
621 struct timespec start_time, end_time; in ksm_merge_time() local
630 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_merge_time()
634 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_time()
641 scan_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_merge_time()
642 (end_time.tv_nsec - start_time.tv_nsec); in ksm_merge_time()
662 struct timespec start_time, end_time; in ksm_unmerge_time() local
670 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_unmerge_time()
674 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_unmerge_time()
677 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_unmerge_time()
681 if (ksm_unmerge_pages(map_ptr, map_size, start_time, timeout)) in ksm_unmerge_time()
688 scan_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_unmerge_time()
689 (end_time.tv_nsec - start_time.tv_nsec); in ksm_unmerge_time()
709 struct timespec start_time, end_time; in ksm_cow_time() local
719 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_cow_time()
730 cow_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_cow_time()
731 (end_time.tv_nsec - start_time.tv_nsec); in ksm_cow_time()
745 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in ksm_cow_time()
748 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in ksm_cow_time()
759 cow_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_cow_time()
760 (end_time.tv_nsec - start_time.tv_nsec); in ksm_cow_time()