Home
last modified time | relevance | path

Searched refs:gethrtime (Results 1 – 25 of 47) sorted by relevance

12

/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dmmp.c261 spa_name(spa), gethrtime()); in mmp_thread_stop()
374 mts->mmp_last_write = gethrtime(); in mmp_delay_update()
446 hrtime_t lock_acquire_time = gethrtime(); in mmp_write_uberblock()
452 gethrtime()); in mmp_write_uberblock()
477 gethrtime(), error); in mmp_write_uberblock()
513 vd->vdev_mmp_pending = gethrtime(); in mmp_write_uberblock()
569 mmp->mmp_last_write = gethrtime(); in mmp_thread()
574 hrtime_t next_time = gethrtime() + in mmp_thread()
639 mmp->mmp_last_write = gethrtime(); in mmp_thread()
663 spa_name(spa), (u_longlong_t)gethrtime(), in mmp_thread()
[all …]
H A Dzfs_ratelimit.c84 now = gethrtime(); in zfs_ratelimit()
H A Ddmu_zfetch.c187 hrtime_t now = gethrtime(); in dmu_zfetch_stream_create()
241 hrtime_t now = gethrtime(); in dmu_zfetch_stream_done()
418 zs->zs_atime = gethrtime(); in dmu_zfetch()
H A Dvdev_rebuild.c204 NSEC2MSEC(gethrtime() - vr->vr_pass_start_time); in vdev_rebuild_update_sync()
770 vr->vr_pass_start_time = gethrtime(); in vdev_rebuild_thread()
777 uint64_t update_est_time = gethrtime(); in vdev_rebuild_thread()
866 if (gethrtime() > update_est_time + SEC2NSEC(300)) { in vdev_rebuild_thread()
867 update_est_time = gethrtime(); in vdev_rebuild_thread()
1128 vrs->vrs_pass_time_ms = NSEC2MSEC(gethrtime() - in vdev_rebuild_get_stats()
H A Dspa_stats.c165 srh->start = gethrtime(); in spa_read_history_add()
416 spa_txg_history_set(spa, txg, TXG_STATE_WAIT_FOR_SYNC, gethrtime()); in spa_txg_history_init_io()
436 spa_txg_history_set(spa, ts->txg, TXG_STATE_SYNCED, gethrtime()); in spa_txg_history_fini_io()
738 smh->duration = gethrtime() - smh->error_start; in spa_mmp_history_set_skip()
810 smh->error_start = gethrtime(); in spa_mmp_history_add()
H A Dtxg.c380 tx->tx_open_time = tx_open_time = gethrtime(); in txg_quiesce()
406 spa_txg_history_set(dp->dp_spa, txg, TXG_STATE_QUIESCED, gethrtime()); in txg_quiesce()
648 hrtime_t start = gethrtime(); in txg_delay()
661 while (gethrtime() - start < delay && in txg_delay()
H A Ddmu_tx.c73 tx->tx_start = gethrtime(); in dmu_tx_create_dd()
797 now = gethrtime(); in dmu_tx_delay()
1055 before = gethrtime(); in dmu_tx_wait()
1110 spa_tx_assign_add_nsecs(spa, gethrtime() - before); in dmu_tx_wait()
H A Dvdev_raidz_math.c410 t_start = gethrtime(); in benchmark_raidz_impl()
416 t_diff = gethrtime() - t_start; in benchmark_raidz_impl()
H A Dvdev_queue.c964 zio->io_timestamp = gethrtime(); in vdev_queue_io()
990 zio->io_delta = gethrtime() - zio->io_timestamp; in vdev_queue_io_done()
991 vq->vq_io_complete_ts = gethrtime(); in vdev_queue_io_done()
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_device_path_os.c107 start = gethrtime(); in zpool_label_disk_wait()
114 settle = gethrtime(); in zpool_label_disk_wait()
115 else if (NSEC2MSEC(gethrtime() - settle) >= settle_ms) in zpool_label_disk_wait()
122 } while (NSEC2MSEC(gethrtime() - start) < timeout_ms); in zpool_label_disk_wait()
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c622 start = gethrtime(); in zpool_label_disk_wait()
659 settle = gethrtime(); in zpool_label_disk_wait()
660 } else if (NSEC2MSEC(gethrtime() - settle) >= in zpool_label_disk_wait()
671 } while (NSEC2MSEC(gethrtime() - start) < timeout_ms); in zpool_label_disk_wait()
682 start = gethrtime(); in zpool_label_disk_wait()
689 settle = gethrtime(); in zpool_label_disk_wait()
690 else if (NSEC2MSEC(gethrtime() - settle) >= settle_ms) in zpool_label_disk_wait()
697 } while (NSEC2MSEC(gethrtime() - start) < timeout_ms); in zpool_label_disk_wait()
731 start = gethrtime(); in encode_device_strings()
743 if (NSEC2MSEC(gethrtime() - start) < 10) in encode_device_strings()
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dtime.h67 gethrtime(void) in gethrtime() function
79 #define gethrtime_waitfree() gethrtime()
90 gethrtime(void) in gethrtime() function
H A Dcondvar.h164 hrtime = gethrtime(); in cv_timedwait_hires()
190 hrtime = gethrtime(); in cv_timedwait_sig_hires()
/f-stack/freebsd/contrib/openzfs/cmd/raidz_test/
H A Draidz_bench.c102 start = gethrtime(); in run_gen_bench_impl()
105 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_gen_bench_impl()
194 start = gethrtime(); in run_rec_bench_impl()
197 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_rec_bench_impl()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_util_os.c144 start = gethrtime(); in libzfs_load_module_impl()
152 } else if (NSEC2MSEC(gethrtime() - start) < busy_timeout) { in libzfs_load_module_impl()
157 } while (NSEC2MSEC(gethrtime() - start) < (timeout * MILLISEC)); in libzfs_load_module_impl()
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dzfs_delay.h32 hrtime_t delta = wakeup - gethrtime(); \
H A Dzfs_context.h597 #define ddi_get_lbolt() (gethrtime() >> 23)
598 #define ddi_get_lbolt64() (gethrtime() >> 23)
749 hrtime_t delta = wakeup - gethrtime(); \
/f-stack/freebsd/contrib/openzfs/lib/libuutil/
H A Duu_open.c56 (void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime()); in uu_open_tmp()
/f-stack/freebsd/contrib/openzfs/module/os/linux/spl/
H A Dspl-kstat.c59 new = gethrtime(); in kstat_waitq_enter()
76 new = gethrtime(); in kstat_waitq_exit()
92 new = gethrtime(); in kstat_runq_enter()
109 new = gethrtime(); in kstat_runq_exit()
390 ksp->ks_snaptime = gethrtime(); in kstat_seq_start()
580 ksp->ks_crtime = gethrtime(); in __kstat_create()
H A Dspl-condvar.c379 time_left = expire_time - gethrtime(); in __cv_timedwait_hires()
430 tim += gethrtime(); in cv_timedwait_hires_common()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_kstat.c265 ksp->ks_crtime = gethrtime(); in __kstat_create()
521 new = gethrtime(); in kstat_waitq_enter()
537 new = gethrtime(); in kstat_waitq_exit()
552 new = gethrtime(); in kstat_runq_enter()
568 new = gethrtime(); in kstat_runq_exit()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/
H A Dtime.h100 gethrtime(void) in gethrtime() function
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dtime.h105 gethrtime(void) in gethrtime() function
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Darc_os.c220 arc_growtime = gethrtime() + SEC2NSEC(arc_grow_retry); in arc_lowmem()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dvdev_disk.c269 hrtime_t start = gethrtime(); in vdev_disk_open()
271 while (IS_ERR(bdev) && ((gethrtime() - start) < timeout)) { in vdev_disk_open()
284 (u_longlong_t)(gethrtime() - start), in vdev_disk_open()

12