/illumos-gate/usr/src/cmd/dispadmin/ |
H A D | fssdispadmin.c | 151 hrtimer_t hrtime; in getadmin() local 167 hrtime.hrt_secs = 0; in getadmin() 168 hrtime.hrt_rem = fssadmin.fss_quantum; in getadmin() 169 hrtime.hrt_res = HZ; in getadmin() 170 if (_hrtnewres(&hrtime, res, HRT_RNDUP) == -1) in getadmin() 172 if ((fss_quantum = hrtconvert(&hrtime)) == -1) in getadmin() 198 hrtimer_t hrtime; in setadmin() local 257 hrtime.hrt_secs = 0; in setadmin() 258 hrtime.hrt_rem = fss_quantum; in setadmin() 259 hrtime.hrt_res = res; in setadmin() [all …]
|
H A D | fxdispadmin.c | 159 hrtimer_t hrtime; in get_fxdptbl() local 192 hrtime.hrt_secs = 0; in get_fxdptbl() 193 hrtime.hrt_rem = fx_dptbl[i].fx_quantum; in get_fxdptbl() 194 hrtime.hrt_res = HZ; in get_fxdptbl() 195 if (_hrtnewres(&hrtime, res, HRT_RNDUP) == -1) in get_fxdptbl() 227 hrtimer_t hrtime; in set_fxdptbl() local 319 hrtime.hrt_secs = 0; in set_fxdptbl() 320 hrtime.hrt_rem = fx_dptbl[i].fx_quantum; in set_fxdptbl() 321 hrtime.hrt_res = res; in set_fxdptbl() 322 if (_hrtnewres(&hrtime, HZ, HRT_RNDUP) == -1) in set_fxdptbl() [all …]
|
H A D | rtdispadmin.c | 155 hrtimer_t hrtime; in get_rtdptbl() local 188 hrtime.hrt_secs = 0; in get_rtdptbl() 189 hrtime.hrt_rem = rt_dptbl[i].rt_quantum; in get_rtdptbl() 190 hrtime.hrt_res = HZ; in get_rtdptbl() 191 if (_hrtnewres(&hrtime, res, HRT_RNDUP) == -1) in get_rtdptbl() 195 hrtconvert(&hrtime)) == -1) in get_rtdptbl() 224 hrtimer_t hrtime; local 346 hrtime.hrt_secs = 0; 347 hrtime.hrt_rem = rt_dptbl[i].rt_quantum; 348 hrtime.hrt_res = res; [all …]
|
H A D | iadispadmin.c | 156 hrtimer_t hrtime; in get_iadptbl() local 192 hrtime.hrt_secs = 0; in get_iadptbl() 193 hrtime.hrt_rem = ia_dptbl[i].ia_quantum; in get_iadptbl() 194 hrtime.hrt_res = HZ; in get_iadptbl() 195 if (_hrtnewres(&hrtime, res, HRT_RNDUP) == -1) in get_iadptbl() 198 if ((ia_dptbl[i].ia_quantum = hrtconvert(&hrtime)) in get_iadptbl() 231 hrtimer_t hrtime; local 347 hrtime.hrt_secs = 0; 348 hrtime.hrt_rem = atol(tokp); 349 hrtime.hrt_res = res; [all …]
|
H A D | tsdispadmin.c | 155 hrtimer_t hrtime; in get_tsdptbl() local 188 hrtime.hrt_secs = 0; in get_tsdptbl() 189 hrtime.hrt_rem = ts_dptbl[i].ts_quantum; in get_tsdptbl() 190 hrtime.hrt_res = HZ; in get_tsdptbl() 191 if (_hrtnewres(&hrtime, res, HRT_RNDUP) == -1) in get_tsdptbl() 194 if ((ts_dptbl[i].ts_quantum = hrtconvert(&hrtime)) in get_tsdptbl() 226 hrtimer_t hrtime; local 342 hrtime.hrt_secs = 0; 343 hrtime.hrt_rem = atol(tokp); 344 hrtime.hrt_res = res; [all …]
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | rtpriocntl.c | 363 hrtimer_t hrtime; in set_rtprocs() local 390 hrtime.hrt_secs = 0; in set_rtprocs() 391 hrtime.hrt_rem = tqntm; in set_rtprocs() 392 hrtime.hrt_res = res; in set_rtprocs() 395 ADDKEYVAL(argsp, RT_KY_TQSECS, hrtime.hrt_secs); in set_rtprocs() 396 ADDKEYVAL(argsp, RT_KY_TQNSECS, hrtime.hrt_rem); in set_rtprocs() 482 hrtimer_t hrtime; in exec_rtcmd() local 501 hrtime.hrt_secs = 0; in exec_rtcmd() 502 hrtime.hrt_rem = tqntm; in exec_rtcmd() 503 hrtime.hrt_res = res; in exec_rtcmd() [all …]
|
H A D | fxpriocntl.c | 362 hrtimer_t hrtime; in set_fxprocs() local 394 hrtime.hrt_secs = 0; in set_fxprocs() 395 hrtime.hrt_rem = tqntm; in set_fxprocs() 396 hrtime.hrt_res = res; in set_fxprocs() 399 ADDKEYVAL(argsp, FX_KY_TQSECS, hrtime.hrt_secs); in set_fxprocs() 400 ADDKEYVAL(argsp, FX_KY_TQNSECS, hrtime.hrt_rem); in set_fxprocs() 495 hrtimer_t hrtime; in exec_fxcmd() local 521 hrtime.hrt_secs = 0; in exec_fxcmd() 522 hrtime.hrt_rem = tqntm; in exec_fxcmd() 523 hrtime.hrt_res = res; in exec_fxcmd() [all …]
|
/illumos-gate/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 198 hrtime_t hrtime; in look() local 214 hrtime = gethrtime(); in look() 215 hrt2ts(hrtime, &real); in look()
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_grammar.y | 78 %type <l_hrtime> hrtime 299 | INJ_TOK_ADDHRT hrtime { $$ = inj_cmd_addhrt($2); } 348 hrtime: INJ_TOK_IMM INJ_TOK_IDENT {
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | hrtcntl.h | 111 typedef struct hrtime { struct
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kcpc.h | 122 extern int kcpc_sample(kcpc_set_t *set, uint64_t *buf, hrtime_t *hrtime,
|
H A D | dtrace.h | 1085 #define DTRACE_RECORD_STORE_TIMESTAMP(dtrh, hrtime) { \ argument 1086 (dtrh)->dtrh_timestamp_lo = (uint32_t)hrtime; \ 1087 (dtrh)->dtrh_timestamp_hi = hrtime >> 32; \
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cpustat.c | 342 hrtime_t hrtime; in print_sample() local 344 hrtime = cpc_buf_hrtime(cpc, buf); in print_sample() 348 mstimestamp(hrtime), (int)cpuid, "tick"); in print_sample()
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 476 hrtime_t hrtime; in sppp_ioctl() local 551 hrtime = gethrtime(); in sppp_ioctl() 552 pip->xmit_idle = (hrtime - ppa->ppa_lasttx) / 1000000000ul; in sppp_ioctl() 553 pip->recv_idle = (hrtime - ppa->ppa_lastrx) / 1000000000ul; in sppp_ioctl() 988 hrtime_t hrtime; in sppp_inner_ioctl() local 1279 hrtime = gethrtime(); in sppp_inner_ioctl() 1280 ppa->ppa_lasttx = ppa->ppa_lastrx = hrtime; in sppp_inner_ioctl()
|
/illumos-gate/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 3564 uint64_t hrtime; in zsd_refresh_cpu_stats() local 3575 hrtime = gethrtime(); in zsd_refresh_cpu_stats() 3578 ctl->zsctl_hrtime = hrtime; in zsd_refresh_cpu_stats() 3579 ctl->zsctl_hrtime_prev = hrtime; in zsd_refresh_cpu_stats() 3584 ctl->zsctl_hrtime = hrtime; in zsd_refresh_cpu_stats() 3585 if ((hrtime = hrtime - ctl->zsctl_hrtime_prev) > 0) in zsd_refresh_cpu_stats() 3631 hrtime = delta.tv_sec; in zsd_refresh_cpu_stats() 3632 hrtime *= NANOSEC; in zsd_refresh_cpu_stats() 3633 hrtime += delta.tv_nsec; in zsd_refresh_cpu_stats() 3635 hrtime /= pset->zsp_cpu_shares; in zsd_refresh_cpu_stats() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm.c | 4849 vmm_time_snapshot(uint64_t *tsc, hrtime_t *hrtime, timespec_t *hrestime) in vmm_time_snapshot() argument 4860 *hrtime = hrt; in vmm_time_snapshot() 4861 scalehrtime(hrtime); in vmm_time_snapshot() 4895 hrtime_t hrtime; in vmm_data_read_vmm_time() local 4897 vmm_time_snapshot(&tsc, &hrtime, &hrestime); in vmm_data_read_vmm_time() 4912 out->vt_hrtime = hrtime; in vmm_data_read_vmm_time() 5002 hrtime_t hrtime; in vmm_data_write_vmm_time() local 5004 vmm_time_snapshot(&tsc, &hrtime, &hrestime); in vmm_data_write_vmm_time() 5005 if ((src->vt_hrtime > hrtime) || (src->vt_boot_hrtime > hrtime)) { in vmm_data_write_vmm_time() 5012 hrtime_t hrt_delta = hrtime - src->vt_hrtime; in vmm_data_write_vmm_time()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | util.c | 182 hrtime_to_monosec(hrtime_t hrtime) in hrtime_to_monosec() argument 184 return (hrtime / NANOSEC); in hrtime_to_monosec()
|
/illumos-gate/usr/src/lib/libnvpair/ |
H A D | libnvpair.c | 216 NVLIST_PRTFUNC(hrtime, hrtime_t, hrtime_t, "0x%llx") 443 NVLIST_PRINTCTL_REPLACE(hrtime, hrtime_t) 732 RENDER(pctl, hrtime, nvl, name, val); in nvlist_print_with_indent()
|
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 1010 hrtime_t hrtime; in ahdlc_encode() local 1044 hrtime = gethrtime(); in ahdlc_encode() 1045 if (ABS(hrtime - state->sa_hrtime) > FLAG_TIME) { in ahdlc_encode() 1048 state->sa_hrtime = hrtime; in ahdlc_encode()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | zone.c | 1915 hrtime_t hrtime; in zone_misc_kstat_update() local 1922 hrtime = UINT64_OVERFLOW_TO_INT64(tmp); in zone_misc_kstat_update() 1923 scalehrtime(&hrtime); in zone_misc_kstat_update() 1924 zmp->zm_stime.value.ui64 = hrtime; in zone_misc_kstat_update() 1927 hrtime = UINT64_OVERFLOW_TO_INT64(tmp); in zone_misc_kstat_update() 1928 scalehrtime(&hrtime); in zone_misc_kstat_update() 1929 zmp->zm_utime.value.ui64 = hrtime; in zone_misc_kstat_update() 1932 hrtime = UINT64_OVERFLOW_TO_INT64(tmp); in zone_misc_kstat_update() 1933 scalehrtime(&hrtime); in zone_misc_kstat_update() 1934 zmp->zm_wtime.value.ui64 = hrtime; in zone_misc_kstat_update()
|
H A D | kcpc.c | 438 kcpc_sample(kcpc_set_t *set, uint64_t *buf, hrtime_t *hrtime, uint64_t *tick) in kcpc_sample() argument 500 if (copyout(&ctx->kc_hrtime, hrtime, sizeof (uint64_t)) == -1) in kcpc_sample()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 1097 hrtime_t hrtime; in dbgmsg_cb() local 1120 if (GETMEMBID(addr, &id, zdm_hrtime, hrtime)) { in dbgmsg_cb() 1135 mdb_printf("%016x ", hrtime); in dbgmsg_cb()
|
/illumos-gate/usr/src/uts/sun4v/cpu/ |
H A D | common_asm.S | 177 ! %g1 = hrtime
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | common_asm.S | 387 GET_HRTIME(%g1, %g2, %g3, %g4, %g5, %o0, %o1, %o2) ! %g1 = hrtime
|