/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | timestamp.c | 163 static hrtime_t tsc_resume_cap_ns = NANOSEC; /* 1s */ 673 ASSERT(cpu_freq_hz > NANOSEC / (1 << NSEC_SHIFT)); 675 (uint_t)(((uint64_t)NANOSEC << (32 - NSEC_SHIFT)) / cpu_freq_hz); 677 (uint_t)(((uint64_t)cpu_freq_hz << (32 - NSEC_SHIFT)) / NANOSEC);
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | posix_aio.c | 372 timo->tv_nsec >= NANOSEC) { 479 hrtend = hrtstart + (hrtime_t)timo->tv_sec * (hrtime_t)NANOSEC + 484 twait.tv_sec = hrtres / (hrtime_t)NANOSEC; 485 twait.tv_nsec = hrtres % (hrtime_t)NANOSEC; 553 wait->tv_sec = hrtres / (hrtime_t)NANOSEC; 554 wait->tv_nsec = hrtres % (hrtime_t)NANOSEC; 592 wait->tv_sec = hrtres / (hrtime_t)NANOSEC; 593 wait->tv_nsec = hrtres % (hrtime_t)NANOSEC; 1257 utimo->tv_nsec >= NANOSEC) { 1265 if (end->tv_nsec >= NANOSEC) { [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_work.c | 85 tv.tv_sec = (earliest - now) / NANOSEC; 86 tv.tv_nsec = (earliest - now) % NANOSEC;
|
/illumos-gate/usr/src/cmd/rcap/common/ |
H A D | utils.c | 241 tsp->tv_sec = hrt / NANOSEC; 242 tsp->tv_nsec = hrt % NANOSEC;
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | machclock.h | 219 * sets 'nano' to the value NANOSEC (one billion). 245 sethi %hi(NANOSEC), nano; \ 249 or nano, %lo(NANOSEC), nano;
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | ddi_arch.c | 332 10 * (NANOSEC / MICROSEC); 334 waittime = (hrtime_t)count * (NANOSEC / MICROSEC);
|
/illumos-gate/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 308 tsp->tv_sec = hrt / NANOSEC; 309 tsp->tv_nsec = hrt % NANOSEC;
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sysstat.c | 180 return ((*hr_now - last_load_ave_change) / NANOSEC); 413 return ((*hr_now - last_load_ave_change) / NANOSEC); 674 while ((int)((hr_now - node->snaptime) / NANOSEC) > idle_time && 709 return ((*time - node->snaptime) / NANOSEC); 715 return ((*time - node->snaptime) / NANOSEC);
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_miscdefs.h | 83 #define NANOSEC 1000000000 macro
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ntptime.c | 82 ntv.time.tv_usec = tod.tv_nsec / (NANOSEC / MICROSEC);
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | cpu_states.c | 88 #define FORCE_ABORT_SEQ_INTERVAL ((hrtime_t)15 * NANOSEC)
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | iocache.c | 151 #define SCACHE_NSEC_WAIT (10ull * NANOSEC)
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | rtpriocntl.c | 395 if (_hrtnewres(&hrtime, NANOSEC, HRT_RNDUP) == -1) 506 if (_hrtnewres(&hrtime, NANOSEC, HRT_RNDUP) == -1)
|
H A D | fxpriocntl.c | 399 if (_hrtnewres(&hrtime, NANOSEC, HRT_RNDUP) == -1) 526 if (_hrtnewres(&hrtime, NANOSEC, HRT_RNDUP) == -1)
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_dperr.c | 301 (hrtime_t)NANOSEC * 327 ep, (hrtime_t)NANOSEC * (dpt->dp_t_value + 120));
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | util.c | 141 return (gethrtime() / NANOSEC); 167 return (hrtime / NANOSEC);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | leaky.c | 153 hrtime_t sec = ts / (hrtime_t)NANOSEC; 154 hrtime_t nsec = ts % (hrtime_t)NANOSEC; 157 hrtime_t vsec = vts / (hrtime_t)NANOSEC; 158 hrtime_t vnsec = vts % (hrtime_t)NANOSEC; 168 30, "elapsed CPU time", vsec, (vnsec * 10)/(hrtime_t)NANOSEC); 170 30, "elapsed wall time", sec, (nsec * 10)/(hrtime_t)NANOSEC);
|
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | lockstat.c | 824 ts.it_value.tv_sec = val / NANOSEC; 825 ts.it_value.tv_nsec = val % NANOSEC; 1637 ((unsigned long long)total_count * NANOSEC) / g_elapsed, 1651 (double)g_elapsed / NANOSEC, 1652 (double)total_count * NANOSEC / g_elapsed); 1727 ((uint64_t)lsp->ls_count * NANOSEC) / g_elapsed); 1785 (uint_t)(((uint64_t)lsp->ls_hist[j] * NANOSEC) /
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadc.c | 162 pause_tv.tv_sec = pause_left / NANOSEC; 163 pause_tv.tv_nsec = pause_left % NANOSEC; 208 period_n = (hrtime_t)ti * NANOSEC;
|
/illumos-gate/usr/src/cmd/stat/vmstat/ |
H A D | vmstat.c | 166 period_n = (hrtime_t)interval * NANOSEC; 235 hr_etime = NANOSEC; 238 adjprintf(" %*.0f", 2, (reads + writes) / hr_etime * NANOSEC);
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | main.c | 1550 ((hrtime_t)Cp->basetime.tv_sec * NANOSEC + 1554 basedate->tv_sec -= (time_t)(delta / NANOSEC); 1555 basedate->tv_usec -= (delta % NANOSEC) / 1000; 1787 if (Cp->usrtotal.tv_nsec >= NANOSEC) { 1788 Cp->usrtotal.tv_nsec -= NANOSEC; 1817 if (scp->stime.tv_nsec >= NANOSEC) { 1818 scp->stime.tv_nsec -= NANOSEC; 1907 fraction += NANOSEC; 1940 fraction += NANOSEC; 2044 if (ap->tv_nsec >= NANOSEC) { [all...] |
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfs_clnt.h | 587 #define SEC2HR(sec) ((sec) * (long long)NANOSEC) 588 #define HR2SEC(hr) ((hr) / (long long)NANOSEC)
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.h | 30 #define RX_WATCHDOG (15 * NANOSEC) 31 #define TX_WATCHDOG (15 * NANOSEC)
|
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | scf_type.c | 389 if (ns >= NANOSEC)
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | call_labeld.c | 265 if ((ts.tv_nsec *= 10) >= NANOSEC) {
|