Home
last modified time | relevance | path

Searched refs:ts1 (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dtime_tai.c37 __u64 ts1, ts2, now; in test_time_tai() local
51 ts1 = skb.tstamp; in test_time_tai()
55 ASSERT_NEQ(ts1, 0, "tai_ts1"); in test_time_tai()
59 ASSERT_GE(ts2, ts1, "tai_forward"); in test_time_tai()
66 ASSERT_TRUE(now > ts1, "tai_future_ts1"); in test_time_tai()
70 ASSERT_TRUE(now - ts1 < TAI_THRESHOLD, "tai_range_ts1"); in test_time_tai()
A Dfexit_sleep.c14 struct timespec ts1 = { .tv_nsec = 1 }; in do_sleep() local
18 (void)syscall(__NR_nanosleep, &ts1, NULL); in do_sleep()
/tools/testing/selftests/bpf/progs/
A Dtest_time_tai.c12 __u64 ts1, ts2; in time_tai() local
15 ts1 = bpf_ktime_get_tai_ns(); in time_tai()
19 skb->tstamp = ts1; in time_tai()
/tools/testing/selftests/timers/
A Dfreq-step.c43 static double diff_timespec(struct timespec *ts1, struct timespec *ts2) in diff_timespec() argument
45 return ts1->tv_sec - ts2->tv_sec + (ts1->tv_nsec - ts2->tv_nsec) / 1e9; in diff_timespec()
51 struct timespec ts1, ts2, ts3; in get_sample() local
55 clock_gettime(CLOCK_MONOTONIC_RAW, &ts1); in get_sample()
59 ts1.tv_sec -= mono_raw_base; in get_sample()
63 delay = diff_timespec(&ts3, &ts1); in get_sample()
70 sample->offset = diff_timespec(&ts2, &ts1); in get_sample()
72 sample->time = ts1.tv_sec + ts1.tv_nsec / 1e9; in get_sample()
/tools/testing/selftests/kvm/lib/
A Dtest_util.c95 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() argument
97 int64_t ns1 = timespec_to_ns(ts1); in timespec_add()
102 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument
104 int64_t ns1 = timespec_to_ns(ts1); in timespec_sub()
/tools/testing/selftests/mm/
A Dmigration.c70 struct timespec ts1, ts2; in migrate() local
73 if (clock_gettime(CLOCK_MONOTONIC, &ts1)) in migrate()
80 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME) in migrate()
/tools/testing/selftests/kvm/include/
A Dtest_util.h85 struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
86 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
/tools/testing/selftests/bpf/benchs/
A Dbench_sockmap.c438 struct timespec ts1, ts2; in producer() local
462 clock_gettime(CLOCK_MONOTONIC, &ts1); in producer()
474 if (ts2.tv_sec - ts1.tv_sec > ctx.prod_run_time) in producer()

Completed in 15 milliseconds