Searched defs:hrt (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/cmd/cpc/common/
H A Dtime.c49 mstimestamp(hrtime_t hrt) argument
51 if (hrt == 0)
52 hrt = gethrtime();
53 return ((float)(hrt - timebase) / NSECPERSEC);
H A Dcputrack.c499 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/libc/port/sys/
H A Dtime_util.c40 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/lib/libfakekernel/common/
H A Dclock.c44 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 Dfmd_timerq.c55 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 Dfmd_eventq.c182 hrtime_t hrt = fmd_event_hrtime(ep); local
213 if (hrt >= fmd_event_hrtime(oqe->eqe_event))
H A Dfmd_serd.c259 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 Dfmd_subr.c311 hrtime_t hrt = fmd_time_gethrtime(); local
315 ((hrt << ENA_FMT1_TIME_SHFT) & ENA_FMT1_TIME_MASK)));
H A Dfmd_event.c125 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 Dfmd_sysevent.c105 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 Dfmd_time.c117 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 Dfmd.c690 fmd_gc(fmd_t *dp, id_t id, hrtime_t hrt) argument
719 fmd_clear_aged_rsrcs(fmd_t *dp, id_t id, hrtime_t hrt) argument
H A Dfmd_module.c619 fmd_module_timeout(fmd_modtimer_t *t, id_t id, hrtime_t hrt) argument
624 e = fmd_event_create(FMD_EVT_TIMEOUT, hrt, NULL, t);
/illumos-gate/usr/src/lib/libumem/common/
H A Dmisc.c166 hrt2ts(hrtime_t hrt, timestruc_t *tsp) argument
168 tsp->tv_sec = hrt / NANOSEC;
169 tsp->tv_nsec = hrt % NANOSEC;
/illumos-gate/usr/src/cmd/rcap/common/
H A Dutils.c239 hrt2ts(hrtime_t hrt, timestruc_t *tsp) argument
241 tsp->tv_sec = hrt / NANOSEC;
242 tsp->tv_nsec = hrt % NANOSEC;
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/common/
H A Dsw_main_cmn.c117 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/ptools/ptime/
H A Dptime.c52 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/uts/i86pc/os/
H A Dtimestamp.c129 #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 Dintr.c1184 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/uts/common/os/
H A Dtimers.c981 * 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/cmd/mdb/i86pc/modules/unix/
H A Dunix.c768 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/i86xpv/os/
H A Dxpv_panic.c630 hrtime_t tsc, hrt; local
634 hrt = (mul32(l[1], nsec_scale) << NSEC_SHIFT) +
637 return (hrt);
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_utils.c1632 hrtime_t hrt; local
1659 hrt = gethrtime();
1660 time_diff = hrt - conn_trace->conn_base_tm;
1666 conn_trace->conn_base_tm = hrt;
/illumos-gate/usr/src/uts/sun4/cpu/
H A Dcpu_module.c202 scalehrtime(hrtime_t *hrt) argument
/illumos-gate/usr/src/uts/intel/ia32/os/
H A Darchdep.c1470 scalehrtime(hrtime_t *hrt) argument
1472 scalehrtimef(hrt);

Completed in 123 milliseconds

12