Searched refs:ts2 (Results 1 – 8 of 8) sorted by relevance
| /tools/testing/selftests/bpf/progs/ |
| A D | test_time_tai.c | 12 __u64 ts1, ts2; in time_tai() local 16 ts2 = bpf_ktime_get_tai_ns(); in time_tai() 20 skb->cb[0] = ts2 & 0xffffffff; in time_tai() 21 skb->cb[1] = ts2 >> 32; in time_tai()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | time_tai.c | 37 __u64 ts1, ts2, now; in test_time_tai() local 52 ts2 = skb.cb[0] | ((__u64)skb.cb[1] << 32); in test_time_tai() 56 ASSERT_NEQ(ts2, 0, "tai_ts2"); in test_time_tai() 59 ASSERT_GE(ts2, ts1, "tai_forward"); in test_time_tai() 67 ASSERT_TRUE(now > ts2, "tai_future_ts2"); in test_time_tai() 71 ASSERT_TRUE(now - ts2 < TAI_THRESHOLD, "tai_range_ts2"); in test_time_tai()
|
| A D | fexit_sleep.c | 15 struct timespec ts2 = { .tv_sec = 10 }; in do_sleep() local 19 (void)syscall(__NR_nanosleep, &ts2, NULL); in do_sleep()
|
| /tools/testing/selftests/timers/ |
| A D | freq-step.c | 43 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 56 clock_gettime(CLOCK_MONOTONIC, &ts2); in get_sample() 60 ts2.tv_sec -= mono_base; in get_sample() 70 sample->offset = diff_timespec(&ts2, &ts1); in get_sample()
|
| /tools/testing/selftests/kvm/lib/ |
| A D | test_util.c | 95 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() argument 98 int64_t ns2 = timespec_to_ns(ts2); in timespec_add() 102 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument 105 int64_t ns2 = timespec_to_ns(ts2); in timespec_sub()
|
| /tools/testing/selftests/mm/ |
| A D | migration.c | 70 struct timespec ts1, ts2; in migrate() local 77 if (clock_gettime(CLOCK_MONOTONIC, &ts2)) in migrate() 80 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME) in migrate()
|
| /tools/testing/selftests/kvm/include/ |
| A D | test_util.h | 85 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 D | bench_sockmap.c | 438 struct timespec ts1, ts2; in producer() local 473 clock_gettime(CLOCK_MONOTONIC, &ts2); in producer() 474 if (ts2.tv_sec - ts1.tv_sec > ctx.prod_run_time) in producer()
|
Completed in 13 milliseconds