Home
last modified time | relevance | path

Searched refs:timerfd (Results 1 - 25 of 60) sorted by relevance

123

/test/xts/hats/kernel/syscalls/timer/timerfdcreate/
H A DTimerFdCreateApiTest.cpp21 #include <sys/timerfd.h>
57 int timerfd = timerfd_create(CLOCK_REALTIME, 0); in HWTEST_F() local
58 EXPECT_NE(timerfd, -1); in HWTEST_F()
66 EXPECT_EQ(timerfd_settime(timerfd, 0, &newValue, nullptr), 0); in HWTEST_F()
69 EXPECT_EQ(read(timerfd, &expirations, sizeof(expirations)), sizeof(expirations)); in HWTEST_F()
72 int ret = timerfd_gettime(timerfd, &oldValue); in HWTEST_F()
76 close(timerfd); in HWTEST_F()
89 int timerfd = timerfd_create(CLOCK_MONOTONIC, 0); in HWTEST_F() local
90 EXPECT_NE(timerfd, -1); in HWTEST_F()
96 EXPECT_EQ(timerfd_settime(timerfd, in HWTEST_F()
115 int timerfd = timerfd_create(CLOCK_BOOTTIME, 0); HWTEST_F() local
142 int timerfd = timerfd_create(CLOCK_REALTIME_ALARM, 0); HWTEST_F() local
169 int timerfd = timerfd_create(CLOCK_BOOTTIME_ALARM, 0); HWTEST_F() local
195 int timerfd = timerfd_create(CLOCK_REALTIME, TFD_NONBLOCK); HWTEST_F() local
224 int timerfd = timerfd_create(CLOCK_REALTIME, 0); HWTEST_F() local
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dtimerfd_create.c17 #include <sys/timerfd.h>
29 int timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in timerfd_create_0100() local
30 if (timerfd == -1 || errno != 0) { in timerfd_create_0100()
31 t_error("%s timerfd create failed", __func__); in timerfd_create_0100()
34 close(timerfd); in timerfd_create_0100()
45 int timerfd = timerfd_create(CLOCK_REALTIME, 0); in timerfd_create_0200() local
46 if (timerfd == -1 || errno != 0) { in timerfd_create_0200()
47 t_error("%s timerfd create failed", __func__); in timerfd_create_0200()
50 close(timerfd); in timerfd_create_0200()
60 int timerfd in timerfd_create_0300() local
[all...]
H A Dtimerfd_settime.c18 #include <sys/timerfd.h>
68 t_error("%s timerfd error\n"); in timerfd_settime_0100()
119 t_error("%s timerfd error\n"); in timerfd_settime64_0100()
H A Dtimerfd_gettime.c20 #include <sys/timerfd.h>
64 t_error("%s timerfd error"); in timerfd_gettime_0100()
70 * @tc.desc : arms the timerfd with invalid parameters
116 t_error("%s timerfd error"); in timerfd_gettime64_0100()
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/
H A Dlinux_timerfd_create_test.cpp2 #include <sys/timerfd.h>
13 * @tc.desc: This test verifies timerfd the create function is using CLOCK During MONOTONIC, the timer file descriptor
20 int timerfd = timerfd_create(CLOCK_MONOTONIC, 0); in HWTEST_F() local
21 EXPECT_GE(timerfd, 0); in HWTEST_F()
22 close(timerfd); in HWTEST_F()
H A Dlinux_timerfd_settime_test.cpp2 #include <sys/timerfd.h>
/kernel/linux/linux-5.10/tools/testing/selftests/breakpoints/
H A Dstep_after_suspend_test.c18 #include <sys/timerfd.h>
134 int timerfd; in suspend() local
147 timerfd = timerfd_create(CLOCK_BOOTTIME_ALARM, 0); in suspend()
148 if (timerfd < 0) in suspend()
152 err = timerfd_settime(timerfd, 0, &spec, NULL); in suspend()
159 close(timerfd); in suspend()
/kernel/linux/linux-6.6/tools/testing/selftests/breakpoints/
H A Dstep_after_suspend_test.c18 #include <sys/timerfd.h>
134 int timerfd; in suspend() local
147 timerfd = timerfd_create(CLOCK_BOOTTIME_ALARM, 0); in suspend()
148 if (timerfd < 0) in suspend()
152 err = timerfd_settime(timerfd, 0, &spec, NULL); in suspend()
159 close(timerfd); in suspend()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dtimerfdndk.cpp18 #include <sys/timerfd.h>
38 int timerfd = timerfd_create(NUMBER, NUMBER); in Timerfd_create() local
40 napi_create_int32(env, timerfd, &result); in Timerfd_create()
41 close(timerfd); in Timerfd_create()
/third_party/rust/crates/rustix/src/time/
H A Dmod.rs6 mod timerfd; modules
17 pub use timerfd::{
/kernel/linux/linux-5.10/include/linux/
H A Dtimerfd.h3 * include/linux/timerfd.h
12 #include <uapi/linux/timerfd.h>
/kernel/linux/linux-5.10/tools/build/feature/
H A Dtest-timerfd.c3 * test for timerfd functions used by perf-kvm-stat-live
5 #include <sys/timerfd.h>
/kernel/linux/linux-6.6/include/linux/
H A Dtimerfd.h3 * include/linux/timerfd.h
12 #include <uapi/linux/timerfd.h>
/kernel/linux/linux-6.6/tools/build/feature/
H A Dtest-timerfd.c3 * test for timerfd functions used by perf-kvm-stat-live
5 #include <sys/timerfd.h>
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
H A DMakefile1 TEST_GEN_PROGS := timens timerfd timer clock_nanosleep procfs exec futex
/kernel/linux/linux-6.6/tools/testing/selftests/timens/
H A DMakefile1 TEST_GEN_PROGS := timens timerfd timer clock_nanosleep procfs exec futex vfork_exec
/third_party/rust/crates/rustix/tests/time/
H A Dmain.rs12 mod timerfd; modules
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-kvm.c30 #include <sys/timerfd.h>
855 kvm->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); in perf_kvm__timerfd_create()
856 if (kvm->timerfd < 0) { in perf_kvm__timerfd_create()
866 if (timerfd_settime(kvm->timerfd, 0, &new_value, NULL) != 0) { in perf_kvm__timerfd_create()
868 close(kvm->timerfd); in perf_kvm__timerfd_create()
882 rc = read(kvm->timerfd, &c, sizeof(uint64_t)); in perf_kvm__handle_timerfd()
971 if (evlist__add_pollfd(kvm->evlist, kvm->timerfd) < 0) in kvm_events_live_report()
1011 if (kvm->timerfd >= 0) in kvm_events_live_report()
1012 close(kvm->timerfd); in kvm_events_live_report()
/third_party/ltp/include/lapi/
H A Dtimerfd.h15 #include <sys/timerfd.h>
/third_party/musl/compat/time32/
H A Dtimerfd_gettime32.c3 #include <sys/timerfd.h>
H A Dtimerfd_settime32.c3 #include <sys/timerfd.h>
/kernel/linux/linux-6.6/arch/um/drivers/
H A Drtc_user.c14 #include <sys/timerfd.h>
41 /* apparently timerfd won't send SIGIO, use workaround */ in uml_rtc_start()
/kernel/linux/linux-6.6/samples/bpf/
H A Dxdp_sample_user.c30 #include <sys/timerfd.h>
1497 static int sample_timer_cb(int timerfd, struct stats_record **rec, in sample_timer_cb() argument
1504 ret = read(timerfd, &t, sizeof(t)); in sample_timer_cb()
1537 int timerfd, ret; in sample_run() local
1547 timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK); in sample_run()
1548 if (timerfd < 0) in sample_run()
1550 timerfd_settime(timerfd, 0, &its, NULL); in sample_run()
1555 pfd[1].fd = timerfd; in sample_run()
1582 ret = sample_timer_cb(timerfd, &rec, &prev); in sample_run()
1596 close(timerfd); in sample_run()
[all...]
/test/xts/hats/kernel/syscalls/async/ppoll/
H A DPpollApiTest.cpp33 #include <sys/timerfd.h>
/test/xts/hats/kernel/syscalls/async/pselect/
H A DPselectApiTest.cpp32 #include <sys/timerfd.h>

Completed in 10 milliseconds

123