Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 25 of 42) sorted by relevance

12

/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c152 time_t diff = expected - elapsed; in check_time()
172 *elapsed = time(NULL) - start; in poll_wrapper()
195 *elapsed = time(NULL) - start; in dppoll()
233 time_t elapsed; in poll_no_fd_test() local
247 elapsed, timeout); in poll_no_fd_test()
261 time_t elapsed; in poll_with_fds_test() local
280 elapsed, timeout); in poll_with_fds_test()
294 time_t elapsed; in dev_poll_no_fd_test() local
308 elapsed, timeout); in dev_poll_no_fd_test()
322 time_t elapsed; in dev_poll_with_fds_test() local
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/perf/scripts/
H A Dio.d100 this->elapsed = timestamp - self->zfs_rw;
101 @latencies[this->name] = avg(this->elapsed);
102 @histograms[this->name] = quantize(this->elapsed);
111 this->elapsed = timestamp - self->zfs_rw;
112 @latencies[probefunc] = avg(this->elapsed);
113 @histograms[probefunc] = quantize(this->elapsed);
126 this->elapsed = timestamp - start[args[0]->b_edev, args[0]->b_blkno];
130 @latencies[this->name] = avg(this->elapsed);
131 @histograms[this->name] = quantize(this->elapsed);
/illumos-gate/usr/src/cmd/dtrace/demo/ip/
H A Dipio.d38 this->elapsed = (timestamp - last) / 1000;
39 printf(" %3d %10d %15s -> %15s %8s %6d\n", cpu, this->elapsed,
47 this->elapsed = (timestamp - last) / 1000;
48 printf(" %3d %10d %15s <- %15s %8s %6d\n", cpu, this->elapsed,
/illumos-gate/usr/src/cmd/dtrace/demo/struct/
H A Drwinfo.d29 uint64_t elapsed; /* total elapsed time in nanoseconds */ member
48 i[probefunc].elapsed += timestamp - i[probefunc].ts;
56 i["read"].calls, i["read"].maxbytes, i["read"].elapsed);
58 i["write"].calls, i["write"].maxbytes, i["write"].elapsed);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/docsExamples/
H A Drwinfo.d40 uint64_t elapsed; member
61 i[probefunc].elapsed += timestamp - i[probefunc].ts;
69 i["read"].maxbytes, i["read"].elapsed);
71 i["write"].maxbytes, i["write"].elapsed);
/illumos-gate/usr/src/cmd/raidz_test/
H A Draidz_bench.c78 double elapsed, d_bw; in run_gen_bench_impl() local
97 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_gen_bench_impl()
101 d_bw /= (1024.0 * 1024.0 * elapsed); in run_gen_bench_impl()
141 double elapsed, d_bw; in run_rec_bench_impl() local
181 elapsed = NSEC2SEC((double)(gethrtime() - start)); in run_rec_bench_impl()
185 d_bw /= (1024.0 * 1024.0 * elapsed); in run_rec_bench_impl()
/illumos-gate/usr/src/cmd/dtrace/demo/io/
H A Diotime.d42 this->elapsed = timestamp - start[args[0]->b_edev, args[0]->b_blkno];
45 this->elapsed / 1000000, (this->elapsed / 1000) % 1000);
H A Diothrough.d57 this->elapsed = timestamp - start[args[0]->b_edev, args[0]->b_blkno];
59 quantize((args[0]->b_bcount * 976562) / this->elapsed);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.h259 extern uint_t phyint_timer(struct phyint *pi, uint_t elapsed);
268 extern uint_t tmptoken_timer(struct phyint *pi, uint_t elapsed);
283 extern uint_t prefix_timer(struct prefix *pr, uint_t elapsed);
285 uint_t elapsed);
298 extern uint_t router_timer(struct router *dr, uint_t elapsed);
304 uint_t elapsed);
306 uint_t elapsed);
H A Dmain.c813 pi->pi_adv_time_left -= elapsed; in advertise_event()
1061 pi->pi_sol_time_left -= elapsed; in solicit_event()
1175 uint_t elapsed; in conditional_run_timeouts() local
1178 elapsed = now - timer_previous; in conditional_run_timeouts()
1179 if (elapsed > minimal_time) { in conditional_run_timeouts()
1182 "elapsed %d\n", elapsed); in conditional_run_timeouts()
1202 uint_t elapsed; in run_timeouts() local
1226 elapsed = now - timer_previous; in run_timeouts()
1235 nexti = phyint_timer(pi, elapsed); in run_timeouts()
1244 nexti = prefix_timer(pr, elapsed); in run_timeouts()
[all …]
H A Dtables.c565 pi->pi_reach_time_since_random += elapsed; in phyint_timer()
868 if (pi->pi_TmpRegenCountdown > elapsed) { in tmptoken_timer()
869 pi->pi_TmpRegenCountdown -= elapsed; in tmptoken_timer()
1801 pr->pr_PreferredLifetime -= elapsed; in prefix_timer()
1808 if (pr->pr_ValidLifetime <= elapsed) { in prefix_timer()
1811 pr->pr_ValidLifetime -= elapsed; in prefix_timer()
1818 if (pr->pr_OnLinkLifetime <= elapsed) { in prefix_timer()
1821 pr->pr_OnLinkLifetime -= elapsed; in prefix_timer()
2031 elapsed); in adv_prefix_timer()
2199 if (dr->dr_lifetime <= elapsed) { in router_timer()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctcom.c65 ulong_t elapsed, variable
370 elapsed = expand(a->ac_etime); in dofile()
371 etime = (ulong_t)a->ac_btime + (ulong_t)SECS(elapsed); in dofile()
425 if(elapsed == 0) in dofile()
426 elapsed++; in dofile()
427 if(hogcut && hogcut >= (double)cpu/(double)elapsed) in dofile()
435 realtot += (double)elapsed; in dofile()
566 pf((double)SECS(elapsed)); in println()
577 pf((double)cpu / elapsed); in println()
/illumos-gate/usr/src/test/libc-tests/tests/qsort/
H A Dqsort_test.c411 print_timing(struct test_distribution *d, char *sub, int m, int n, double elapsed) in print_timing() argument
416 d->name, sub, m, n, elapsed); in print_timing()
419 d->name, sub, n, elapsed); in print_timing()
424 d->name, m, n, elapsed); in print_timing()
427 d->name, n, elapsed); in print_timing()
453 double elapsed; in do_test() local
456 elapsed = after.tv_sec + after.tv_nsec / 1000000000.0; in do_test()
457 print_timing(d, sub, m, n, elapsed); in do_test()
652 double elapsed; in test_antiqsort() local
654 elapsed = after.tv_sec + after.tv_nsec / 1000000000.0; in test_antiqsort()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/dtrace/
H A Dnfs-time.d62 elapsed = (timestamp - self->ts[probefunc]);
63 @q[probefunc]=quantize(elapsed);
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dsnmplib.c600 int elapsed; in lookup_int() local
629 elapsed = now - val_arr[1]; in lookup_int()
630 if (elapsed < 0 || elapsed > MAX_INCACHE_TIME) { in lookup_int()
654 int elapsed; in lookup_str() local
683 elapsed = now - atoi(val_arr[1]); in lookup_str()
684 if (elapsed < 0 || elapsed > MAX_INCACHE_TIME) { in lookup_str()
1475 int elapsed; in snmp_refresh_get_next_expiration() local
1482 elapsed = GET_SCALED_HRTIME() - in snmp_refresh_get_next_expiration()
1485 if (elapsed >= MAX_INCACHE_TIME) { in snmp_refresh_get_next_expiration()
1488 ret = (MAX_INCACHE_TIME - elapsed) * HRTIME_SCALE; in snmp_refresh_get_next_expiration()
/illumos-gate/usr/src/cmd/ptools/preap/
H A Dpreap.c109 time_t elapsed; in reap() local
139 elapsed = usage.pr_tstamp.tv_sec - usage.pr_term.tv_sec; in reap()
146 if ((Fflag == 0) && (elapsed < NOREAP_TIME)) { in reap()
/illumos-gate/usr/src/lib/libc/port/tpool/
H A Dthread_pool.c126 int elapsed; in tpool_worker() local
140 elapsed = 0; in tpool_worker()
158 elapsed = 1; in tpool_worker()
177 elapsed = 0; in tpool_worker()
205 if (elapsed && tpool->tp_current > tpool->tp_minimum) { in tpool_worker()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Ddate.c296 int elapsed = 0; /* args are start/stop pairs */ in b_date() local
327 elapsed = 1; in b_date()
405 else if (elapsed) in b_date()
/illumos-gate/usr/src/uts/common/io/vuidmice/
H A Dvuidps2.c340 clock_t elapsed; in VUID_QUEUE() local
345 elapsed = now - STATEP->last_event_lbolt; in VUID_QUEUE()
483 if (elapsed > mouse_timeout) in VUID_QUEUE()
496 if (elapsed > mouse_timeout) { in VUID_QUEUE()
/illumos-gate/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c265 double elapsed, avg_w, avg_d; in modstat_compute() local
312 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute()
322 mp->m_wait = (double)delta / elapsed; in modstat_compute()
366 mp->m_pct_w = ((double)delta / elapsed) * 100.0; in modstat_compute()
374 mp->m_pct_b = ((double)delta / elapsed) * 100.0; in modstat_compute()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dlgrpplat.c2446 hrtime_t elapsed; in lgrp_plat_probe_time() local
2506 elapsed = opt_probe_vendor(to, lgrp_plat_probe_nreads); in lgrp_plat_probe_time()
2522 elapsed = end - start; in lgrp_plat_probe_time()
2531 if (min == -1 || elapsed < min) in lgrp_plat_probe_time()
2532 min = elapsed; in lgrp_plat_probe_time()
2533 if (elapsed > max) in lgrp_plat_probe_time()
2534 max = elapsed; in lgrp_plat_probe_time()
3634 hrtime_t elapsed; in opt_probe_vendor() local
3648 elapsed = (end - start) / nreads; in opt_probe_vendor()
3651 return (elapsed); in opt_probe_vendor()
/illumos-gate/usr/src/cmd/busstat/
H A Dbusstat.c1490 hrtime_t elapsed = 0; in print_timestamp() local
1500 elapsed = (new_time - curr_time)/NANO; in print_timestamp()
1505 elapsed += 1; in print_timestamp()
1507 total_elapsed += elapsed; in print_timestamp()
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai.c256 hrtime_t elapsed = (t - usba_last_timestamp)/1000; in usb_vprintf() local
262 "+%lld->%p: %s%d: ", elapsed, in usb_vprintf()
266 "+%lld->%p: %s: ", elapsed, in usb_vprintf()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c524 hrtime_t elapsed = gethrtime() - start; in set_up_connection() local
525 if (elapsed >= tout) in set_up_connection()
536 if (NSECS_TO_MS(tout - elapsed) >= in set_up_connection()
541 NSECS_TO_MS(tout - elapsed); in set_up_connection()
543 tout - elapsed) in set_up_connection()
/illumos-gate/usr/src/uts/common/os/
H A Dvm_pageout.c1073 pageout_sample_add(pgcnt_t count, hrtime_t elapsed) in pageout_sample_add() argument
1082 pageout_sample_etime += elapsed; in pageout_sample_add()

12