Home
last modified time | relevance | path

Searched refs:mach_absolute_time (Results 1 – 25 of 170) sorted by relevance

1234567

/xnu-8019.80.24/osfmk/tests/ !
H A Dktest.c49 ktest_current_time = mach_absolute_time(); in ktest_testbegin()
57 ktest_current_time = mach_absolute_time(); in ktest_testend()
67 ktest_current_time = mach_absolute_time(); in ktest_testskip()
79 ktest_current_time = mach_absolute_time(); in ktest_log()
89 ktest_current_time = mach_absolute_time(); in ktest_perf()
96 ktest_current_time = mach_absolute_time(); in ktest_testcase()
/xnu-8019.80.24/bsd/kern/ !
H A Dkern_shutdown.c221 startTime = mach_absolute_time(); in reboot_kernel()
223 halt_log_enter("proc_shutdown", 0, mach_absolute_time() - startTime); in reboot_kernel()
226 startTime = mach_absolute_time(); in reboot_kernel()
228 halt_log_enter("audit_shutdown", 0, mach_absolute_time() - startTime); in reboot_kernel()
237 startTime = mach_absolute_time(); in reboot_kernel()
241 startTime = mach_absolute_time(); in reboot_kernel()
243 halt_log_enter("shutdown.trace", 0, mach_absolute_time() - startTime); in reboot_kernel()
256 startTime = mach_absolute_time(); in reboot_kernel()
258 halt_log_enter("vfs_unmountall", 0, mach_absolute_time() - startTime); in reboot_kernel()
263 startTime = mach_absolute_time(); in reboot_kernel()
[all …]
/xnu-8019.80.24/osfmk/i386/ !
H A Dacpi.c172 acpi_sleep_abstime = mach_absolute_time(); in acpi_hibernate()
247 acpi_sleep_abstime = mach_absolute_time(); in acpi_sleep_kernel()
265 acpi_wake_abstime = mach_absolute_time(); in acpi_sleep_kernel()
270 acpi_wake_postrebase_abstime = start = mach_absolute_time(); in acpi_sleep_kernel()
343 elapsed += mach_absolute_time() - start; in acpi_sleep_kernel()
351 start = mach_absolute_time(); in acpi_sleep_kernel()
472 acpi_idle_abstime = mach_absolute_time(); in acpi_idle_kernel()
499 acpi_wake_abstime = mach_absolute_time(); in acpi_idle_kernel()
504 acpi_wake_postrebase_abstime = mach_absolute_time(); in acpi_idle_kernel()
505 assert(mach_absolute_time() >= acpi_idle_abstime); in acpi_idle_kernel()
[all …]
H A Di386_timer.c84 orig_abstime = abstime = mach_absolute_time(); in timer_intr()
113 abstime = mach_absolute_time(); in timer_intr()
126 abstime = mach_absolute_time(); in timer_intr()
187 mytimer->when_set = mach_absolute_time(); in timer_set_deadline()
272 abstime = mach_absolute_time(); in timer_queue_expire_local()
277 mytimer->when_set = mach_absolute_time(); in timer_queue_expire_local()
294 abstime = mach_absolute_time(); in timer_queue_expire_rescan()
299 mytimer->when_set = mach_absolute_time(); in timer_queue_expire_rescan()
H A Dmp.c584 uint64_t now = mach_absolute_time(); in NMIInterruptHandler()
853 lsti->owner_cpu, mach_absolute_time()); in mp_safe_spin_lock()
1103 deadline = mach_absolute_time() + LockTimeOut; in NMIPI_panic()
1109 mach_absolute_time() < deadline) { in NMIPI_panic()
1647 uint64_t start_time = cpu_datap(my_cpu)->debugger_entry_time = mach_absolute_time(); in mp_kdp_enter()
1654 if (mach_absolute_time() - start_time > 500000000ll) { in mp_kdp_enter()
1839 now = mach_absolute_time(); in kdp_x86_xcpu_invoke()
1841 (timeout == 0 || (mach_absolute_time() - now) < timeout)) { in kdp_x86_xcpu_invoke()
1864 current_cpu_datap()->debugger_ipi_time = mach_absolute_time(); in mp_kdp_wait()
1897 debugger_exit_time = mach_absolute_time(); in mp_kdp_exit()
[all …]
/xnu-8019.80.24/osfmk/arm/ !
H A Drtclock.c160 abstime = mach_absolute_time(); in rtclock_init()
169 mach_absolute_time(void) in mach_absolute_time() function
238 absolutetime_to_microtime(mach_absolute_time(), secs, microsecs); in clock_get_system_microtime()
248 abstime = mach_absolute_time(); in clock_get_system_nanotime()
290 abstime = mach_absolute_time(); in rtclock_intr()
296 abstime = mach_absolute_time(); in rtclock_intr()
353 current_time = mach_absolute_time(); in setPop()
375 current_time = mach_absolute_time(); in SetIdlePop()
488 now = mach_absolute_time(); in machine_delay_until()
H A Darm_timer.c76 abstime = mach_absolute_time(); /* Get the time now */ in timer_intr()
92 abstime = mach_absolute_time(); /* Get the time again since we ran a bit */ in timer_intr()
105 abstime = mach_absolute_time(); /* Get the time again since we ran a bit */ in timer_intr()
196 abstime = mach_absolute_time(); in timer_queue_expire_local()
/xnu-8019.80.24/tools/tests/mktimer/ !
H A Dmktimer_test.c60 uint64_t ctime = mach_absolute_time(); in cfmcb()
80 deadline = mach_absolute_time() + interval_abs; in cfmcb()
126 …mk_timer_arm_leeway(timerPort, MK_TIMER_CRITICAL, mach_absolute_time() + interval_abs, leeway_abs); in main()
128 mk_timer_arm(timerPort, mach_absolute_time() + interval_abs); in main()
/xnu-8019.80.24/osfmk/arm64/ !
H A Ddbgwrap.c93 uint64_t deadline = mach_absolute_time() + interval; in ml_dbgwrap_wait_cpu_halted()
95 if (mach_absolute_time() > deadline) { in ml_dbgwrap_wait_cpu_halted()
155 uint64_t deadline = mach_absolute_time() + interval; in ml_dbgwrap_stuff_instr()
166 if (mach_absolute_time() > deadline) { in ml_dbgwrap_stuff_instr()
202 uint64_t deadline = mach_absolute_time() + interval; in ml_dbgwrap_read_dtr()
213 if (mach_absolute_time() > deadline) { in ml_dbgwrap_read_dtr()
/xnu-8019.80.24/tests/ !
H A Dpoll.c32 begin_time = mach_absolute_time();
34 sleep_time = mach_absolute_time() - begin_time;
37 begin_time = mach_absolute_time();
40 poll_time = mach_absolute_time() - begin_time;
H A Dworkq_sigprof.c40 uint64_t spin_start = mach_absolute_time(); in workq_block()
41 while (mach_absolute_time() - spin_start < 30 * NSEC_PER_SEC) { in workq_block()
H A Dmach_continuous_time.c79 volatile uint64_t multiple_test = to_ms(mach_absolute_time());
88 tmp = mach_absolute_time();
92 tmp = mach_absolute_time();
301 t = mach_absolute_time(); in T_STAT_MEASURE_LOOP()
320 t = mach_absolute_time(); in T_STAT_MEASURE_LOOP()
H A Dgettimeofday.c40 mach_time_before = mach_absolute_time();
45 mach_time_after = mach_absolute_time();
H A Dworkqueue_cooperative.c33 uint64_t current_time = mach_absolute_time(); in spin_for_duration()
38 while (mach_absolute_time() < timeout) { in spin_for_duration()
/xnu-8019.80.24/osfmk/kern/ !
H A Dclock.c586 now = mach_absolute_time(); in clock_get_calendar_absolute_and_microtime_locked()
605 now = mach_absolute_time(); in clock_get_calendar_absolute_and_nanotime_locked()
698 now = mach_absolute_time(); in clock_gettimeofday_and_absolute_time()
819 uint64_t now_b = mach_absolute_time(); in clock_set_calendar_microtime()
825 uint64_t now_a = mach_absolute_time(); in clock_set_calendar_microtime()
862 now = mach_absolute_time(); in clock_get_calendar_uptime()
890 now = mach_absolute_time(); in clock_update_calendar()
1004 now = mach_absolute_time(); in print_all_clock_variables()
1190 uint64_t abstime = mach_absolute_time(); in clock_wakeup_calendar_hwclock()
1294 wake_abs = mach_absolute_time(); in clock_wakeup_calendar_legacy()
[all …]
H A Dkern_stackshot.c400 uint64_t time_start = mach_absolute_time(); in stack_snapshot_from_kernel()
415 uint64_t time_end = mach_absolute_time(); in stack_snapshot_from_kernel()
774 uint64_t time_start = mach_absolute_time(); in kern_stack_snapshot_internal()
788 uint64_t time_end = mach_absolute_time(); in kern_stack_snapshot_internal()
1473 latency_info->cur_tsnap_latency = mach_absolute_time(); in kcdata_record_task_snapshot()
1546 latency_info->cur_tsnap_latency = mach_absolute_time() - latency_info->cur_tsnap_latency; in kcdata_record_task_snapshot()
1547 latency_info->pmap_latency = mach_absolute_time(); in kcdata_record_task_snapshot()
1569 latency_info->pmap_latency = mach_absolute_time() - latency_info->pmap_latency; in kcdata_record_task_snapshot()
1570 latency_info->bsd_proc_ids_latency = mach_absolute_time(); in kcdata_record_task_snapshot()
1574 latency_info->bsd_proc_ids_latency = mach_absolute_time() - latency_info->bsd_proc_ids_latency; in kcdata_record_task_snapshot()
[all …]
H A Dtest_mpsc_queue.c61 *q->end = mach_absolute_time(); in mpsc_test_pingpong_invoke()
116 start = mach_absolute_time(); in mpsc_test_pingpong()
H A Dlock_rw.c653 return mach_absolute_time(); in lck_rw_deadline_for_spin()
655 return mach_absolute_time() + os_atomic_load(&MutexSpin, relaxed); in lck_rw_deadline_for_spin()
657 return mach_absolute_time() + (100000LL * 1000000000LL); in lck_rw_deadline_for_spin()
712 if (!wait || (mach_absolute_time() >= deadline)) { in lck_rw_drain_status()
794 if (!wait || (mach_absolute_time() >= deadline)) { in lck_rw_grab()
848 wait_interval = mach_absolute_time(); in lck_rw_lock_exclusive_gen()
917 wait_interval = mach_absolute_time(); in lck_rw_lock_exclusive_gen()
982 mach_absolute_time() - wait_interval, 1); in lck_rw_lock_exclusive_gen()
991 mach_absolute_time() - wait_interval, 1, in lck_rw_lock_exclusive_gen()
1162 wait_interval = mach_absolute_time(); in lck_rw_lock_shared_gen()
[all …]
/xnu-8019.80.24/libsyscall/wrappers/ !
H A Dmach_approximate_time.c26 extern uint64_t mach_absolute_time(void);
36 return mach_absolute_time(); in mach_approximate_time()
/xnu-8019.80.24/iokit/Kernel/ !
H A DIOInterruptEventSource.cpp344 startSystemTime = mach_absolute_time(); in checkForWork()
370 endSystemTime = mach_absolute_time(); in checkForWork()
396 startSystemTime = mach_absolute_time(); in checkForWork()
422 endSystemTime = mach_absolute_time(); in checkForWork()
458 reserved->statistics->primaryTimestamp = mach_absolute_time(); in normalInterruptOccurred()
489 reserved->statistics->primaryTimestamp = mach_absolute_time(); in disableInterruptOccurred()
H A DIOFilterInterruptEventSource.cpp225 startTime = mach_absolute_time(); in normalInterruptOccurred()
245 endTime = mach_absolute_time(); in normalInterruptOccurred()
278 startTime = mach_absolute_time(); in disableInterruptOccurred()
298 endTime = mach_absolute_time(); in disableInterruptOccurred()
/xnu-8019.80.24/osfmk/x86_64/ !
H A Dmachine_remote_time.c65 bt_delay_timestamp = mach_absolute_time() + delay_amount; in mach_bridge_register_regwrite_timestamp_callback()
75 uint64_t now = mach_absolute_time(); in mach_bridge_send_timestamp()
H A Dloose_ends.c331 sabs = mach_absolute_time(); in ml_phys_read_data()
361 eabs = mach_absolute_time(); in ml_phys_read_data()
483 sabs = mach_absolute_time(); in ml_phys_write_data()
511 eabs = mach_absolute_time(); in ml_phys_write_data()
618 sabs = mach_absolute_time(); in ml_port_io_read()
644 eabs = mach_absolute_time(); in ml_port_io_read()
690 sabs = mach_absolute_time(); in ml_port_io_write()
715 eabs = mach_absolute_time(); in ml_port_io_write()
/xnu-8019.80.24/tools/tests/zero-to-n/ !
H A Dzero-to-n.c233 uint64_t ctime = mach_absolute_time(); in churn_thread()
238 ctime = mach_absolute_time(); in churn_thread()
241 ctime = mach_absolute_time(); in churn_thread()
347 uint64_t endspin = mach_absolute_time() + nanos_to_abs(RT_CHURN_COMP_NANOS); in rt_churn_thread()
348 while (mach_absolute_time() < endspin) { in rt_churn_thread()
613 g_thread_endtimes_abs[my_id] = mach_absolute_time(); in worker_thread()
650 g_thread_endtimes_abs[my_id] = mach_absolute_time(); in worker_thread()
657 g_thread_endtimes_abs[my_id] = mach_absolute_time(); in worker_thread()
666 g_thread_endtimes_abs[my_id] = mach_absolute_time(); in worker_thread()
681 g_thread_endtimes_abs[my_id] = mach_absolute_time(); in worker_thread()
[all …]
/xnu-8019.80.24/iokit/IOKit/ !
H A DIOStatisticsPrivate.h287 counter->timeOnGate += mach_absolute_time() - counter->startTimeStamp; in countOpenGate()
296 counter->startTimeStamp = mach_absolute_time(); in countCloseGate()
353 counter->timeOnGate += mach_absolute_time() - counter->startTimeStamp; in countWorkLoopOpenGate()
362 counter->startTimeStamp = mach_absolute_time(); in countWorkLoopCloseGate()

1234567