Searched refs:NANOSEC (Results 1 – 18 of 18) sorted by relevance
41 #define NANOSEC 1000000000UL macro44 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))45 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))47 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))48 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))50 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))51 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))64 #define NSEC_TO_TICK(nsec) ((nsec) / (NANOSEC / hz))73 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in gethrtime()94 return (((u_int64_t)ts.tv_sec) * NANOSEC + ts.tv_nsec); in gethrtime()
46 #ifndef NANOSEC47 #define NANOSEC 1000000000 macro55 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))59 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))63 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))67 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))71 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))75 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))104 return ((((u_int64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec); in gethrtime()
43 #define NANOSEC 1000000000 macro45 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))46 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))48 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))49 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))51 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))52 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
36 delta_us = delta / (NANOSEC / MICROSEC); \
616 #define NSEC_TO_TICK(nsec) (howmany((hrtime_t)(nsec) * hz, NANOSEC))751 ts.tv_sec = delta / NANOSEC; \752 ts.tv_nsec = delta % NANOSEC; \
365 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % hz) * (NANOSEC / hz); in cv_timedwait()366 if (ts.tv_nsec >= NANOSEC) { in cv_timedwait()368 ts.tv_nsec -= NANOSEC; in cv_timedwait()404 ts.tv_sec = tv.tv_sec + delta / NANOSEC; in cv_timedwait_hires()405 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % NANOSEC); in cv_timedwait_hires()406 if (ts.tv_nsec >= NANOSEC) { in cv_timedwait_hires()408 ts.tv_nsec -= NANOSEC; in cv_timedwait_hires()
85 sec = MAX(1, vs->vs_timestamp / NANOSEC); in show_vdev_stats()
389 uint64_t zopt_always = 0ULL * NANOSEC; /* all the time */391 uint64_t zopt_often = 1ULL * NANOSEC; /* every second */393 uint64_t zopt_rarely = 60ULL * NANOSEC; /* every 60 seconds */6241 hrtime_t end = gethrtime() + NANOSEC; in ztest_fletcher()6317 hrtime_t end = gethrtime() + NANOSEC; in ztest_fletcher_incr()6823 (gethrtime() - zs->zs_proc_start) / NANOSEC); in ztest_deadman_thread()6827 (gethrtime() - zs->zs_proc_start) / NANOSEC); in ztest_deadman_thread()6854 (double)functime / NANOSEC, zi->zi_funcname); in ztest_execute()7226 ztest_random(ztest_opts.zo_passtime * NANOSEC); in ztest_run()7428 hrtime_t s = t / NANOSEC; in print_time()[all …]
202 if (((now - zs->zs_atime) / NANOSEC) > in dmu_zfetch_stream_create()
419 speed = run_cnt * BENCH_ZIO_SIZE * NANOSEC; in benchmark_raidz_impl()
609 (gethrtime() - spa->spa_sync_starttime) / NANOSEC, in spa_deadman()
3167 return (elapsed_nanosecs / NANOSEC > zfs_txg_timeout || in dsl_scan_async_block_should_pause()
3006 uint64_t import_delay = MAX(NANOSEC, import_intervals * in spa_activity_check_duration()8225 ((hrtime_t)zfs_ccw_retry_interval * NANOSEC);
751 faux_event.ev_hrt = tv[0] * NANOSEC + tv[1]; in fmd_module_recv()
700 run_bw = data_size * run_count * NANOSEC; in fletcher_4_benchmark_impl()
911 time_diff = (gethrtime() - start_time) / NANOSEC; in run_sweep()
4581 scale = (double)NANOSEC / tdelta; in print_vdev_stats()5163 req.tv_nsec = (sec - (float)req.tv_sec) * NANOSEC; in fsleep()10120 (wd->wd_interval - floor(wd->wd_interval)) * NANOSEC; in wait_status_thread()10121 if (nanos >= NANOSEC) { in wait_status_thread()10123 timeout.tv_nsec = nanos - NANOSEC; in wait_status_thread()
5302 if (dump_opt['b'] < 5 && gethrtime() > zcb->zcb_lastprint + NANOSEC) { in zdb_blkptr_cb()