Home
last modified time | relevance | path

Searched refs:start_time (Results 1 – 18 of 18) sorted by relevance

/xnu-11215/tests/vm/
H A Dperf_madvise.c88 struct timespec start_time, end_time; in madvise_free_test() local
89 ret = clock_gettime(kThreadCPUTimeClock, &start_time); in madvise_free_test()
97 time_elapsed_us += timespec_difference_us(&end_time, &start_time); in madvise_free_test()
99 ret = clock_gettime(kThreadCPUTimeClock, &start_time); in madvise_free_test()
106 time_fault_us += timespec_difference_us(&end_time, &start_time); in madvise_free_test()
H A Dfault_throughput.c172 static uint64_t finish_iteration(test_globals_t *globals, uint64_t start_time);
346 struct timespec start_time, end_time; in grab_and_fault_pages() local
355 ret = clock_gettime(kThreadCPUTimeClock, &start_time); in grab_and_fault_pages()
362 nanoseconds_faulting_on_cpu += (unsigned long) timespec_difference_us(&end_time, &start_time); in grab_and_fault_pages()
371 uint64_t start_time; in start_iteration() local
383 start_time = current_timestamp_ns(); in start_iteration()
389 return start_time; in start_iteration()
393 finish_iteration(test_globals_t* globals, uint64_t start_time) in finish_iteration() argument
406 return end_time - start_time; in finish_iteration()
H A Dperf_compressor.c223 uint64_t start_time, end_time; in decompress_buffer() local
224 start_time = current_timestamp_ns(); in decompress_buffer()
230 return end_time - start_time; in decompress_buffer()
H A Dmemorystatus_jetsam_zprint_snapshot.c177 const uint64_t start_time = mach_absolute_time(); in run_jzs_test() local
230 if ((mach_absolute_time() - start_time) > test_timeout_in_nanoseconds) { in run_jzs_test()
/xnu-11215/bsd/skywalk/nexus/netif/
H A Dnx_netif_poll.c302 struct ifnet_stat_increment_param *s, struct timespec *start_time, in netif_rxpoll_poll_driver() argument
320 nanouptime(start_time); in netif_rxpoll_poll_driver()
324 net_timersub(&now, start_time, poll_duration); in netif_rxpoll_poll_driver()
351 struct timespec start_time, poll_intvl, poll_duration; in netif_rxpoll_compat_thread_cont() local
356 net_timerclear(&start_time); in netif_rxpoll_compat_thread_cont()
394 netif_rxpoll_poll_driver(ifp, m_lim, &s, &start_time, in netif_rxpoll_compat_thread_cont()
407 net_timerclear(&start_time); in netif_rxpoll_compat_thread_cont()
/xnu-11215/tools/tests/perf_index/
H A Dtest_controller.py35 start_time = time.time()
47 return end_time - start_time
/xnu-11215/osfmk/i386/
H A Dlocks_i386.c1897 uint64_t spin_start, start_time, cur_time, avg_hold_time, bias, delta; in lck_mtx_lock_spinwait_x86() local
1909 start_time = mach_absolute_time(); in lck_mtx_lock_spinwait_x86()
1920 window_deadline = start_time + low_MutexSpin; in lck_mtx_lock_spinwait_x86()
1931 high_deadline = start_time + high_MutexSpin; in lck_mtx_lock_spinwait_x86()
1933 high_deadline = start_time + low_MutexSpin * real_ncpus; in lck_mtx_lock_spinwait_x86()
2078 delta = cur_time - start_time; in lck_mtx_lock_spinwait_x86()
2079 sliding_deadline = start_time + (delta * (real_ncpus - 1)) / total_hold_time_samples; in lck_mtx_lock_spinwait_x86()
H A Dmp.c1655 uint64_t start_time = cpu_datap(my_cpu)->debugger_entry_time = mach_absolute_time(); in mp_kdp_enter() local
1662 if (mach_absolute_time() - start_time > 500000000ll) { in mp_kdp_enter()
/xnu-11215/osfmk/kern/
H A Dexclaves_memory.c161 uint64_t start_time = mach_continuous_approximate_time(); in exclaves_memory_alloc() local
201 uint64_t elapsed_time = mach_continuous_approximate_time() - start_time; in exclaves_memory_alloc()
H A Dwaitq.c905 uint64_t start_time = ml_get_sched_hygiene_timebase(); in waitq_select_queue_flush() local
934 (end_time - start_time) > waitq_flush_excess_time_mt) { in waitq_select_queue_flush()
966 KDBG(MACHDBG_CODE(DBG_MACH_SCHED, MACH_INT_MASKED_RESET), flushed_threads, end_time - start_time); in waitq_select_queue_flush()
/xnu-11215/osfmk/tests/
H A Dpmap_tests.c529 uint64_t start_time = mach_absolute_time(); in test_pmap_page_protect_overhead() local
533 duration += (mach_absolute_time() - start_time); in test_pmap_page_protect_overhead()
/xnu-11215/tools/lldbmacros/
H A Dktrace.py809 start_time = time.time()
839 elapsed = time.time() - start_time
/xnu-11215/tools/tests/zero-to-n/
H A Dzero-to-n.c1346 cpu_time_t start_time; in main() local
1349 record_cpu_time(&start_time); in main()
1474 uint32_t cpu_idle_time = (finish_time.idle - start_time.idle) * 10; in main()
/xnu-11215/tests/
H A Dstackshot_tests.m214 uint64_t start_time = mach_absolute_time();
247 dt_stat_mach_time_add(scenario->timer, end_time - start_time);
491 uint64_t start_time;
510 start_time = clock_gettime_nsec_np(CLOCK_MONOTONIC);
511 while (clock_gettime_nsec_np(CLOCK_MONOTONIC) - start_time < max_diff_time) {
929 uint64_t start_time = mach_absolute_time();
937 …ceived signal from pre-exec child, unique_pid is %llu, timestamp is %llu", unique_pid, start_time);
950 .since_timestamp = start_time
/xnu-11215/osfmk/arm/
H A Dmachine_routines.h851 uint64_t start_time; member
H A Dmachine_routines_common.c524 on_core.start_time = timestamp; in machine_thread_going_on_core()
/xnu-11215/bsd/vfs/
H A Dvfs_subr.c12992 uint64_t elapsed_sec, start_time; in wait_for_lease_break() local
13020 start_time = fl->fl_release_start; in wait_for_lease_break()
13022 start_time = fl->fl_downgrade_start; in wait_for_lease_break()
13025 start_time = fl->fl_downgrade_start; in wait_for_lease_break()
13027 assert(start_time > 0); in wait_for_lease_break()
13029 elapsed_sec = absolutetime_elapsed_in_secs(start_time); in wait_for_lease_break()
/xnu-11215/bsd/net/
H A Ddlil.c4493 struct timespec start_time; in ifnet_poll_thread_cont() local
4498 net_timerclear(&start_time); in ifnet_poll_thread_cont()