/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_string.c | 154 { "ns", NANOSEC / NANOSEC }, in inj_strtime() 155 { "nsec", NANOSEC / NANOSEC }, in inj_strtime() 156 { "us", NANOSEC / MICROSEC }, in inj_strtime() 157 { "usec", NANOSEC / MICROSEC }, in inj_strtime() 158 { "ms", NANOSEC / MILLISEC }, in inj_strtime() 159 { "msec", NANOSEC / MILLISEC }, in inj_strtime() 160 { "s", NANOSEC / SEC }, in inj_strtime() 161 { "sec", NANOSEC / SEC }, in inj_strtime() 162 { "m", NANOSEC * (hrtime_t)60 }, in inj_strtime() 163 { "min", NANOSEC * (hrtime_t)60 }, in inj_strtime() [all …]
|
H A D | inj_log.c | 47 hrtime_t rec_sec = rp->rec_sec + rp->rec_nsec / NANOSEC; in inj_logfile_event() 48 hrtime_t rec_nsec = rp->rec_nsec % NANOSEC; in inj_logfile_event() 76 delta = (rec_sec - ilf->ilf_sec) * NANOSEC; in inj_logfile_event()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 103 ftv->ftv_nsec = todbase.tv_usec * (NANOSEC / MICROSEC); in fmd_time_sync() 135 while (nsec >= NANOSEC) { in fmd_time_hrt2ftv() 136 nsec -= NANOSEC; in fmd_time_hrt2ftv() 154 fmd_time_hrt2ftv(tod_base->ftv_sec * NANOSEC + in fmd_time_hrt2tod() 167 hrtime_t tod_hrt = tod_base->ftv_sec * NANOSEC + tod_base->ftv_nsec; in fmd_time_tod2hrt() 168 hrtime_t ftv_hrt = ftv->ftv_sec * NANOSEC + ftv->ftv_nsec; in fmd_time_tod2hrt() 233 fts->fts_tod = (hrtime_t)tv.tv_sec * NANOSEC + in fmd_simulator_init() 234 (hrtime_t)tv.tv_usec * (NANOSEC / MICROSEC); in fmd_simulator_init() 266 sec = tod / NANOSEC + hrt / NANOSEC; in fmd_simulator_tod() 267 rem = tod % NANOSEC + hrt % NANOSEC; in fmd_simulator_tod() [all …]
|
H A D | fmd_conf.c | 421 { "ns", NANOSEC / NANOSEC }, in set_time() 422 { "nsec", NANOSEC / NANOSEC }, in set_time() 423 { "us", NANOSEC / MICROSEC }, in set_time() 424 { "usec", NANOSEC / MICROSEC }, in set_time() 425 { "ms", NANOSEC / MILLISEC }, in set_time() 426 { "msec", NANOSEC / MILLISEC }, in set_time() 427 { "s", NANOSEC / SEC }, in set_time() 428 { "sec", NANOSEC / SEC }, in set_time() 429 { "m", NANOSEC * (hrtime_t)60 }, in set_time() 430 { "min", NANOSEC * (hrtime_t)60 }, in set_time() [all …]
|
/illumos-gate/usr/src/uts/common/dtrace/ |
H A D | profile.c | 109 hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */ 210 { "ns", NANOSEC / NANOSEC }, in profile_provide() 211 { "nsec", NANOSEC / NANOSEC }, in profile_provide() 212 { "us", NANOSEC / MICROSEC }, in profile_provide() 213 { "usec", NANOSEC / MICROSEC }, in profile_provide() 214 { "ms", NANOSEC / MILLISEC }, in profile_provide() 215 { "msec", NANOSEC / MILLISEC }, in profile_provide() 216 { "s", NANOSEC / SEC }, in profile_provide() 217 { "sec", NANOSEC / SEC }, in profile_provide() 218 { "m", NANOSEC * (hrtime_t)60 }, in profile_provide() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_timeout.c | 190 now = (hrtime_t)tspec.tv_sec * (hrtime_t)NANOSEC + tspec.tv_nsec; in sip_timeout() 191 future_time = (hrtime_t)timeout_time->tv_sec * (hrtime_t)NANOSEC + in sip_timeout() 194 future_time = (hrtime_t)timeout_time->tv_sec * (hrtime_t)NANOSEC + in sip_timeout() 254 current_time = (hrtime_t)tspec.tv_sec * (hrtime_t)NANOSEC + in sip_schedule_to_functions() 312 delta = (hrtime_t)5 * NANOSEC; in sip_timer_thr() 316 to.tv_sec = tim.tv_sec + (delta / NANOSEC); in sip_timer_thr() 318 (delta % NANOSEC); in sip_timer_thr() 319 if (to.tv_nsec > NANOSEC) { in sip_timer_thr() 320 to.tv_sec += (to.tv_nsec / NANOSEC); in sip_timer_thr() 321 to.tv_nsec %= NANOSEC; in sip_timer_thr() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 42 tsp->tv_sec = hrt / NANOSEC; in hrt2ts() 43 tsp->tv_nsec = hrt % NANOSEC; in hrt2ts() 60 while (nsec >= NANOSEC) { in hrt2ts() 61 nsec -= NANOSEC; in hrt2ts() 89 reltime->tv_nsec = abstime->tv_nsec - now.tv_nsec + NANOSEC; in abstime_to_reltime() 106 if ((ulong_t)abstime->tv_nsec >= NANOSEC) in abstime_to_reltime()
|
/illumos-gate/usr/src/lib/libzonestat/common/ |
H A D | zonestat_impl.h | 62 (ts).tv_sec += (time_t)((nsec) / NANOSEC); \ 63 (ts).tv_nsec += (long)((nsec) % NANOSEC); \ 64 if ((ts).tv_nsec > NANOSEC) { \ 65 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \ 66 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \ 74 if ((ts).tv_nsec > NANOSEC) { \ 75 (ts).tv_sec += (ts).tv_nsec / NANOSEC; \ 76 (ts).tv_nsec = (ts).tv_nsec % NANOSEC; \ 85 delta.tv_nsec += NANOSEC; \
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/rates/ |
H A D | tst.statusrate.d | 41 inline uint64_t NANOSEC = 1000000000; variable 51 /(this->delta = timestamp - ts) > 2 * NANOSEC/ 57 /this->delta <= 2 * NANOSEC/ 65 /this->delta > 20 * NANOSEC/
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | vrtc.c | 216 NANOSEC / 256, in rega_period() 217 NANOSEC / 128, in rega_period() 218 NANOSEC / 8192, in rega_period() 219 NANOSEC / 4096, in rega_period() 220 NANOSEC / 2048, in rega_period() 221 NANOSEC / 1024, in rega_period() 222 NANOSEC / 512, in rega_period() 223 NANOSEC / 256, in rega_period() 224 NANOSEC / 128, in rega_period() 225 NANOSEC / 64, in rega_period() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 356 min = MAX((int)(cyclic_getres() / (NANOSEC / MICROSEC)), in xsetitimer() 760 if (tv->tv_sec < 0 || tv->tv_nsec < 0 || tv->tv_nsec >= NANOSEC) in itimerspecfix() 866 t1->tv_nsec += NANOSEC; in timespecfix() 868 if (t1->tv_nsec >= NANOSEC) { in timespecfix() 870 t1->tv_nsec -= NANOSEC; in timespecfix() 913 nsec += NANOSEC; in timespectohz() 914 } else if (nsec >= NANOSEC) { in timespectohz() 916 nsec -= NANOSEC; in timespectohz() 953 nsec += NANOSEC; in timespectohz64() 954 } else if (nsec >= NANOSEC) { in timespectohz64() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/printf/ |
H A D | tst.printT.ksh | 41 inline uint64_t NANOSEC = 1000000000; 45 printf("%T\n%T\n%T", (uint64_t)0, (uint64_t)1062609821 * NANOSEC, 46 (uint64_t)0x7fffffff * NANOSEC);
|
H A D | tst.printY.ksh | 41 inline uint64_t NANOSEC = 1000000000; 45 printf("%Y\n%Y\n%Y", (uint64_t)0, (uint64_t)1062609821 * NANOSEC, 46 (uint64_t)0x7fffffff * NANOSEC);
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_options.c | 701 { "ns", NANOSEC / NANOSEC }, in dt_opt_rate() 702 { "nsec", NANOSEC / NANOSEC }, in dt_opt_rate() 703 { "us", NANOSEC / MICROSEC }, in dt_opt_rate() 704 { "usec", NANOSEC / MICROSEC }, in dt_opt_rate() 705 { "ms", NANOSEC / MILLISEC }, in dt_opt_rate() 706 { "msec", NANOSEC / MILLISEC }, in dt_opt_rate() 707 { "s", NANOSEC / SEC }, in dt_opt_rate() 708 { "sec", NANOSEC / SEC }, in dt_opt_rate() 709 { "m", NANOSEC * (hrtime_t)60 }, in dt_opt_rate() 710 { "min", NANOSEC * (hrtime_t)60 }, in dt_opt_rate() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | util.h | 64 #define NSEC_TO_SEC(nsec) (nsec) / (long)NANOSEC 65 #define NSEC_TO_FRACNSEC(nsec) (nsec) % (long)NANOSEC 66 #define SEC_TO_NSEC(sec) (sec) * (long)NANOSEC
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | adjtime.c | 73 ndelta = (int64_t)atv.tv_sec * NANOSEC + atv.tv_usec * 1000; in adjtime() 88 oatv.tv_sec = old_delta / NANOSEC; in adjtime() 89 oatv.tv_usec = (old_delta % NANOSEC) / 1000; in adjtime()
|
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | fmdump.c | 157 rp->rec_nsec / (NANOSEC / 10000)); in fmdump_date() 243 { "ns", NANOSEC / NANOSEC }, in gettimeopt() 244 { "nsec", NANOSEC / NANOSEC }, in gettimeopt() 245 { "us", NANOSEC / MICROSEC }, in gettimeopt() 246 { "usec", NANOSEC / MICROSEC }, in gettimeopt() 247 { "ms", NANOSEC / MILLISEC }, in gettimeopt() 248 { "msec", NANOSEC / MILLISEC }, in gettimeopt() 249 { "s", NANOSEC / SEC }, in gettimeopt() 250 { "sec", NANOSEC / SEC }, in gettimeopt() 251 { "m", NANOSEC * (hrtime_t)60 }, in gettimeopt() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | time.h | 247 #define NANOSEC 1000000000LL macro 249 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC)) 250 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) 252 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC)) 253 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC)) 255 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC)) 256 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
|
/illumos-gate/usr/src/uts/common/conf/ |
H A D | param.c | 656 nsec_per_tick = NANOSEC / hz; in param_init() 667 time_res[TR_NANOSEC] = NANOSEC / NANOSEC; in param_init() 668 time_res[TR_MICROSEC] = NANOSEC / MICROSEC; in param_init() 669 time_res[TR_MILLISEC] = NANOSEC / MILLISEC; in param_init() 670 time_res[TR_SEC] = NANOSEC / SEC; in param_init()
|
/illumos-gate/usr/src/uts/sun4/io/ |
H A D | cbe.c | 51 hrtime_t q = ts / NANOSEC; in hrtime2tick() 52 hrtime_t r = ts - (q * NANOSEC); in hrtime2tick() 54 return (q * sys_tick_freq + ((r * sys_tick_freq) / NANOSEC)); in hrtime2tick() 269 hrtime_t resolution = NANOSEC / sys_tick_freq; in cbe_init()
|
/illumos-gate/usr/src/uts/i86pc/ml/ |
H A D | genassym.c | 84 printf("#define\tNANOSEC 0x%llx\n", NANOSEC); in main() 139 printf("#define\tNSEC_PER_CLOCK_TICK 0x%llx\n", NANOSEC / 100); in main() 141 printf("#define\tNSEC_PER_COUNTER_TICK 0x%llx\n", NANOSEC / PIT_HZ); in main()
|
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | xpvtod.c | 74 (hrtime_t)wcts.tv_nsec + (hrtime_t)wcts.tv_sec * NANOSEC; in todxen_get() 75 ts.tv_sec = (time_t)(now / NANOSEC); in todxen_get() 76 ts.tv_nsec = (long)(now % NANOSEC); in todxen_get()
|
/illumos-gate/usr/src/lib/commpage/common/ |
H A D | cp_main.c | 58 #define NANOSEC 1000000000LL macro 163 while ((unsigned long)now.tv_nsec >= NANOSEC) { in __cp_clock_gettime_realtime() 164 now.tv_nsec -= NANOSEC; in __cp_clock_gettime_realtime()
|
/illumos-gate/usr/src/cmd/fm/fmstat/common/ |
H A D | fmstat.c | 173 { "d", NANOSEC * (hrtime_t)(24 * 60 * 60) }, in time2str() 174 { "h", NANOSEC * (hrtime_t)(60 * 60) }, in time2str() 175 { "m", NANOSEC * (hrtime_t)60 }, in time2str() 176 { "s", NANOSEC / SEC }, in time2str() 177 { "ms", NANOSEC / MILLISEC }, in time2str() 178 { "us", NANOSEC / MICROSEC }, in time2str() 179 { "ns", NANOSEC / NANOSEC }, in time2str() 312 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute() 356 mp->m_svc = ((avg_w + avg_d) * (double)MILLISEC) / (double)NANOSEC; in modstat_compute()
|
/illumos-gate/usr/src/lib/commpage/amd64/ |
H A D | cp_subr.S | 34 #define NANOSEC 0x3b9aca00 macro 375 imulq $NANOSEC, %rdx, %rdx 419 cmpq $NANOSEC, %r10 458 subq $NANOSEC, %r10 460 cmpq $NANOSEC, %r10
|