Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 128) sorted by relevance

123456

/xnu-11215/tests/
H A Dntp_adjtime_29192647.c20 struct timeval time; variable
31 new_time = time.tv_sec + DAY;
33 time.tv_sec = new_time;
34 time.tv_usec = 0;
49 time.tv_sec = time.tv_sec - DAY;
50 time.tv_usec = 0;
60 struct timespec time; in get_abs_to_us_scale_factor() local
68 old_time_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000; in get_abs_to_us_scale_factor()
74 new_time_usec = (uint64_t)time.tv_sec * USEC_PER_SEC + (uint64_t)time.tv_nsec / 1000; in get_abs_to_us_scale_factor()
106 struct timespec time; variable
[all …]
H A Dsettimeofday_29193041.c85 struct timeval time; variable
91 new_time = time.tv_sec + DAY;
93 time.tv_sec = new_time;
94 time.tv_usec = 0;
103 time.tv_sec -= DAY;
111 struct timeval time; variable
121 new_time = time.tv_sec + DAY;
123 time.tv_sec = new_time;
124 time.tv_usec = 0;
129 int res = settimeofday(&time, NULL);
[all …]
H A Dsettimeofday_29193041_entitled.c81 struct timeval time; variable
91 new_time = time.tv_sec + DAY;
93 time.tv_sec = new_time;
94 time.tv_usec = 0;
96 T_ASSERT_POSIX_ZERO(settimeofday(&time, NULL), NULL);
103 time.tv_sec -= DAY;
111 struct timeval time; variable
121 new_time = time.tv_sec + DAY;
123 time.tv_sec = new_time;
124 time.tv_usec = 0;
[all …]
H A Dkqueue_timer_tests.c84 test_absolute_kevent(int time, int scale) in test_absolute_kevent() argument
122 deadline = (int64_t)mach_absolute_time() + time; in test_absolute_kevent()
124 expected = (uint64_t)time * timescale; in test_absolute_kevent()
125 deadline = (int64_t)(nowus / timescale) + time; in test_absolute_kevent()
129 if (time < 0) { in test_absolute_kevent()
147 test_oneshot_kevent(int time, int scale) in test_oneshot_kevent() argument
162 expected = (uint64_t)time * USEC_PER_SEC; in test_oneshot_kevent()
166 expected = (uint64_t)time; in test_oneshot_kevent()
170 expected = (uint64_t)time / 1000; in test_oneshot_kevent()
174 expected = (uint64_t)time * 1000; in test_oneshot_kevent()
[all …]
H A Dgettimeofday_29192647.c15 struct timeval time; variable
18 gettimeofday(&time, NULL); in T_STAT_MEASURE_LOOP()
27 struct timeval time; variable
31 __gettimeofday(&time, NULL); in T_STAT_MEASURE_LOOP()
39 struct timeval time; variable
43 gettimeofday(&time, NULL); in T_STAT_MEASURE_BATCH()
H A Davx.c363 ymm_integrity(int time) in ymm_integrity() argument
401 T_LOG("Running for %ds…", time); in ymm_integrity()
423 T_LOG("Ran for %ds", time); in ymm_integrity()
874 zmm_integrity(int time) in zmm_integrity() argument
921 T_LOG("Running for %ds…", time); in zmm_integrity()
948 T_LOG("Ran for %ds", time); in zmm_integrity()
963 T_LOG("Running for %ds…", time); in zmm_zeroing_optimization_integrity()
982 T_LOG("Ran for %ds", time); in zmm_zeroing_optimization_integrity()
1013 T_LOG("Ran for %ds", time); in zmm_zeroing_optimization_integrity()
1044 T_LOG("Ran for %ds", time); in zmm_zeroing_optimization_integrity()
[all …]
/xnu-11215/libkern/uuid/
H A Duuid.c110 uint64_t time; in uuid_generate_time() local
115 time = read_time(); in uuid_generate_time()
116 out[0] = (uint8_t)(time >> 24); in uuid_generate_time()
117 out[1] = (uint8_t)(time >> 16); in uuid_generate_time()
118 out[2] = (uint8_t)(time >> 8); in uuid_generate_time()
119 out[3] = (uint8_t)time; in uuid_generate_time()
120 out[4] = (uint8_t)(time >> 40); in uuid_generate_time()
121 out[5] = (uint8_t)(time >> 32); in uuid_generate_time()
122 out[6] = (uint8_t)(time >> 56); in uuid_generate_time()
123 out[7] = (uint8_t)(time >> 48); in uuid_generate_time()
/xnu-11215/osfmk/kern/
H A Dlock_stat.h192 extern void __lck_grp_spin_update_spin(lck_grp_t *grp, uint64_t time);
195 extern void __lck_grp_ticket_update_spin(lck_grp_t *grp, uint64_t time);
337 lck_grp_spin_update_spin(void *lock LCK_GRP_ARG(lck_grp_t *grp), uint64_t time) in lck_grp_spin_update_spin() argument
339 #pragma unused(lock, time) in lck_grp_spin_update_spin()
341 if (time > os_atomic_load(&dtrace_spin_threshold, relaxed)) { in lck_grp_spin_update_spin()
342 LOCKSTAT_RECORD(LS_LCK_SPIN_LOCK_SPIN, lock, time LCK_GRP_ARG((uintptr_t)grp)); in lck_grp_spin_update_spin()
344 LOCK_STATS_CALL(__lck_grp_spin_update_spin, grp, time); in lck_grp_spin_update_spin()
390 lck_grp_ticket_update_spin(void *lock LCK_GRP_ARG(lck_grp_t *grp), uint64_t time) in lck_grp_ticket_update_spin() argument
392 #pragma unused(lock, time) in lck_grp_ticket_update_spin()
394 if (time > os_atomic_load(&dtrace_spin_threshold, relaxed)) { in lck_grp_ticket_update_spin()
[all …]
H A Dlock_group.c506 lck_grp_inc_time_stats(lck_grp_t *grp, lck_grp_stat_t *stat, uint64_t time) in lck_grp_inc_time_stats() argument
509 __unused uint64_t val = os_atomic_add_orig(&stat->lgs_count, time, relaxed); in lck_grp_inc_time_stats()
511 while (__improbable(time > stat->lgs_limit)) { in lck_grp_inc_time_stats()
512 time -= stat->lgs_limit; in lck_grp_inc_time_stats()
515 if (__improbable(((val % stat->lgs_limit) + time) > stat->lgs_limit)) { in lck_grp_inc_time_stats()
539 __lck_grp_spin_update_spin(lck_grp_t *grp, uint64_t time) in __lck_grp_spin_update_spin() argument
543 lck_grp_inc_time_stats(grp, stat, time); in __lck_grp_spin_update_spin()
564 __lck_grp_ticket_update_spin(lck_grp_t *grp, uint64_t time) in __lck_grp_ticket_update_spin() argument
568 lck_grp_inc_time_stats(grp, stat, time); in __lck_grp_ticket_update_spin()
/xnu-11215/tools/tests/perf_index/
H A Dtest_controller.py4 import time
35 start_time = time.time()
46 end_time = time.time()
/xnu-11215/libkern/libkern/
H A Dversion.h.template78 /* Build-time value of VERSION_MAJOR */
81 /* Build-time value of VERSION_MINOR */
84 /* Build-time value of VERSION_VARIANT */
87 /* Build-time value of VERSION_REVISION */
90 /* Build-time value of VERSION_STAGE */
93 /* Build-time value of VERSION_PRERELEASE_LEVEL */
96 /* Build-time value of CURRENT_KERNEL_CONFIG */
99 /* Build-time value of OSTYPE */
102 /* Build-time value of OSRELEASE */
/xnu-11215/tests/vm/
H A Dzone_gc_replenish_test.c30 time_t start = time(NULL); in gc_thread_func()
36 while (time(NULL) < start + 15) { in gc_thread_func()
48 time_t start = time(NULL); in alloc_thread_func()
54 while (time(NULL) < start + 15) { in alloc_thread_func()
/xnu-11215/bsd/kern/
H A Dkern_sfi.c89 if (uap->time == 0) { in sfi_ctl()
93 kret = sfi_set_window(uap->time); in sfi_ctl()
102 if (uap->time != 0) { in sfi_ctl()
130 if (uap->time == 0) { in sfi_ctl()
134 kret = sfi_set_class_offtime(uap->sfi_class, uap->time); in sfi_ctl()
143 if (uap->time != 0) { in sfi_ctl()
H A Dkern_ntptime.c241 ntvp->time.tv_sec = atv.tv_sec; in ntp_gettime1()
242 ntvp->time.tv_nsec = atv.tv_nsec; in ntp_gettime1()
270 user_ntv.time.tv_sec = ntv.time.tv_sec; in ntp_gettime()
271 user_ntv.time.tv_nsec = ntv.time.tv_nsec; in ntp_gettime()
279 user_ntv.time.tv_sec = (user32_long_t)ntv.time.tv_sec; in ntp_gettime()
280 user_ntv.time.tv_nsec = (user32_long_t)ntv.time.tv_nsec; in ntp_gettime()
/xnu-11215/tools/lldbmacros/
H A Drecount.py109 def _convert_time(self, time): argument
111 return time
114 def time(self): member in RecountSum
115 time = sum(self._times_mach)
117 return time
118 return kern.GetNanotimeFromAbstime(time)
236 time = unsigned(metrics.rm_time_mach)
240 time = time_ns / 1e9
241 total_time += time
525 cur_time - time, since_usrchg)
[all …]
H A Dutils.py6 import sys, re, time, os, time
39 logfile_name = "/tmp/lldb.%d.log" % int(time.time())
187 current_timestamp = time.time()
/xnu-11215/osfmk/i386/
H A Drtclock.c461 setPop(uint64_t time) in setPop() argument
467 if (time == 0 || time == EndOfAllTime) { in setPop()
468 time = EndOfAllTime; in setPop()
473 pop = rtc_timer->rtc_set(time, now); in setPop()
477 x86_lcpu()->rtcDeadline = time; in setPop()
H A DpmCPU.h64 void (*setMaxBusDelay)(uint64_t time);
66 void (*setMaxIntDelay)(uint64_t time);
97 uint64_t (*setRTCPop)(uint64_t time);
/xnu-11215/tools/trace/
H A Dparse_ipc_trace.py59 def add_outgoing_edge(self, edge, time): argument
62 def add_incoming_edge(self, edge, time): argument
65 def addpid(self, pid, time): argument
67 self.pidset[pid] = [time, 0]
68 self.pidset[pid][1] = time
195 self.src.add_outgoing_edge(self, time)
197 self.addmsg(data, flags, time)
314 self.src.outgoing_msg(dsize, time)
315 self.dst.incoming_msg(dsize, time)
384 src.addpid(src_pid, time)
[all …]
/xnu-11215/iokit/DriverKit/
H A DIOInterruptDispatchSource.iig36 uint64_t time;
71 …kIOInterruptSourceContinuousTime time values sent to the InterruptOccurred() method will be in mac…
136 * @brief Get the count and time of the last interrupt received by the kernel
139 * @param time Interrupt time.
145 uint64_t * time);
155 uint64_t time) REPLY LOCAL;
H A DIOEventLink.iig116 * @discussion This API call is real time safe.
124 * @discussion This API call is real time safe.
132 * @discussion This API call is real time safe.
141 * @discussion This API call is real time safe.
152 * @discussion This API call is real time safe.
171 …he event link must be activated before it can be signaled or waited on. This is not real-time safe.
179 * @discussion The eventlink should be activated before this call. This is not real-time safe.
187 * @brief Disassociate the current thread from the eventlink. This is not real-time safe.
/xnu-11215/doc/observability/
H A Drecount.md9 ARM64 devices with a fast timebase read and Intel devices can track time spent in the kernel (syste…
54 By default, it prints the times in seconds, but the `-M` flag switches the output to Mach time valu…
84 - `ru_time_mach`: the time spent, in Mach time units
96 Processors also track their idle time separately from the usage structure with paired calls to `rec…
97 Idle time has no user component and doesn't consume instructions or cycles, so a full usage structu…
98 It stores the last update time in a 64-bit value combined with a state stored in the top two bits t…
108 … even before trying to read the values, and if the counter changes by the time they're done readin…
110 When reporting just user and system time, taking the sequence lock as a reader introduced unaccepta…
/xnu-11215/iokit/Kernel/
H A DIOWorkLoop.cpp727 uint64_t time; in lockTime() local
728 time = mach_absolute_time() - reserved->lockTime; in lockTime()
729 if (time > reserved->lockInterval) { in lockTime()
730 absolutetime_to_nanoseconds(time, &time); in lockTime()
732 panic("IOWorkLoop %p lock time %qd us", this, time / 1000ULL); in lockTime()
734 OSReportWithBacktrace("IOWorkLoop %p lock time %qd us", this, time / 1000ULL); in lockTime()
/xnu-11215/osfmk/arm/
H A Drtclock.c391 setPop(uint64_t time) in setPop() argument
400 delay_time = deadline_to_decrementer(time, current_time); in setPop()
415 uint64_t time; in SetIdlePop() local
427 time = cdp->rtcPop - cdp->cpu_idle_latency; in SetIdlePop()
429 delay_time = deadline_to_decrementer(time, current_time); in SetIdlePop()
/xnu-11215/osfmk/mach/
H A Dresource_notify.defs67 timestamp : mach_timespec_t; /* 32b time, see 25567702 */
69 observation_nsecs : int64_t; /* time it took to hit limit */
89 observation_nsecs : int64_t; /* time it took to hit limit */
109 observation_nsecs : int64_t; /* time it took to hit limit */

123456