Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 251) sorted by relevance

1234567891011

/tools/include/nolibc/
A Dpoll.h24 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument
29 if (timeout >= 0) { in sys_poll()
30 t.tv_sec = timeout / 1000; in sys_poll()
31 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll()
37 if (timeout >= 0) { in sys_poll()
38 t.tv_sec = timeout / 1000; in sys_poll()
39 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll()
43 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll()
45 return __nolibc_enosys(__func__, fds, nfds, timeout); in sys_poll()
50 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument
[all …]
/tools/testing/selftests/firmware/
A Dfw_fallback.sh30 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 …]
/tools/testing/selftests/ftrace/test.d/ftrace/
A Dfunc_stack_tracer.tc12 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/
A Dfutex.c23 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()
A Dgettime_perf.c51 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/perf/bench/
A Dfutex.h50 futex_syscall(volatile u_int32_t *uaddr, int op, u_int32_t val, struct timespec *timeout, in futex_syscall() argument
53 return syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3); in futex_syscall()
68 futex_wait(u_int32_t *uaddr, u_int32_t val, struct timespec *timeout, int opflags) in futex_wait() argument
70 return futex_syscall(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags); in futex_wait()
87 futex_lock_pi(u_int32_t *uaddr, struct timespec *timeout, int opflags) in futex_lock_pi() argument
89 return futex_syscall(uaddr, FUTEX_LOCK_PI, 0, timeout, NULL, 0, opflags); in futex_lock_pi()
124 struct timespec *timeout, int opflags) in futex_wait_requeue_pi() argument
126 return futex_syscall(uaddr, FUTEX_WAIT_REQUEUE_PI, val, timeout, uaddr2, 0, in futex_wait_requeue_pi()
/tools/testing/selftests/futex/include/
A Dfutextest.h81 #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/vsock/
A Dtimeout.c27 static volatile bool timeout; variable
37 timeout = true; in sigalrm()
52 if (timeout) { in timeout_check()
62 timeout = false; in timeout_end()
A DMakefile4 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
10 vsock_uring_test: control.o util.o vsock_uring_test.o timeout.o msg_zerocopy_common.o
/tools/testing/selftests/alsa/
A Dglobal-timer.c21 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/
A Dsetup.c59 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/kselftest_harness/
A Dharness-selftest.expected44 # RUN fixture.timeout ...
45 # harness-selftest.c:53:timeout:setup
46 # harness-selftest.c:77:timeout:before
47 # timeout: Test terminated by timeout
48 # FAIL fixture.timeout
49 not ok 7 fixture.timeout
/tools/testing/selftests/mm/
A Dksm_tests.c207 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan()
217 struct timespec start_time, int timeout) in ksm_merge_pages() argument
235 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages()
242 struct timespec start_time, int timeout) in ksm_unmerge_pages() argument
321 long page_count, int timeout, size_t page_size) in check_ksm_merge() argument
378 if (ksm_do_scan(1, start_time, timeout)) in check_ksm_unmerge()
395 int timeout, bool use_zero_pages, size_t page_size) in check_ksm_zero_page_merge() argument
524 int timeout, size_t map_size) in ksm_merge_hugepages_time() argument
571 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_hugepages_time()
612 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_time()
[all …]
/tools/testing/selftests/powerpc/
A Dharness.c25 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/lib/py/
A Dutils.py20 def fd_read_timeout(fd, timeout): argument
21 rlist, _, _ = select.select([fd], [], [], timeout)
35 host=None, timeout=5, ksft_wait=None): argument
71 self.process(terminate=False, fail=fail, timeout=timeout)
73 def process(self, terminate=True, fail=None, timeout=5): argument
81 stdout, stderr = self.proc.communicate(timeout)
192 def bpftrace(expr, json=None, ns=None, host=None, timeout=None): argument
206 if timeout:
207 expr += ' interval:s:' + str(timeout) + ' { exit(); }'
/tools/testing/selftests/ftrace/
A Dpoll.c26 int timeout = -1; in main() local
38 timeout = atoi(optarg); in main()
62 ret = poll(&pfd, 1, timeout); in main()
/tools/testing/selftests/futex/functional/
A Dfutex_priv_hash.c113 struct timespec timeout; in futex_dummy_op() local
117 clock_gettime(CLOCK_REALTIME, &timeout); in futex_dummy_op()
118 timeout.tv_nsec += 100 * MSEC_IN_NSEC; in futex_dummy_op()
119 if (timeout.tv_nsec >= SEC_IN_NSEC) { in futex_dummy_op()
120 timeout.tv_nsec -= SEC_IN_NSEC; in futex_dummy_op()
121 timeout.tv_sec++; in futex_dummy_op()
123 ret = pthread_mutex_timedlock(&lock, &timeout); in futex_dummy_op()
/tools/testing/selftests/net/
A Dxfrm_policy_add_speed.sh6 timeout=4m
59 if ! timeout "$timeout" ip netns exec "$ns" ip -batch "$tmp";then
60 echo "WARNING: policy insertion cancelled after $timeout"
A Dunicast_extensions.sh65 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/
A Dconnect_close.c17 unsigned int timeout; member
20 .timeout = RUNTIME,
37 alarm(opts.timeout); in set_timeout()
113 opts.timeout = atoi(optarg); in parse_opts()
A Dconntrack_resize.sh284 ct_pingflood "$n" "$timeout" "floodresize" &
285 ct_udpflood "$n" "$timeout" &
286 ct_udpclash "$n" "$timeout" &
289 ctflush "$n" "$timeout" &
290 ct_nulldump_loop "$n" "$timeout" &
291 ct_change_timeouts_loop "$n" "$timeout" &
298 local timeout=20
310 ctresize "$timeout"
386 local timeout=3
396 ct_pingflood "$nsclient1" $timeout "dumpall" &
[all …]
/tools/testing/selftests/resctrl/
A Dsettings2 # the future, increase timeout here.
3 timeout=120
/tools/testing/selftests/net/mptcp/
A Ddiag.sh99 local timeout=20
107 while [ $i -lt $timeout ]; do
116 if [ $i -ge $timeout ]; then
329 timeout ${timeout_test} \
338 timeout ${timeout_test} \
357 timeout ${timeout_test} \
363 timeout ${timeout_test} \
379 timeout ${timeout_test} \
388 timeout ${timeout_test} \
/tools/testing/selftests/pidfd/
A Dpidfd_poll_test.c19 static bool timeout; variable
23 timeout = true; in handle_alarm()
102 if (timeout) in main()
/tools/testing/selftests/turbostat/
A Ddefcolumns.py12 timeout = which('timeout') variable
13 if timeout is None:
32 timeout_argv = [timeout, '--preserve-status', '-s', 'SIGINT', '-k', '3', '1s']

Completed in 33 milliseconds

1234567891011