Home
last modified time | relevance | path

Searched refs:hrtime_t (Results 1 – 25 of 48) sorted by relevance

12

/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/
Dtime.h40 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
44 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
46 typedef longlong_t hrtime_t; typedef
60 static __inline hrtime_t
64 hrtime_t nsec; in gethrtime()
67 nsec = (hrtime_t)ts.tv_sec * NANOSEC + ts.tv_nsec; in gethrtime()
83 static __inline hrtime_t gethrtime(void) { in gethrtime()
Dkcondvar.h63 cv_timedwait_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim, hrtime_t res, in cv_timedwait_hires()
Dcpuvar.h44 hrtime_t cpu_dtrace_chillmark; /* DTrace: chill mark time */
45 hrtime_t cpu_dtrace_chilled; /* DTrace: total chill time */
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/dtrace/
Dprofile.c97 hrtime_t prof_interval;
102 hrtime_t profc_expected;
103 hrtime_t profc_interval;
107 hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */
139 hrtime_t late; in profile_fire()
158 profile_create(hrtime_t interval, const char *name, int kind) in profile_create()
192 hrtime_t val = 0, mult = 1, len; in profile_provide()
206 hrtime_t mult; in profile_provide()
216 { "m", NANOSEC * (hrtime_t)60 }, in profile_provide()
217 { "min", NANOSEC * (hrtime_t)60 }, in profile_provide()
[all …]
/freebsd-10-stable/sys/cddl/dev/profile/
Dprofile.c136 hrtime_t prof_interval;
147 hrtime_t profc_expected;
148 hrtime_t profc_interval;
157 static void profile_create(hrtime_t, char *, int);
218 static hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */
222 nsec_to_sbt(hrtime_t nsec) in nsec_to_sbt()
235 static hrtime_t
240 (((uint32_t)sbt * (hrtime_t)NANOSEC) >> 32)); in sbt_to_nsec()
248 hrtime_t late; in profile_fire()
310 profile_create(hrtime_t interval, char *name, int kind) in profile_create()
[all …]
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
Dcpuvar.h181 hrtime_t cpu_dtrace_chillmark; /* DTrace: chill mark time */
182 hrtime_t cpu_dtrace_chilled; /* DTrace: total chill time */
185 volatile hrtime_t cpu_mstate_start; /* cpu microstate start time */
186 volatile hrtime_t cpu_acct[NCMSTATES]; /* cpu microstate data */
187 hrtime_t cpu_intracct[NCMSTATES]; /* interrupt mstate data */
188 hrtime_t cpu_waitrq; /* cpu run-queue wait time */
212 hrtime_t cpu_intrlast; /* total interrupt time (nsec) */
716 extern void new_cpu_mstate(int, hrtime_t);
717 extern void get_cpu_mstate(struct cpu *, hrtime_t *);
Dsysevent.h115 hrtime_t eid_ts;
134 hrtime_t sv_time;
277 extern void sysevent_get_time(sysevent_t *, hrtime_t *);
Ddtrace_impl.h926 hrtime_t dtms_walltimestamp; /* cached wall timestamp */
1154 hrtime_t dts_laststatus; /* time of last status */
1162 hrtime_t dts_alive; /* time last alive */
1179 hrtime_t dtpv_defunct; /* when made defunct */
1304 extern hrtime_t dtrace_gethrestime(void);
Dnvpair.h195 int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t);
231 int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *);
273 int nvpair_value_hrtime(nvpair_t *, hrtime_t *);
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
Ddt_work.c53 hrtime_t earliest = INT64_MAX; in dtrace_sleep()
55 hrtime_t now; in dtrace_sleep()
72 if (*((hrtime_t *)a) + interval < earliest) in dtrace_sleep()
73 earliest = *((hrtime_t *)a) + interval; in dtrace_sleep()
135 hrtime_t now = gethrtime(); in dtrace_status()
Ddt_options.c701 hrtime_t mul; in dt_opt_rate()
711 { "m", NANOSEC * (hrtime_t)60 }, in dt_opt_rate()
712 { "min", NANOSEC * (hrtime_t)60 }, in dt_opt_rate()
713 { "h", NANOSEC * (hrtime_t)60 * (hrtime_t)60 }, in dt_opt_rate()
714 { "hour", NANOSEC * (hrtime_t)60 * (hrtime_t)60 }, in dt_opt_rate()
715 { "d", NANOSEC * (hrtime_t)(24 * 60 * 60) }, in dt_opt_rate()
716 { "day", NANOSEC * (hrtime_t)(24 * 60 * 60) }, in dt_opt_rate()
Ddt_impl.h324 hrtime_t dt_laststatus; /* last status */
325 hrtime_t dt_lastswitch; /* last switch of buffer data */
326 hrtime_t dt_lastagg; /* last snapshot of aggregation data */
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/sys/fm/
Dutil.h65 hrtime_t ed_hrt_nsec; /* hrtime of this ereport */
66 hrtime_t ed_hrt_base; /* hrtime sample corresponding to ed_tod_base */
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
Dtxg.h77 extern void txg_delay(struct dsl_pool *dp, uint64_t txg, hrtime_t delta,
78 hrtime_t resolution);
Ddmu_zfetch.h54 hrtime_t zs_atime; /* time last prefetch issued */
Dzio.h470 hrtime_t io_timestamp;
471 hrtime_t io_queued_timestamp;
472 hrtime_t io_target_timestamp;
639 extern hrtime_t zio_handle_io_delay(zio_t *zio);
Dspa_impl.h268 hrtime_t spa_sync_starttime; /* starting time fo spa_sync */
282 hrtime_t spa_ccw_fail_time; /* Conf cache write fail time */
Dtxg_impl.h99 hrtime_t tx_open_time; /* start time of tx_open_txg */
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dzio_inject.c401 hrtime_t
406 hrtime_t min_target = 0; in zio_handle_io_delay()
508 hrtime_t idle = handler->zi_record.zi_timer + gethrtime(); in zio_handle_io_delay()
509 hrtime_t busy = handler->zi_record.zi_timer + in zio_handle_io_delay()
511 hrtime_t target = MAX(idle, busy); in zio_handle_io_delay()
Dtrim_map.c74 hrtime_t ts_time; /* Segment creation time. */
216 hrtime_t time; in trim_map_segment_add()
421 trim_map_first(trim_map_t *tm, uint64_t txg, uint64_t txgsafe, hrtime_t time, in trim_map_first()
443 hrtime_t timelimit; in trim_map_vdev_commit()
450 timelimit = gethrtime() - (hrtime_t)trim_timeout * NANOSEC; in trim_map_vdev_commit()
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
Derr.badchill.d32 chill(((hrtime_t)1 << 63) - 1);
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzpool/common/sys/
Dzfs_context.h333 extern clock_t cv_timedwait_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim,
334 hrtime_t res, int flag);
773 hrtime_t cyt_when;
774 hrtime_t cyt_interval;
785 extern int cyclic_reprogram(cyclic_id_t, hrtime_t);
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printa/
Dtst.walltimestamp.ksh44 @foo = min(1075064400 * (hrtime_t)1000000000);
/freebsd-10-stable/sys/cddl/dev/dtrace/
Ddtrace_vtime.c87 hrtime_t ts; in dtrace_vtime_switch()
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/
Dbadioctl.c64 hrtime_t now, last = 0, end; in badioctl()

12