Home
last modified time | relevance | path

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

12

/linux/kernel/time/
H A Dposix-stubs.c117 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE4()
118 current->restart_block.nanosleep.rmtp = rmtp; in SYSCALL_DEFINE4()
200 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE; in SYSCALL_DEFINE4()
201 current->restart_block.nanosleep.compat_rmtp = rmtp; in SYSCALL_DEFINE4()
H A Dhrtimer.c2267 switch(restart->nanosleep.type) { in nanosleep_copyout()
2270 if (put_old_timespec32(ts, restart->nanosleep.compat_rmtp)) in nanosleep_copyout()
2275 if (put_timespec64(ts, restart->nanosleep.rmtp)) in nanosleep_copyout()
2306 if (restart->nanosleep.type != TT_NONE) { in do_nanosleep()
2324 hrtimer_setup_sleeper_on_stack(&t, restart->nanosleep.clockid, HRTIMER_MODE_ABS); in hrtimer_nanosleep_restart()
2325 hrtimer_set_expires(&t.timer, restart->nanosleep.expires); in hrtimer_nanosleep_restart()
2350 restart->nanosleep.clockid = t.timer.base->clockid; in hrtimer_nanosleep()
2351 restart->nanosleep.expires = hrtimer_get_expires(&t.timer); in hrtimer_nanosleep()
2360 SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp, in SYSCALL_DEFINE2() argument
2372 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE; in SYSCALL_DEFINE2()
[all …]
H A Dalarmtimer.c726 if (restart->nanosleep.type != TT_NONE) { in alarmtimer_do_nsleep()
758 enum alarmtimer_type type = restart->nanosleep.clockid; in alarm_timer_nsleep_restart()
759 ktime_t exp = restart->nanosleep.expires; in alarm_timer_nsleep_restart()
813 restart->nanosleep.clockid = type; in alarm_timer_nsleep()
814 restart->nanosleep.expires = exp; in alarm_timer_nsleep()
/linux/tools/perf/tests/shell/
H A Dtrace_record_replay.sh16 if ! perf trace -i ${file} 2>&1 | grep nanosleep; then
H A Dtest_intel_pt.sh76 nanosleep(&tm, NULL);
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_numa.c124 nanosleep(&ts, NULL); in threadfn()
135 nanosleep(&ts, NULL); in threadfn()
/linux/tools/testing/selftests/timers/
H A D.gitignore9 nanosleep
/linux/tools/testing/selftests/bpf/progs/
H A Dlru_bug.c31 int nanosleep(void *ctx) in nanosleep() function
/linux/Documentation/timers/
H A Dhrtimers.rst59 utilize nanosleep, posix-timers and itimer interfaces. Also, in-kernel
154 - nanosleep
158 The conversion of nanosleep and posix-timers enabled the unification of
159 nanosleep and clock_nanosleep.
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dget_stack_raw_tp.c136 nanosleep(&tv, NULL); in test_get_stack_raw_tp()
/linux/tools/testing/selftests/kvm/x86/
H A Dnx_huge_pages_test.c102 nanosleep(&ts, NULL); in wait_for_reclaim()
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c239 nanosleep(&req, NULL); in wait_for_ack()
379 nanosleep(&req, NULL); in process_one_client()
/linux/include/linux/
H A Dposix-timers.h65 bool nanosleep; member
/linux/tools/include/nolibc/
H A Dtime.h117 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) in sys_clock_nanosleep()
139 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) nanosleep() function
/linux/tools/sched_ext/
H A Dscx_flatcg.c233 nanosleep(&intv_ts, NULL); in main()
/linux/tools/perf/arch/powerpc/entry/syscalls/
H A Dsyscall.tbl211 162 32 nanosleep sys_nanosleep_time32
212 162 64 nanosleep sys_nanosleep
213 162 spu nanosleep sys_nanosleep
/linux/scripts/
H A Dsyscall.tbl129 101 time32 nanosleep sys_nanosleep_time32
130 101 64 nanosleep sys_nanosleep
/linux/tools/scripts/
H A Dsyscall.tbl129 101 time32 nanosleep sys_nanosleep_time32
130 101 64 nanosleep sys_nanosleep
/linux/tools/perf/arch/sparc/entry/syscalls/
H A Dsyscall.tbl299 249 32 nanosleep sys_nanosleep_time32
300 249 64 nanosleep sys_nanosleep
/linux/tools/perf/bench/
H A Depoll-ctl.c198 nanosleep(&ts, NULL); in workerfn()
/linux/tools/testing/selftests/net/netfilter/
H A Dnf_queue.c272 nanosleep(&ts, NULL); in sleep_ms()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c2993 nanosleep(&delay, NULL); in TEST_F()
3018 nanosleep(&delay, NULL);
3052 /* The nanosleep jump target. */ in TEST()
3096 /* Start nanosleep to be interrupted. */ in TEST()
3099 EXPECT_EQ(0, nanosleep(&timeout, NULL)) { in TEST()
3100 TH_LOG("Call to nanosleep() failed (errno %d: %s)", in TEST()
3125 /* Wait for nanosleep() to start. */ in TEST()
3144 /* Interrupt nanosleep with SIGSTOP (which we'll need to handle). */ in TEST()
3159 /* Restart nanosleep with SIGCONT, which triggers restart_syscall. */ in TEST()
4255 nanosleep( in TEST()
[all...]
/linux/tools/perf/tests/
H A Dswitch-tracking.c56 err = nanosleep(&ts, NULL); in spin_sleep()
/linux/tools/testing/selftests/rtc/
H A Drtctest.c86 while (nanosleep(&req, &rem) != 0) { in nanosleep_with_retries()
/linux/tools/testing/selftests/cgroup/
H A Dtest_cpu.c157 ret = nanosleep(&ts_remaining, NULL); in hog_cpus_timed()

12