/titanic_51/usr/src/test/os-tests/tests/poll/ |
H A D | poll_test.c | 150 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 261 time_t elapsed; poll_with_fds_test() local 294 time_t elapsed; dev_poll_no_fd_test() local 322 time_t elapsed; dev_poll_with_fds_test() local [all...] |
/titanic_51/usr/src/cmd/dtrace/demo/ip/ |
H A D | ipio.d | 38 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_51/usr/src/cmd/dtrace/demo/struct/ |
H A D | rwinfo.d | 29 uint64_t elapsed; /* total elapsed time in nanoseconds */ member 48 i[probefunc].elapsed += timestamp - i[probefunc].ts; 53 printf(" calls max bytes elapsed nsecs\n"); 56 i["read"].calls, i["read"].maxbytes, i["read"].elapsed); 58 i["write"].calls, i["write"].maxbytes, i["write"].elapsed);
|
/titanic_51/usr/src/cmd/dtrace/test/tst/common/docsExamples/ |
H A D | rwinfo.d | 42 uint64_t elapsed; member 63 i[probefunc].elapsed += timestamp - i[probefunc].ts; 68 printf(" calls max bytes elapsed nsecs\n"); 71 i["read"].maxbytes, i["read"].elapsed); 73 i["write"].maxbytes, i["write"].elapsed);
|
/titanic_51/usr/src/cmd/dtrace/demo/io/ |
H A D | iotime.d | 42 this->elapsed = timestamp - start[args[0]->b_edev, args[0]->b_blkno]; 45 this->elapsed / 1000000, (this->elapsed / 1000) % 1000);
|
H A D | iothrough.d | 57 this->elapsed = timestamp - start[args[0]->b_edev, args[0]->b_blkno]; 59 quantize((args[0]->b_bcount * 976562) / this->elapsed);
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | tables.h | 259 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 D | main.c | 737 * since the last timer event in the 'elapsed' parameter. 740 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() 998 * since the last timer event in the 'elapsed' parameter. 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() 1174 uint_t elapsed; conditional_run_timeouts() local 1201 uint_t elapsed; run_timeouts() local [all...] |
H A D | tables.c | 511 * Called with the number of milliseconds elapsed since the last call. 518 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() 846 * Called from run_timeouts() with the number of milliseconds elapsed 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) prefix_timer() argument 2019 adv_prefix_timer(struct adv_prefix * adv_pr,uint_t elapsed) adv_prefix_timer() argument 2186 router_timer(struct router * dr,uint_t elapsed) router_timer() argument [all...] |
/titanic_51/usr/src/cmd/acct/ |
H A D | acctcom.c | 68 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() 698 diag("-h print hog factor (total-CPU-time/elapsed in usage() [all...] |
/titanic_51/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 609 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 in snmp_refresh_get_next_expiration() [all...] |
/titanic_51/usr/src/cmd/ptools/preap/ |
H A D | preap.c | 111 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_51/usr/src/lib/libcmd/common/ |
H A D | date.c | 287 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_51/usr/src/lib/libc/port/tpool/ |
H A D | thread_pool.c | 128 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_51/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | date.c | 68 "[E:elapsed?Interpret pairs of arguments as start and stop dates, sum the" 70 " \bfmtelapsed\b(3) elapsed time on the standard output. If there are" 182 "[U:unelapsed?Interpret each argument as \bfmtelapsed\b(3) elapsed" 296 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() 431 error(3, "%s: invalid elapsed time", s); in b_date()
|
/titanic_51/usr/src/cmd/avs/sdbc/ |
H A D | sd_trace.c | 338 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_51/usr/src/uts/common/io/vuidmice/ |
H A D | vuidps2.c | 340 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_51/usr/src/cmd/fm/fmstat/common/ |
H A D | fmstat.c | 261 double elapsed, avg_w, avg_d; in modstat_compute() local 300 * Compute the elapsed time by taking the delta between 'snaptime', or in modstat_compute() 308 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute() 312 * len * time products (wlentime stat) and dividing by the elapsed time. in modstat_compute() 318 mp->m_wait = (double)delta / elapsed; in modstat_compute() 356 * busy times, dividing by the elapsed time, and multiplying by 100. 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_51/usr/src/uts/i86pc/os/ |
H A D | lgrpplat.c | 2445 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() [all...] |
/titanic_51/usr/src/cmd/busstat/ |
H A D | busstat.c | 1480 * Print the elapsed time in seconds, since the last call. 1488 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_51/usr/src/uts/common/io/usb/usba/ |
H A D | usbai.c | 253 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_51/usr/src/lib/libnsl/rpc/ |
H A D | clnt_vc.c | 527 * Calculate the elapsed time in set_up_connection() 529 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_51/usr/src/boot/sys/boot/forth/ |
H A D | delay.4th | 99 \ calculate elapsed time
|
/titanic_51/usr/src/uts/common/fs/ufs/ |
H A D | ufs_vfsops.c | 815 int elapsed; in mountfs() local 1314 elapsed = 0; in mountfs() 1315 while ((rvp->v_count > 1) && (elapsed < ufs_mount_timeout)) { in mountfs() 1317 elapsed += ufs_mount_error_delay; in mountfs()
|
/titanic_51/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_srv_deleg.c | 1212 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()
|