/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | time.c | 49 mstimestamp(hrtime_t hrt) argument 51 if (hrt == 0) 52 hrt = gethrtime(); 53 return ((float)(hrt - timebase) / NSECPERSEC);
|
H A D | cpucmds.h | 47 extern float mstimestamp(hrtime_t hrt);
|
H A D | cputrack.c | 499 hrtime_t hrt; local 512 hrt = cpc_buf_hrtime(cpc, *data1); 513 if (hrt == 0) 517 if (now < mstimestamp(hrt)) 518 now = mstimestamp(hrt);
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | clock.c | 44 hrtime_t hrt; local 46 hrt = gethrtime(); 47 return (hrt / nsec_per_tick); 53 hrtime_t hrt; local 55 hrt = gethrtime(); 56 return (hrt / nsec_per_tick);
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 117 fmd_time_hrt2ftv(hrtime_t hrt, fmd_timeval_t *ftv) argument 121 tmp = (uint32_t)(hrt >> 30); 133 nsec = (uint32_t)hrt - (tmp << 9); 147 * between the corresponding 'hrt_base' and the event high-res time 'hrt', 152 hrtime_t hrt, fmd_timeval_t *ftv) 155 tod_base->ftv_nsec + (hrt - hrt_base), ftv); 178 * between these bits and the corresponding low bits of 'hrt' from 'hrt'. 181 * the full 64-bit hrtime of 't0' can be bigger than 'hrt'. In such case, 182 * we should just return 'hrt' 151 fmd_time_hrt2tod(hrtime_t hrt_base, const fmd_timeval_t *tod_base, hrtime_t hrt, fmd_timeval_t *ftv) argument 192 fmd_time_ena2hrt(hrtime_t hrt, uint64_t ena) argument 257 hrtime_t tod, hrt, sec, rem; local 279 hrtime_t hrt; local 311 uint64_t hrt; local [all...] |
H A D | fmd_sysevent.c | 105 hrtime_t hrt; local 136 sysevent_get_time(sep, &hrt); 137 fmd_xprt_post(sysev_hdl, sysev_xprt, nvl, hrt); 154 hrtime_t hrt; local 185 sysevent_get_time(sep, &hrt); 186 fmd_xprt_post(sysev_hdl, xp, nvl, hrt); 285 hrtime_t hrt; local 359 hrt = ed.ed_hrt_nsec; 361 hrt = ed.ed_hrt_base; 365 * contains valid ENA, we can improve the precision of 'hrt' [all...] |
H A D | fmd_event.c | 125 fmd_event_create(uint_t type, hrtime_t hrt, nvlist_t *nvl, void *data) argument 154 if (hrt == FMD_HRT_NOW) 155 hrt = hr0; /* use hrtime sampled by fmd_time_sync() */ 165 hrt = fmd_time_ena2hrt(hrt, ena); 167 fmd_time_hrt2tod(hr0, &tod, hrt, &ep->ev_time); 168 ep->ev_hrt = hrt;
|
H A D | fmd_timerq.c | 55 hrtime_t hrt; local 76 hrt = INT64_MAX; /* if wrap-around, set timer for apocalypse */ 78 hrt = base + delta; 80 tp->tmr_hrt = hrt; 216 TRACE((FMD_DBG_TMR, "tmr %s:%ld exec start (hrt=%llx)",
|
H A D | fmd_serd.c | 259 hrtime_t hrt; local 265 hrt = fmd_event_hrtime(sep->se_event) - sgp->sg_t; 268 if (fmd_event_hrtime(sep->se_event) >= hrt)
|
H A D | fmd_subr.c | 311 hrtime_t hrt = fmd_time_gethrtime(); local 315 ((hrt << ENA_FMT1_TIME_SHFT) & ENA_FMT1_TIME_MASK)));
|
H A D | fmd_eventq.c | 182 hrtime_t hrt = fmd_event_hrtime(ep); local 213 if (hrt >= fmd_event_hrtime(oqe->eqe_event))
|
H A D | fmd_asru.c | 721 hrtime_t hrt; local 748 hrt = (hrtime_t)(tv.tv_sec - lp->log_stat.st_mtime); 750 if (hrt * NANOSEC >= fmd.d_asrus->ah_lifetime) { 765 hrtime_t hrt; local 776 hrt = (hrtime_t)(tv.tv_sec - lp->log_stat.st_mtime); 778 if (hrt * NANOSEC < fmd.d_asrus->ah_lifetime) 787 uint64_t hrt; local 795 hrt = lp->log_stat.st_mtime; 797 if (*(uint64_t *)arg < hrt) 798 *(uint64_t *)arg = hrt; [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | timestamp.c | 129 #define TSC_CONVERT_AND_ADD(tsc, hrt, scale) { \ 131 (hrt) += mul32(_l[1], scale) << NSEC_SHIFT; \ 132 (hrt) += mul32(_l[0], scale) >> (32 - NSEC_SHIFT); \ 135 #define TSC_CONVERT(tsc, hrt, scale) { \ 137 (hrt) = mul32(_l[1], scale) << NSEC_SHIFT; \ 138 (hrt) += mul32(_l[0], scale) >> (32 - NSEC_SHIFT); \ 186 hrtime_t tsc, hrt; local 226 hrt = tsc_hrtime_base; 228 TSC_CONVERT_AND_ADD(tsc, hrt, nsec_scale); 231 return (hrt); 238 hrtime_t tsc, hrt; local 279 hrtime_t hrt; local 298 hrtime_t tsc, hrt; local 420 hrtime_t hrt; local 434 hrtime_t hrt; local [all...] |
H A D | intr.c | 1184 hrtime_t hrt; local 1190 hrt = (hrtime_t)cpup->cpu_m.intrstat[i + 1][0]; 1191 scalehrtimef(&hrt); 1192 knp[i * 2].value.ui64 = (uint64_t)hrt;
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | time_util.c | 40 hrt2ts(hrtime_t hrt, timespec_t *tsp) argument 44 tmp = (uint32_t)(hrt >> 30); 56 nsec = (uint32_t)hrt - (tmp << 9);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 981 * tsp->sec = hrt / NANOSEC; 982 * tsp->nsec = hrt % NANOSEC; 1047 * sec = hrt; 1048 * sec += (hrt << 6); 1049 * sec -= (hrt << 8); 1050 * sec += (hrt << 13); 1051 * sec += (hrt << 14); 1052 * sec -= (hrt << 20); 1053 * sec += (hrt << 23); 1054 * sec += (hrt << 2 1173 hrt2ts(hrtime_t hrt, timestruc_t *tsp) argument 1210 hrtime_t hrt; local 1224 hrt2ts32(hrtime_t hrt, timestruc32_t *ts32p) argument 1247 hrt2tv(hrtime_t hrt, struct timeval *tvp) argument [all...] |
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | misc.c | 166 hrt2ts(hrtime_t hrt, timestruc_t *tsp) argument 168 tsp->tv_sec = hrt / NANOSEC; 169 tsp->tv_nsec = hrt % NANOSEC;
|
H A D | misc.h | 66 void hrt2ts(hrtime_t hrt, timestruc_t *tsp);
|
/illumos-gate/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 52 static void hrt2ts(hrtime_t hrt, timestruc_t *tsp); 306 hrt2ts(hrtime_t hrt, timestruc_t *tsp) argument 308 tsp->tv_sec = hrt / NANOSEC; 309 tsp->tv_nsec = hrt % NANOSEC;
|
/illumos-gate/usr/src/cmd/rcap/common/ |
H A D | utils.c | 239 hrt2ts(hrtime_t hrt, timestruc_t *tsp) argument 241 tsp->tv_sec = hrt / NANOSEC; 242 tsp->tv_nsec = hrt % NANOSEC;
|
/illumos-gate/usr/src/uts/sun4/cpu/ |
H A D | cpu_module.c | 202 scalehrtime(hrtime_t *hrt) argument
|
/illumos-gate/usr/src/uts/i86pc/io/fipe/ |
H A D | fipe_pm.c | 1136 hrtime_t hrt; local 1146 hrt = fipe_gbl_ctrl.time_in_pm; 1147 scalehrtime(&hrt); 1148 sp->fipe_pm_time.value.ui64 = (uint64_t)hrt; 1167 hrtime_t hrt; local 1188 hrt = 1ULL << 36; 1189 scalehrtime(&hrt); 1190 fipe_idle_ctrl.tick_interval = FIPE_STAT_INTERVAL * (1ULL << 36) / hrt;
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/common/ |
H A D | sw_main_cmn.c | 117 hrtime_t hrt) 154 fmd_timer_install(hdl, arg, ep, hrt); 116 sw_timer_install(fmd_hdl_t *hdl, id_t who, void *arg, fmd_event_t *ep, hrtime_t hrt) argument
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/ |
H A D | unix.c | 768 hrtime_t tsc = addr, hrt; local 814 hrt = ((uint64_t)tscp[1] * scale) << NSEC_SHIFT; 815 hrt += ((uint64_t)tscp[0] * scale) >> (32 - NSEC_SHIFT); 817 mdb_printf("0x%llx\n", hrt);
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_utils.c | 1632 hrtime_t hrt; local 1659 hrt = gethrtime(); 1660 time_diff = hrt - conn_trace->conn_base_tm; 1666 conn_trace->conn_base_tm = hrt;
|