| /tools/testing/selftests/firmware/ |
| D | fw_fallback.sh | 30 local timeout=10 33 timeout=$(( $timeout - 1 )) 34 if [ "$timeout" -eq 0 ]; then 57 local timeout=10 60 timeout=$(( $timeout - 1 )) 61 if [ "$timeout" -eq 0 ]; then 86 local timeout=10 89 timeout=$(( $timeout - 1 )) 90 if [ "$timeout" -eq 0 ]; then 119 local timeout=10 [all …]
|
| D | settings | 1 # The async firmware timeout is set to 1 second (but ends up being effectively 8 timeout=165
|
| /tools/testing/selftests/ftrace/test.d/ftrace/ |
| D | func_stack_tracer.tc | 12 timeout=10 13 while [ $timeout -ne 0 ]; do 17 timeout=$((timeout - 1)) 28 timeout=10 29 while [ $timeout -ne 0 ]; do 33 timeout=$((timeout - 1))
|
| /tools/testing/selftests/timens/ |
| D | futex.c | 23 struct timespec timeout, end; in run_test() local 29 clock_gettime(clockid, &timeout); in run_test() 30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test() 31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test() 32 timeout.tv_sec++; in run_test() 33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test() 37 &timeout, 0, FUTEX_BITSET_MATCH_ANY) >= 0) { in run_test() 50 if (end.tv_sec < timeout.tv_sec || in run_test() 51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout.tv_nsec)) { in run_test()
|
| D | gettime_perf.c | 51 const int timeout = 3; in test() local 55 for (tp = start; start.tv_sec + timeout > tp.tv_sec || in test() 56 (start.tv_sec + timeout == tp.tv_sec && in test()
|
| /tools/testing/vsock/ |
| D | timeout.c | 26 static volatile bool timeout; variable 34 timeout = true; in sigalrm() 49 if (timeout) { in timeout_check() 59 timeout = false; in timeout_end()
|
| D | Makefile | 4 vsock_test: vsock_test.o vsock_test_zerocopy.o timeout.o control.o util.o msg_zerocopy_common.o 5 vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o 9 vsock_uring_test: control.o util.o vsock_uring_test.o timeout.o msg_zerocopy_common.o
|
| /tools/perf/bench/ |
| D | futex.h | 49 futex_syscall(volatile u_int32_t *uaddr, int op, u_int32_t val, struct timespec *timeout, in futex_syscall() argument 52 return syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3); in futex_syscall() 67 futex_wait(u_int32_t *uaddr, u_int32_t val, struct timespec *timeout, int opflags) in futex_wait() argument 69 return futex_syscall(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags); in futex_wait() 86 futex_lock_pi(u_int32_t *uaddr, struct timespec *timeout, int opflags) in futex_lock_pi() argument 88 return futex_syscall(uaddr, FUTEX_LOCK_PI, 0, timeout, NULL, 0, opflags); in futex_lock_pi() 123 struct timespec *timeout, int opflags) in futex_wait_requeue_pi() argument 125 return futex_syscall(uaddr, FUTEX_WAIT_REQUEUE_PI, val, timeout, uaddr2, 0, in futex_wait_requeue_pi()
|
| /tools/testing/selftests/futex/include/ |
| D | futextest.h | 81 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ argument 82 syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3) 89 futex_wait(futex_t *uaddr, futex_t val, struct timespec *timeout, int opflags) in futex_wait() argument 91 return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags); in futex_wait() 109 futex_wait_bitset(futex_t *uaddr, futex_t val, struct timespec *timeout, in futex_wait_bitset() argument 112 return futex(uaddr, FUTEX_WAIT_BITSET, val, timeout, NULL, bitset, in futex_wait_bitset() 132 futex_lock_pi(futex_t *uaddr, struct timespec *timeout, int detect, in futex_lock_pi() argument 135 return futex(uaddr, FUTEX_LOCK_PI, detect, timeout, NULL, 0, opflags); in futex_lock_pi() 197 struct timespec *timeout, int opflags) in futex_wait_requeue_pi() argument 199 return futex(uaddr, FUTEX_WAIT_REQUEUE_PI, val, timeout, uaddr2, 0, in futex_wait_requeue_pi()
|
| /tools/testing/selftests/alsa/ |
| D | global-timer.c | 21 static void bind_to_timer(int device, int subdevice, int timeout) in bind_to_timer() argument 51 end = time(NULL) + timeout; in bind_to_timer() 69 int device, subdevice, timeout; in main() local 80 timeout = atoi(argv[3]); in main() 82 bind_to_timer(device, subdevice, timeout); in main()
|
| /tools/perf/ui/tui/ |
| D | setup.c | 59 struct timeval timeout, *ptimeout = delay_secs ? &timeout : NULL; in ui__getch() local 69 timeout.tv_sec = delay_secs; in ui__getch() 70 timeout.tv_usec = 0; in ui__getch() 90 timeout.tv_sec = 0; in ui__getch() 91 timeout.tv_usec = 20; in ui__getch() 92 err = select(1, &read_set, NULL, NULL, &timeout); in ui__getch()
|
| /tools/testing/selftests/mm/ |
| D | ksm_tests.c | 218 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() argument 234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan() 244 struct timespec start_time, int timeout) in ksm_merge_pages() argument 262 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages() 269 struct timespec start_time, int timeout) in ksm_unmerge_pages() argument 348 long page_count, int timeout, size_t page_size) in check_ksm_merge() argument 363 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge() 381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument 397 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_unmerge() 405 if (ksm_do_scan(1, start_time, timeout)) in check_ksm_unmerge() [all …]
|
| D | mrelease_test.c | 23 int timeout = 10; /* 10sec timeout to get killed */ in alloc_noexit() local 40 while (getppid() == ppid && timeout > 0) { in alloc_noexit() 42 timeout--; in alloc_noexit() 47 return (timeout > 0) ? KSFT_PASS : KSFT_FAIL; in alloc_noexit()
|
| /tools/testing/selftests/powerpc/ |
| D | harness.c | 25 static uint64_t timeout = 120; variable 47 if (timeout != -1) in run_test() 49 alarm(timeout); in run_test() 101 timeout = time; in test_harness_set_timeout()
|
| /tools/testing/selftests/net/mptcp/ |
| D | diag.sh | 99 local timeout=20 107 while [ $i -lt $timeout ]; do 116 if [ $i -ge $timeout ]; then 273 timeout ${timeout_test} \ 282 timeout ${timeout_test} \ 299 timeout ${timeout_test} \ 305 timeout ${timeout_test} \ 321 timeout ${timeout_test} \ 330 timeout ${timeout_test} \
|
| /tools/testing/selftests/net/ |
| D | xfrm_policy_add_speed.sh | 6 timeout=4m 59 if ! timeout "$timeout" ip netns exec "$ns" ip -batch "$tmp";then 60 echo "WARNING: policy insertion cancelled after $timeout"
|
| D | unicast_extensions.sh | 65 ip netns exec $foo_ns timeout 2 ping -c 1 $2 || return 1 66 ip netns exec $bar_ns timeout 2 ping -c 1 $1 || return 1 101 ip netns exec $foo_ns timeout 2 ping -c 1 $2 || return 1 102 ip netns exec $foo_ns timeout 2 ping -c 1 $4 || return 1 103 ip netns exec $bar_ns timeout 2 ping -c 1 $3 || return 1 104 ip netns exec $bar_ns timeout 2 ping -c 1 $1 || return 1
|
| /tools/testing/selftests/net/netfilter/ |
| D | connect_close.c | 17 unsigned int timeout; member 20 .timeout = RUNTIME, 37 alarm(opts.timeout); in set_timeout() 113 opts.timeout = atoi(optarg); in parse_opts()
|
| /tools/testing/selftests/resctrl/ |
| D | settings | 2 # the future, increase timeout here. 3 timeout=120
|
| /tools/testing/selftests/pidfd/ |
| D | pidfd_poll_test.c | 19 static bool timeout; variable 23 timeout = true; in handle_alarm() 102 if (timeout) in main()
|
| /tools/testing/selftests/turbostat/ |
| D | defcolumns.py | 12 timeout = which('timeout') variable 13 if timeout is None: 32 timeout_argv = [timeout, '--preserve-status', '-s', 'SIGINT', '-k', '3', '1s']
|
| /tools/include/nolibc/ |
| D | sys.h | 844 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 849 if (timeout >= 0) { in sys_poll() 850 t.tv_sec = timeout / 1000; in sys_poll() 851 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll() 853 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll() 855 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll() 857 return __nolibc_enosys(__func__, fds, nfds, timeout); in sys_poll() 862 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 864 return __sysret(sys_poll(fds, nfds, timeout)); in poll() 963 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument [all …]
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| D | devlink_linecard.sh | 48 local timeout=$3 # ms 50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc" 57 local timeout=$3 # ms 59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc" 82 local timeout=$3 # ms 84 busywait "$timeout" until_lc_port_count_is "$port_count" lc_port_count_get "$lc"
|
| /tools/testing/selftests/net/lib/py/ |
| D | utils.py | 17 … def __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5): argument 32 self.process(terminate=False, fail=fail, timeout=timeout) 34 def process(self, terminate=True, fail=None, timeout=5): argument 40 stdout, stderr = self.proc.communicate(timeout)
|
| /tools/testing/selftests/timers/ |
| D | set-timer-lat.c | 232 struct timeval timeout; in do_timer_oneshot() local 240 memset(&timeout, 0, sizeof(timeout)); in do_timer_oneshot() 241 timeout.tv_sec = 5; in do_timer_oneshot() 243 err = select(0, NULL, NULL, NULL, &timeout); in do_timer_oneshot()
|