Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c150 check_time(time_t elapsed, time_t expected) in check_time() argument
152 time_t diff = expected - elapsed; in check_time()
159 return (elapsed >= expected || diff <= TIME_DRIFT); in check_time()
163 poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) in poll_wrapper() argument
172 *elapsed = time(NULL) - start; in poll_wrapper()
175 fds, nfds, timeout, ret, (*elapsed)); in poll_wrapper()
181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) in dppoll() argument
195 *elapsed = time(NULL) - start; in dppoll()
198 fds, arg.dp_nfds, arg.dp_timeout, ret, (*elapsed)); in dppoll()
233 time_t elapsed; in poll_no_fd_test() local
[all …]
/titanic_41/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,
/titanic_41/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);
/titanic_41/usr/src/cmd/dtrace/test/tst/common/docsExamples/
H A Drwinfo.d42 uint64_t elapsed; member
63 i[probefunc].elapsed += timestamp - i[probefunc].ts;
71 i["read"].maxbytes, i["read"].elapsed);
73 i["write"].maxbytes, i["write"].elapsed);
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dprogressmeter.c127 double elapsed; in refresh_progress_meter() local
141 elapsed = now - last_update; in refresh_progress_meter()
143 elapsed = now - start; in refresh_progress_meter()
150 if (elapsed != 0) in refresh_progress_meter()
151 cur_speed = (int)(transferred / elapsed); in refresh_progress_meter()
196 stalled += elapsed; in refresh_progress_meter()
208 seconds = (int)elapsed; in refresh_progress_meter()
/titanic_41/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);
/titanic_41/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.c740 advertise_event(struct phyint *pi, enum adv_events event, uint_t elapsed) in advertise_event() argument
746 pi->pi_name, (int)event, elapsed, (int)pi->pi_adv_state); in advertise_event()
811 if (pi->pi_adv_time_left >= elapsed) in advertise_event()
812 pi->pi_adv_time_left -= elapsed; in advertise_event()
817 pi->pi_adv_time_since_sent += elapsed; in advertise_event()
1001 solicit_event(struct phyint *pi, enum solicit_events event, uint_t elapsed) in solicit_event() argument
1005 pi->pi_name, (int)event, elapsed, (int)pi->pi_sol_state); in solicit_event()
1059 if (pi->pi_sol_time_left >= elapsed) in solicit_event()
1060 pi->pi_sol_time_left -= elapsed; in solicit_event()
1174 uint_t elapsed; in conditional_run_timeouts() local
[all …]
H A Dtables.c518 phyint_timer(struct phyint *pi, uint_t elapsed) in phyint_timer() argument
530 next = advertise_event(pi, ADV_TIMER, elapsed); in phyint_timer()
546 next = solicit_event(pi, SOL_TIMER, elapsed); in phyint_timer()
563 pi->pi_reach_time_since_random += elapsed; in phyint_timer()
852 tmptoken_timer(struct phyint *pi, uint_t elapsed) in tmptoken_timer() argument
860 pi->pi_name, (int)elapsed, pi->pi_TmpRegenCountdown); in tmptoken_timer()
866 if (pi->pi_TmpRegenCountdown > elapsed) { in tmptoken_timer()
867 pi->pi_TmpRegenCountdown -= elapsed; in tmptoken_timer()
1775 prefix_timer(struct prefix *pr, uint_t elapsed) in prefix_timer() argument
1786 elapsed, pr->pr_ValidLifetime, pr->pr_PreferredLifetime, in prefix_timer()
[all …]
/titanic_41/usr/src/cmd/acct/
H A Dacctcom.c68 ulong_t elapsed, variable
373 elapsed = expand(a->ac_etime); in dofile()
374 etime = (ulong_t)a->ac_btime + (ulong_t)SECS(elapsed); in dofile()
428 if(elapsed == 0) in dofile()
429 elapsed++; in dofile()
430 if(hogcut && hogcut >= (double)cpu/(double)elapsed) in dofile()
438 realtot += (double)elapsed; in dofile()
569 pf((double)SECS(elapsed)); in println()
580 pf((double)cpu / elapsed); in println()
/titanic_41/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dsnmplib.c609 int elapsed; in lookup_int() local
638 elapsed = now - val_arr[1]; in lookup_int()
639 if (elapsed < 0 || elapsed > MAX_INCACHE_TIME) { in lookup_int()
663 int elapsed; in lookup_str() local
692 elapsed = now - atoi(val_arr[1]); in lookup_str()
693 if (elapsed < 0 || elapsed > MAX_INCACHE_TIME) { in lookup_str()
1534 int elapsed; in snmp_refresh_get_next_expiration() local
1541 elapsed = GET_SCALED_HRTIME() - in snmp_refresh_get_next_expiration()
1544 if (elapsed >= MAX_INCACHE_TIME) { in snmp_refresh_get_next_expiration()
1547 ret = (MAX_INCACHE_TIME - elapsed) * HRTIME_SCALE; in snmp_refresh_get_next_expiration()
/titanic_41/usr/src/cmd/ptools/preap/
H A Dpreap.c111 time_t elapsed; in reap() local
141 elapsed = usage.pr_tstamp.tv_sec - usage.pr_term.tv_sec; in reap()
148 if ((Fflag == 0) && (elapsed < NOREAP_TIME)) { in reap()
/titanic_41/usr/src/lib/libcmd/common/
H A Ddate.c287 int elapsed = 0; /* args are start/stop pairs */ in b_date() local
318 elapsed = 1; in b_date()
379 else if (elapsed) in b_date()
/titanic_41/usr/src/lib/libc/port/tpool/
H A Dthread_pool.c128 int elapsed; in tpool_worker() local
142 elapsed = 0; in tpool_worker()
160 elapsed = 1; in tpool_worker()
179 elapsed = 0; in tpool_worker()
207 if (elapsed && tpool->tp_current > tpool->tp_minimum) { in tpool_worker()
/titanic_41/usr/src/cmd/avs/sdbc/
H A Dsd_trace.c338 double elapsed = delta_time / 1000000.0; in disp_stats() local
339 double kbps = elapsed * 1024.0; /* for Kbytes per second */ in disp_stats()
348 read_s = cs_persec->st_rdhits / elapsed; in disp_stats()
349 write_s = cs_persec->st_wrhits / elapsed; in disp_stats()
350 rmiss_s = cs_persec->st_rdmiss / elapsed; in disp_stats()
351 wmiss_s = cs_persec->st_wrmiss / elapsed; in disp_stats()
353 cs_persec->st_rdmiss + cs_persec->st_wrmiss) / elapsed; in disp_stats()
/titanic_41/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()
/titanic_41/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c261 double elapsed, avg_w, avg_d; in modstat_compute() local
308 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute()
318 mp->m_wait = (double)delta / elapsed; in modstat_compute()
362 mp->m_pct_w = ((double)delta / elapsed) * 100.0; in modstat_compute()
370 mp->m_pct_b = ((double)delta / elapsed) * 100.0; in modstat_compute()
/titanic_41/usr/src/cmd/ssh/scp/
H A Dscp.c1234 double elapsed; in progressmeter() local
1292 elapsed = td.tv_sec + (td.tv_usec / 1000000.0); in progressmeter()
1295 (statbytes <= 0 || elapsed <= 0.0 || cursize > totalbytes)) { in progressmeter()
1303 remaining = (int)(totalbytes / (statbytes / elapsed) - in progressmeter()
1304 elapsed); in progressmeter()
1306 remaining = (int)elapsed; in progressmeter()
/titanic_41/usr/src/uts/i86pc/os/
H A Dlgrpplat.c2445 hrtime_t elapsed; in lgrp_plat_probe_time() local
2505 elapsed = opt_probe_vendor(to, lgrp_plat_probe_nreads); in lgrp_plat_probe_time()
2521 elapsed = end - start; in lgrp_plat_probe_time()
2530 if (min == -1 || elapsed < min) in lgrp_plat_probe_time()
2531 min = elapsed; in lgrp_plat_probe_time()
2532 if (elapsed > max) in lgrp_plat_probe_time()
2533 max = elapsed; in lgrp_plat_probe_time()
3632 hrtime_t elapsed; in opt_probe_vendor() local
3646 elapsed = (end - start) / nreads; in opt_probe_vendor()
3649 return (elapsed); in opt_probe_vendor()
/titanic_41/usr/src/cmd/busstat/
H A Dbusstat.c1488 hrtime_t elapsed = 0; in print_timestamp() local
1498 elapsed = (new_time - curr_time)/NANO; in print_timestamp()
1503 elapsed += 1; in print_timestamp()
1505 total_elapsed += elapsed; in print_timestamp()
/titanic_41/usr/src/uts/common/io/usb/usba/
H A Dusbai.c253 hrtime_t elapsed = (t - usba_last_timestamp)/1000; in usb_vprintf() local
259 "+%lld->%p: %s%d: ", elapsed, in usb_vprintf()
263 "+%lld->%p: %s: ", elapsed, in usb_vprintf()
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c529 hrtime_t elapsed = gethrtime() - start; in set_up_connection() local
530 if (elapsed >= tout) in set_up_connection()
541 if (NSECS_TO_MS(tout - elapsed) >= in set_up_connection()
546 NSECS_TO_MS(tout - elapsed); in set_up_connection()
548 tout - elapsed) in set_up_connection()
/titanic_41/usr/src/uts/common/fs/ufs/
H A Dufs_vfsops.c813 int elapsed; in mountfs() local
1312 elapsed = 0; in mountfs()
1313 while ((rvp->v_count > 1) && (elapsed < ufs_mount_timeout)) { in mountfs()
1315 elapsed += ufs_mount_error_delay; in mountfs()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c1212 time_t elapsed; in rfs4_delegation_policy() local
1229 elapsed = gethrestime_sec() - dinfo->rd_time_returned; in rfs4_delegation_policy()
1230 if (elapsed < rfs4_lease_time) in rfs4_delegation_policy()

12