Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_vmlinux.c22 long tv_nsec; in handle__tp() local
28 if (bpf_probe_read_user(&tv_nsec, sizeof(ts->tv_nsec), &ts->tv_nsec) || in handle__tp()
29 tv_nsec != MY_TV_NSEC) in handle__tp()
40 long tv_nsec; in BPF_PROG() local
46 if (bpf_probe_read_user(&tv_nsec, sizeof(ts->tv_nsec), &ts->tv_nsec) || in BPF_PROG()
47 tv_nsec ! in BPF_PROG()
58 long tv_nsec; BPF_PROG() local
[all...]
/linux/fs/ext4/
H A Dinode-test.c89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L},
97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L},
113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L},
121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L},
129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L},
137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L},
145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L},
153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L},
161 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L},
169 .expected = {.tv_sec = 0x200000000LL, .tv_nsec = 0L},
[all …]
/linux/fs/fat/
H A Dfat_test.c82 .ts = {.tv_sec = 315532800LL, .tv_nsec = 0L},
90 .ts = {.tv_sec = 4354819198LL, .tv_nsec = 0L},
98 .ts = {.tv_sec = 315493200LL, .tv_nsec = 0L},
106 .ts = {.tv_sec = 4354858798LL, .tv_nsec = 0L},
114 .ts = {.tv_sec = 825552000LL, .tv_nsec = 0L},
122 .ts = {.tv_sec = 951782400LL, .tv_nsec = 0L},
130 .ts = {.tv_sec = 4107542400LL, .tv_nsec = 0L},
138 .ts = {.tv_sec = 1078014600LL, .tv_nsec = 0L},
146 .ts = {.tv_sec = 1078097400LL, .tv_nsec = 0L},
154 .ts = {.tv_sec = 946684799LL, .tv_nsec = 0L},
[all …]
/linux/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c360 (middle.tv_nsec - start.tv_nsec); \
361 send_total.tv_nsec += nsec; \
362 if (send_total.tv_nsec >= 1000000000) { \
364 send_total.tv_nsec -= 1000000000; \
367 (end.tv_nsec - middle.tv_nsec); \
368 recv_total.tv_nsec += nsec; \
369 if (recv_total.tv_nsec >= 1000000000) { \
371 recv_total.tv_nsec -= 1000000000; \
451 printf("\t\tClock resolution:\t\t%lu nsec%s\n", res.tv_nsec, in perf_test_thread()
452 res.tv_nsec > 1 ? "s" : ""); in perf_test_thread()
[all …]
/linux/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c72 ts_diff.tv_nsec); in vcpu_worker()
76 ts_diff.tv_nsec); in vcpu_worker()
91 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
166 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
173 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
196 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
204 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
214 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
231 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test()
[all...]
/linux/tools/testing/selftests/timers/
H A Dnanosleep.c40 if (a.tv_nsec > b.tv_nsec) in clockstring()
47 ts.tv_nsec += ns; in clockstring()
48 while (ts.tv_nsec >= NSEC_PER_SEC) { in clockstring()
49 ts.tv_nsec -= NSEC_PER_SEC; in clockstring()
74 rel.tv_nsec = 0; in in_order()
107 itimer.it_value.tv_nsec = NSEC_PER_SEC / 4; in nanosleep_test()
112 rqtp.tv_nsec = NSEC_PER_SEC / 2; in nanosleep_test()
H A Dposix_timers.c86 diff += ((int) t1.tv_nsec - (int) t2.tv_nsec); in check_diff()
191 .it_value.tv_nsec = 1000 * 1000, in ctd_thread_func()
193 .it_interval.tv_nsec = 1000 * 1000, in ctd_thread_func()
312 its.it_value.tv_nsec = 100000000; in check_sig_ign()
314 its.it_interval.tv_nsec = 100000000; in check_sig_ign()
385 its.it_value.tv_nsec = 100000000; in check_rearm()
387 its.it_interval.tv_nsec = 100000000; in check_rearm()
395 its.it_value.tv_nsec = 0; in check_rearm()
397 its.it_interval.tv_nsec in check_rearm()
[all...]
H A Dleap-a-day.c69 if (a.tv_nsec > b.tv_nsec) in in_order()
76 ts.tv_nsec += ns; in timespec_add()
77 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
78 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
304 its1.it_value.tv_nsec = 0; in main()
306 its1.it_interval.tv_nsec = 0; in main()
311 ts.tv_nsec = 0; in main()
344 tai.tv_nsec, in main()
359 ts.tv_nsec in main()
[all...]
H A Dnsleep-lat.c34 ts.tv_nsec += ns;
35 while (ts.tv_nsec >= NSEC_PER_SEC) {
36 ts.tv_nsec -= NSEC_PER_SEC;
45 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in clockstring()
47 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in clockstring()
58 target.tv_nsec = ns%NSEC_PER_SEC; in clockstring()
H A Dmqueue-lat.c42 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
44 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
50 ts.tv_nsec += ns; in timespec_add()
51 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
52 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
H A Dalarmtimer-suspend.c44 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in clockstring()
46 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in clockstring()
64 ts.tv_nsec, delta_ns); in clockstring()
107 start_time.tv_sec, start_time.tv_nsec); in main()
112 its1.it_interval.tv_nsec = 0; in main()
H A Dinconsistency-check.c47 if (a.tv_nsec > b.tv_nsec) in clockstring()
90 list[i].tv_nsec); in consistency_test()
95 delta += list[inconsistent].tv_nsec; in consistency_test()
97 delta -= list[inconsistent+1].tv_nsec; in consistency_test()
/linux/sound/core/seq/
H A Dseq_timer.h78 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
86 while (tm->tv_nsec >= 1000000000) { in snd_seq_sanity_real_time()
88 tm->tv_nsec -= 1000000000; in snd_seq_sanity_real_time()
98 tm->tv_nsec += inc->tv_nsec; in snd_seq_inc_real_time()
104 tm->tv_nsec += nsec; in snd_seq_inc_time_nsec()
/linux/tools/testing/radix-tree/
H A Dbenchmark.c39 (finish.tv_nsec - start.tv_nsec); in benchmark_iter()
67 (finish.tv_nsec - start.tv_nsec); in benchmark_insert()
88 (finish.tv_nsec - start.tv_nsec); in benchmark_tagging()
109 (finish.tv_nsec - start.tv_nsec); in benchmark_delete()
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_wait_wouldblock.c34 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in TEST()
50 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in TEST()
66 to.tv_nsec += timeout_ns; in TEST()
68 if (to.tv_nsec >= 1000000000) { in TEST()
70 to.tv_nsec -= 1000000000; in TEST()
/linux/drivers/input/misc/
H A Dhp_sdc_rtc.c194 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_rt()
211 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_fhs()
228 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_mt()
245 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_dt()
262 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_ct()
291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
305 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
312 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
319 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
/linux/tools/include/nolibc/sys/
H A Dstat.h64 buf->st_atim.tv_nsec = statx.stx_atime.tv_nsec; in fstatat()
66 buf->st_mtim.tv_nsec = statx.stx_mtime.tv_nsec; in fstatat()
68 buf->st_ctim.tv_nsec = statx.stx_ctime.tv_nsec; in fstatat()
/linux/tools/testing/selftests/timens/
H A Dfutex.c30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test()
31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test()
33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test()
51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout.tv_nsec)) { in run_test()
/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_correctness.c37 long long tv_nsec;
234 return a->tv_nsec <= b->tv_nsec; in ts64_leq()
243 return a->tv_nsec <= b->tv_nsec; in tv_leq()
302 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime()
303 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime()
304 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime()
364 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime64()
365 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime64()
43 long long tv_nsec; global() member
[all...]
H A Dvdso_test_abi.c32 uint64_t tv_nsec; member
99 (long long)ts.tv_sec, (long long)ts.tv_nsec); in vdso_test_clock_gettime64()
126 (long long)ts.tv_sec, (long long)ts.tv_nsec); in vdso_test_clock_gettime()
178 (long long)ts.tv_sec, (long long)ts.tv_nsec); in vdso_test_clock_getres()
186 (long long)sys_ts.tv_sec, (long long)sys_ts.tv_nsec); in vdso_test_clock_getres()
188 if ((sys_ts.tv_sec != ts.tv_sec) || (sys_ts.tv_nsec != ts.tv_nsec)) in vdso_test_clock_getres()
221 (long long)ts.tv_sec, (long long)ts.tv_nsec); in main()
229 (long long)sys_ts.tv_sec, (long long)sys_ts.tv_nsec); in main()
231 if ((sys_ts.tv_sec != ts.tv_sec) || (sys_ts.tv_nsec ! in main()
[all...]
H A Dvdso_test_getrandom.c35 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
36 if ((vsp)->tv_nsec < 0) { \
38 (vsp)->tv_nsec += 1000000000L; \
184 printf(" vdso: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
190 printf(" libc: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
196 printf("syscall: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
211 …printf(" vdso: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec in bench_multi()
220 …printf(" libc: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec in bench_multi()
229 …tf(" syscall: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec); in bench_multi()
/linux/fs/coda/
H A Dcoda_linux.c73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
83 .tv_nsec = ts64.tv_nsec, in timespec64_to_coda()
155 vattr->va_atime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
157 vattr->va_mtime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
159 vattr->va_ctime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
/linux/arch/um/os-Linux/
H A Dtime.c26 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
66 its.it_value.tv_nsec = nsecs % UM_NSEC_PER_SEC; in os_timer_set_interval()
69 its.it_interval.tv_nsec = nsecs % UM_NSEC_PER_SEC; in os_timer_set_interval()
81 .it_value.tv_nsec = nsecs % UM_NSEC_PER_SEC, in os_timer_one_shot()
84 .it_interval.tv_nsec = 0, // we cheat here in os_timer_one_shot()
/linux/tools/testing/selftests/cgroup/
H A Dtest_cpu.c112 .tv_nsec = 0, in timespec_sub()
121 if (lhs->tv_nsec < rhs->tv_nsec) { in timespec_sub()
126 ret.tv_nsec = NSEC_PER_SEC - rhs->tv_nsec + lhs->tv_nsec; in timespec_sub()
128 ret.tv_nsec = lhs->tv_nsec - rhs->tv_nsec; in timespec_sub()
154 while (ts_remaining.tv_sec > 0 || ts_remaining.tv_nsec > 0) { in hog_cpus_timed()
210 .tv_nsec = 0, in test_cpucg_stats()
274 .tv_nsec = 0, in test_cpucg_nice()
385 .tv_nsec = 0, in weight_hog_ncpus()
547 .tv_nsec = 0, in run_cpucg_nested_weight_test()
704 .tv_nsec = duration_usec % USEC_PER_SEC * NSEC_PER_USEC, in test_cpucg_max()
[all …]
/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_init_perf_test.c69 return (s64)ts.tv_nsec + NSEC_PER_SEC * (s64)ts.tv_sec; in to_ns()
75 .tv_nsec = ns % NSEC_PER_SEC, in to_timespec()
148 wall_time.tv_sec, wall_time.tv_nsec); in TEST_F()
150 min.tv_sec, min.tv_nsec); in TEST_F()
152 max.tv_sec, max.tv_nsec); in TEST_F()
154 avg.tv_sec, avg.tv_nsec); in TEST_F()

12345678910>>...12