Searched refs:timebase (Results 1 – 12 of 12) sorted by relevance
| /xnu-11215/tests/ |
| H A D | task_suspend_stats.c | 102 uint64_t last_start_ago = (now - stats->tss_last_start) * timebase.numer / timebase.denom; in log_stats() 103 uint64_t last_end_ago = (now - stats->tss_last_end) * timebase.numer / timebase.denom; in log_stats() 105 uint64_t total_duration = (stats->tss_duration) * timebase.numer / timebase.denom; in log_stats() 122 uint64_t source_ago = (now - source->tss_time) * timebase.numer / timebase.denom; in log_sources() 132 uint64_t time_ago = (now - time) * timebase.numer / timebase.denom; in log_time() 219 mach_timebase_info(&timebase); 231 mach_timebase_info(&timebase); 250 mach_timebase_info(&timebase); 289 mach_timebase_info(&timebase); 329 mach_timebase_info(&timebase); [all …]
|
| H A D | setitimer.c | 746 mach_timebase_info_data_t timebase = { 0 }; variable 747 int ret = mach_timebase_info(&timebase); 773 (ITIMER_PERF_PROF_US * NSEC_PER_USEC) * timebase.denom / timebase.numer; 775 uint64_t const latency_ns = latency_mach * timebase.denom / timebase.numer;
|
| H A D | stackshot_tests.m | 353 uint64_t last_ago = (now - stat.ss_last_start) * timebase.numer / timebase.denom; 354 uint64_t last_duration = (stat.ss_last_end - stat.ss_last_start) * timebase.numer / timebase.denom; 355 uint64_t total_duration = (stat.ss_duration) * timebase.numer / timebase.denom; 367 mach_timebase_info_data_t timebase = {0, 0}; 368 mach_timebase_info(&timebase); 388 log_stats(timebase, now, " pre", pre); 389 log_stats(timebase, now, " post", post); 392 …= (int64_t)(post.ss_duration - pre.ss_duration) * (int64_t)timebase.numer / (int64_t)timebase.deno… 2454 mach_timebase_info_data_t timebase = {0, 0}; 2475 memcpy(&timebase, tb, sizeof(timebase)); [all …]
|
| /xnu-11215/bsd/tests/ |
| H A D | bsd_tests.c | 231 mach_timebase_info_data_t timebase = {0, 0}; in xnupost_export_testdata() local 250 clock_timebase_info(&timebase); in xnupost_export_testdata() 251 kret = kcdata_get_memory_addr(&kcd, KCDATA_TYPE_TIMEBASE, sizeof(timebase), &user_addr); in xnupost_export_testdata() 253 kret = copyout(&timebase, (user_addr_t)user_addr, sizeof(timebase)); in xnupost_export_testdata()
|
| /xnu-11215/tools/trace/ |
| H A D | parse_ipc_trace.py | 124 def label(self, timebase = 1000000.0): argument 131 if timebase > 0.0: 132 oavg = oavg * timebase 133 opeak = opeak * timebase 134 oactive = oactive / timebase 135 iavg = iavg * timebase 136 ipeak = ipeak * timebase 137 iactive = iactive / timebase 355 if timebase and timebase > 0.0: 356 self.timebase = timebase [all …]
|
| /xnu-11215/osfmk/arm64/ |
| H A D | machine_routines.c | 2391 uint64_t timebase = nonspeculative_timebase(); local 2392 return timebase; 2398 uint64_t clock, timebase; local 2402 timebase = getCpuDatap()->cpu_base_timebase; 2406 } while (getCpuDatap()->cpu_base_timebase != timebase); 2408 return clock + timebase; 2449 uint64_t clock, timebase; local 2453 timebase = getCpuDatap()->cpu_base_timebase; 2458 } while (getCpuDatap()->cpu_base_timebase != timebase); 2460 return clock + timebase;
|
| /xnu-11215/osfmk/arm/ |
| H A D | machine_routines_common.c | 844 mach_timebase_info_data_t timebase; in __ml_trigger_interrupts_disabled_handle() local 845 clock_timebase_info(&timebase); in __ml_trigger_interrupts_disabled_handle() 850 const uint64_t time_elapsed_ns = (time_elapsed * timebase.numer) / timebase.denom; in __ml_trigger_interrupts_disabled_handle() 864 …eout_ns = ((timeout * debug_cpu_performance_degradation_factor) * timebase.numer) / timebase.denom; in __ml_trigger_interrupts_disabled_handle()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | kcdata.py | 2063 timebase = ss.get('mach_timebase_info', {"denom": 1, "numer": 1}) 2212 …nap["systemTimeTask"] = GetSecondsFromMATime(tasksnap["ts_system_time_in_terminated_th"], timebase) 2215 …tsnap["userTimeTask"] = GetSecondsFromMATime(tasksnap["ts_user_time_in_terminated_thre"], timebase) 2230 thsnap["userTime"] = GetSecondsFromMATime(threadsnap["ths_user_time"], timebase) 2233 thsnap["systemTime"] = GetSecondsFromMATime(threadsnap["ths_sys_time"], timebase) 2279 … tsnap['suspension_duration_secs'] = GetSecondsFromMATime(suspinfo['tss_duration'], timebase) 2280 … tsnap['suspension_last_start'] = GetSecondsFromMATime(suspinfo['tss_last_start'], timebase) 2281 tsnap['suspension_last_end'] = GetSecondsFromMATime(suspinfo['tss_last_end'], timebase) 2287 'suspension_time': GetSecondsFromMATime(source['tss_time'], timebase),
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | OSAction.iig | 157 * @param options Pass one of the kIOTimerClock* options to specify the timebase for the
|
| H A D | IODispatchQueue.iig | 191 * @param options Pass one of the kIOTimerClock* options to specify the timebase for the
|
| /xnu-11215/osfmk/kern/ |
| H A D | kern_stackshot.c | 1103 mach_timebase_info_data_t timebase; in stackshot_init() local 1105 clock_timebase_info(&timebase); in stackshot_init() 1106 …max_fault_time = ((KDP_FAULT_PATH_MAX_TIME_PER_STACKSHOT_NSECS * timebase.denom) / timebase.numer); in stackshot_init() 5037 mach_timebase_info_data_t timebase = {0, 0}; in kdp_stackshot_kcdata_format() local 5083 clock_timebase_info(&timebase); in kdp_stackshot_kcdata_format() 5138 …_on_error(kcdata_push_data(stackshot_kcdata_p, KCDATA_TYPE_TIMEBASE, sizeof(timebase), &timebase)); in kdp_stackshot_kcdata_format()
|
| /xnu-11215/doc/observability/ |
| H A D | recount.md | 9 ARM64 devices with a fast timebase read and Intel devices can track time spent in the kernel (syste…
|