arch/um/os-Linux/time.c
105
struct timespec ts;
arch/um/os-Linux/time.c
24
static inline long long timespec_to_ns(const struct timespec *ts)
arch/um/os-Linux/time.c
31
struct timespec realtime_tp;
fs/btrfs/print-tree.c
239
struct btrfs_timespec *timespec,
fs/btrfs/print-tree.c
242
const u64 secs = btrfs_timespec_sec(eb, timespec);
fs/btrfs/print-tree.c
243
const u32 nsecs = btrfs_timespec_nsec(eb, timespec);
include/linux/restart_block.h
13
struct timespec;
include/linux/signal.h
277
struct timespec;
include/linux/syscalls.h
51
struct timespec;
include/linux/syscalls.h
588
unsigned int flags, struct __kernel_timespec __user *timespec,
include/uapi/linux/errqueue.h
60
struct timespec ts[3];
include/uapi/linux/sockios.h
47
#define SIOCGSTAMPNS ((sizeof(struct timespec)) == 8 ? \
include/uapi/linux/time.h
23
struct timespec it_interval;/* timer period */
include/uapi/linux/time.h
24
struct timespec it_value; /* timer expiration */
include/uapi/linux/videodev2.h
2625
struct timespec timestamp;
include/uapi/sound/asound.h
1049
struct timespec tstamp;
include/uapi/sound/asound.h
484
struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
include/uapi/sound/asound.h
485
struct timespec tstamp; /* reference timestamp */
include/uapi/sound/asound.h
494
struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */
include/uapi/sound/asound.h
495
struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */
include/uapi/sound/asound.h
497
unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */
include/uapi/sound/asound.h
513
#define __snd_timespec64 timespec
include/uapi/sound/asound.h
523
#define __snd_timespec timespec
include/uapi/sound/asound.h
788
struct timespec tstamp; /* Timestamp */
include/uapi/sound/asound.h
973
struct timespec tstamp; /* Timestamp - last update */
samples/bpf/map_perf_test_user.c
27
struct timespec ts;
samples/bpf/trace_output_user.c
11
struct timespec ts;
samples/bpf/tracex4_user.c
22
struct timespec ts;
samples/bpf/xdp_sample_user.c
1533
struct timespec ts = { interval, 0 };
samples/bpf/xdp_sample_user.c
194
struct timespec t;
tools/bpf/bpftool/prog.c
162
struct timespec real_time_ts, boot_time_ts;
tools/include/nolibc/sys/time.h
16
static int sys_clock_gettime(clockid_t clockid, struct timespec *tp);
tools/include/nolibc/sys/time.h
27
struct timespec tp;
tools/include/nolibc/time.h
103
int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *rqtp,
tools/include/nolibc/time.h
104
struct timespec *rmtp)
tools/include/nolibc/time.h
117
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
tools/include/nolibc/time.h
36
int sys_clock_getres(clockid_t clockid, struct timespec *res)
tools/include/nolibc/time.h
48
int clock_getres(clockid_t clockid, struct timespec *res)
tools/include/nolibc/time.h
54
int sys_clock_gettime(clockid_t clockid, struct timespec *tp)
tools/include/nolibc/time.h
66
int clock_gettime(clockid_t clockid, struct timespec *tp)
tools/include/nolibc/time.h
72
int sys_clock_settime(clockid_t clockid, struct timespec *tp)
tools/include/nolibc/time.h
84
int clock_settime(clockid_t clockid, struct timespec *tp)
tools/include/nolibc/time.h
90
int sys_clock_nanosleep(clockid_t clockid, int flags, const struct timespec *rqtp,
tools/include/nolibc/time.h
91
struct timespec *rmtp)
tools/include/nolibc/types.h
151
union { time_t st_atime; struct timespec st_atim; }; /* time of last access */
tools/include/nolibc/types.h
152
union { time_t st_mtime; struct timespec st_mtim; }; /* time of last modification */
tools/include/nolibc/types.h
153
union { time_t st_ctime; struct timespec st_ctim; }; /* time of last status change */
tools/leds/led_hw_brightness_mon.c
31
struct timespec ts;
tools/leds/uledmon.c
27
struct timespec ts;
tools/lib/bpf/ringbuf.c
620
static __u64 ns_elapsed_timespec(const struct timespec *start, const struct timespec *end)
tools/lib/bpf/ringbuf.c
634
struct timespec start;
tools/lib/bpf/ringbuf.c
647
struct timespec curr;
tools/perf/arch/arm64/util/arm-spe.c
640
struct timespec ts;
tools/perf/arch/x86/util/iostat.c
401
char *prefix, struct timespec *ts)
tools/perf/arch/x86/util/iostat.c
456
struct perf_stat_config *config, struct timespec *ts,
tools/perf/bench/epoll-ctl.c
175
struct timespec ts = { .tv_sec = 0,
tools/perf/bench/epoll-wait.c
386
struct timespec ts = { .tv_sec = 0,
tools/perf/bench/futex.h
125
struct timespec *timeout, int opflags)
tools/perf/bench/futex.h
51
futex_syscall(volatile u_int32_t *uaddr, int op, u_int32_t val, struct timespec *timeout,
tools/perf/bench/futex.h
69
futex_wait(u_int32_t *uaddr, u_int32_t val, struct timespec *timeout, int opflags)
tools/perf/bench/futex.h
88
futex_lock_pi(u_int32_t *uaddr, struct timespec *timeout, int opflags)
tools/perf/bench/uprobe.c
149
struct timespec start, end;
tools/perf/builtin-record.c
2261
struct timespec ref_clockid;
tools/perf/builtin-record.c
367
struct timespec timeout = { 0, 1000 * 1000 * 1 }; /* 1ms */
tools/perf/builtin-sched.c
300
struct timespec ts;
tools/perf/builtin-sched.c
318
struct timespec ts;
tools/perf/builtin-stat.c
1086
static void print_counters(struct timespec *ts, int argc, const char **argv)
tools/perf/builtin-stat.c
112
static void print_counters(struct timespec *ts, int argc, const char **argv);
tools/perf/builtin-stat.c
135
static struct timespec ref_time;
tools/perf/builtin-stat.c
2186
struct timespec tsh, *ts = NULL;
tools/perf/builtin-stat.c
227
static inline void diff_timespec(struct timespec *r, struct timespec *a,
tools/perf/builtin-stat.c
228
struct timespec *b)
tools/perf/builtin-stat.c
2675
struct timespec tm;
tools/perf/builtin-stat.c
466
struct timespec ts, rs;
tools/perf/builtin-stat.c
598
static void compute_tts(struct timespec *time_start, struct timespec *time_stop,
tools/perf/builtin-stat.c
602
struct timespec time_diff;
tools/perf/builtin-stat.c
619
struct timespec time_start, time_stop;
tools/perf/jvmti/jvmti_agent.c
108
timespec_to_ns(const struct timespec *ts)
tools/perf/jvmti/jvmti_agent.c
116
struct timespec ts;
tools/perf/tests/switch-tracking.c
28
struct timespec ts;
tools/perf/trace/beauty/include/uapi/sound/asound.h
1049
struct timespec tstamp;
tools/perf/trace/beauty/include/uapi/sound/asound.h
484
struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
tools/perf/trace/beauty/include/uapi/sound/asound.h
485
struct timespec tstamp; /* reference timestamp */
tools/perf/trace/beauty/include/uapi/sound/asound.h
494
struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */
tools/perf/trace/beauty/include/uapi/sound/asound.h
495
struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */
tools/perf/trace/beauty/include/uapi/sound/asound.h
497
unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */
tools/perf/trace/beauty/include/uapi/sound/asound.h
513
#define __snd_timespec64 timespec
tools/perf/trace/beauty/include/uapi/sound/asound.h
523
#define __snd_timespec timespec
tools/perf/trace/beauty/include/uapi/sound/asound.h
788
struct timespec tstamp; /* Timestamp */
tools/perf/trace/beauty/include/uapi/sound/asound.h
973
struct timespec tstamp; /* Timestamp - last update */
tools/perf/trace/beauty/timespec.c
10
struct timespec *ts = (struct timespec *)arg->augmented.args->value;
tools/perf/util/bpf_kwork.c
53
static struct timespec ts_start;
tools/perf/util/bpf_kwork.c
54
static struct timespec ts_end;
tools/perf/util/bpf_kwork_top.c
64
struct timespec ts;
tools/perf/util/bpf_kwork_top.c
74
struct timespec ts;
tools/perf/util/clockid.c
57
struct timespec res;
tools/perf/util/header.c
1919
struct timespec clockid_ns;
tools/perf/util/iostat.c
43
struct timespec *ts __maybe_unused)
tools/perf/util/iostat.c
49
struct timespec *ts __maybe_unused,
tools/perf/util/iostat.h
21
struct timespec;
tools/perf/util/iostat.h
39
char *prefix, struct timespec *ts);
tools/perf/util/iostat.h
44
struct perf_stat_config *config, struct timespec *ts,
tools/perf/util/stat-display.c
1250
struct outstate *os, struct timespec *ts)
tools/perf/util/stat-display.c
1535
struct target *_target, struct timespec *ts,
tools/perf/util/stat.h
14
struct timespec;
tools/perf/util/stat.h
205
struct target *_target, struct timespec *ts, int argc, const char **argv);
tools/perf/util/time-utils.h
45
struct timespec ts;
tools/power/acpi/os_specific/service_layers/osunixxf.c
721
struct timespec time;
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
248
struct timespec end_time;
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
85
static struct timespec start_time;
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
89
struct timespec dbg_time;
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
22
static struct timespec start_time;
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
63
struct timespec end_time;
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
302
struct timespec start, end;
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
54
long long timespec_diff_us(struct timespec start, struct timespec end)
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
56
struct timespec temp;
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
69
extern long long timespec_diff_us(struct timespec start, struct timespec end);
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
351
time_start = calloc(cpu_count, sizeof(struct timespec));
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
352
time_end = calloc(cpu_count, sizeof(struct timespec));
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
36
static struct timespec *time_start, *time_end;
tools/power/x86/turbostat/turbostat.c
491
struct timespec interval_ts = { 5, 0 };
tools/power/x86/turbostat/turbostat.c
6663
struct timespec rest;
tools/sched_ext/scx_flatcg.c
132
struct timespec intv_ts = { .tv_sec = 2, .tv_nsec = 0 };
tools/spi/spidev_test.c
511
struct timespec last_stat;
tools/spi/spidev_test.c
516
struct timespec current;
tools/testing/radix-tree/benchmark.c
18
struct timespec start, finish;
tools/testing/radix-tree/benchmark.c
55
struct timespec start, finish;
tools/testing/radix-tree/benchmark.c
76
struct timespec start, finish;
tools/testing/radix-tree/benchmark.c
97
struct timespec start, finish;
tools/testing/selftests/alsa/pcm-test.c
23
typedef struct timespec timestamp_t;
tools/testing/selftests/bpf/benchs/bench_sockmap.c
439
struct timespec ts1, ts2;
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c
29
struct timespec real_time_ts, boot_time_ts;
tools/testing/selftests/bpf/prog_tests/cgroup_get_current_cgroup_id.c
14
const struct timespec req = {
tools/testing/selftests/bpf/prog_tests/fexit_sleep.c
14
struct timespec ts1 = { .tv_nsec = 1 };
tools/testing/selftests/bpf/prog_tests/fexit_sleep.c
15
struct timespec ts2 = { .tv_sec = 10 };
tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c
93
struct timespec tv = {0, 10};
tools/testing/selftests/bpf/prog_tests/lwt_reroute.c
119
struct timespec now;
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
15
static struct timespec usr_ts;
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
21
static int64_t timespec_to_ns64(struct timespec *ts)
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
38
static void validate_timestamp(struct timespec *cur, struct timespec *prev)
tools/testing/selftests/bpf/prog_tests/net_timestamping.c
51
static struct timespec prev_ts;
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
490
struct timespec pkt_ts = {};
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
492
struct timespec now_ts;
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
593
struct timespec now_ts;
tools/testing/selftests/bpf/prog_tests/test_overhead.c
12
struct timespec ts;
tools/testing/selftests/bpf/prog_tests/time_tai.c
15
static __u64 ts_to_ns(const struct timespec *ts)
tools/testing/selftests/bpf/prog_tests/time_tai.c
36
struct timespec now_tai;
tools/testing/selftests/bpf/prog_tests/vmlinux.c
12
struct timespec ts = { .tv_nsec = MY_TV_NSEC };
tools/testing/selftests/bpf/test_progs.c
178
struct timespec ts = {
tools/testing/selftests/bpf/test_sockmap.c
417
struct timespec start;
tools/testing/selftests/bpf/test_sockmap.c
418
struct timespec end;
tools/testing/selftests/bpf/testing_helpers.h
47
struct timespec t;
tools/testing/selftests/bpf/xdp_hw_metadata.c
187
struct timespec t;
tools/testing/selftests/cgroup/test_cpu.c
107
static struct timespec
tools/testing/selftests/cgroup/test_cpu.c
108
timespec_sub(const struct timespec *lhs, const struct timespec *rhs)
tools/testing/selftests/cgroup/test_cpu.c
110
struct timespec zero = {
tools/testing/selftests/cgroup/test_cpu.c
114
struct timespec ret;
tools/testing/selftests/cgroup/test_cpu.c
137
struct timespec ts_run = param->ts;
tools/testing/selftests/cgroup/test_cpu.c
138
struct timespec ts_remaining = ts_run;
tools/testing/selftests/cgroup/test_cpu.c
139
struct timespec ts_start;
tools/testing/selftests/cgroup/test_cpu.c
155
struct timespec ts_total;
tools/testing/selftests/cgroup/test_cpu.c
166
struct timespec ts_current;
tools/testing/selftests/cgroup/test_cpu.c
32
struct timespec ts;
tools/testing/selftests/drivers/ntsync/ntsync.c
101
struct timespec timeout;
tools/testing/selftests/drivers/ntsync/ntsync.c
144
struct timespec timeout;
tools/testing/selftests/drivers/ntsync/ntsync.c
229
struct timespec timeout;
tools/testing/selftests/drivers/ntsync/ntsync.c
506
struct timespec timeout;
tools/testing/selftests/drivers/ntsync/ntsync.c
730
struct timespec timeout;
tools/testing/selftests/drivers/ntsync/ntsync.c
737
struct timespec timeout;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3214
struct timespec ts;
tools/testing/selftests/filesystems/file_stressor.c
186
ASSERT_EQ(clock_nanosleep(CLOCK_MONOTONIC, 0, &(struct timespec){ .tv_sec = 900 /* 15 min */ }, NULL), 0);
tools/testing/selftests/futex/functional/futex_numa.c
112
struct timespec ts = {
tools/testing/selftests/futex/functional/futex_priv_hash.c
113
struct timespec timeout;
tools/testing/selftests/futex/functional/futex_requeue.c
21
struct timespec to;
tools/testing/selftests/futex/functional/futex_requeue_pi.c
329
struct timespec ts, *tsp = NULL;
tools/testing/selftests/futex/functional/futex_requeue_pi.c
47
struct timespec *timeout;
tools/testing/selftests/futex/functional/futex_wait.c
24
struct timespec to;
tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
40
struct timespec wait_timeout = { .tv_sec = 5, .tv_nsec = 0};
tools/testing/selftests/futex/functional/futex_wait_timeout.c
111
struct timespec to;
tools/testing/selftests/futex/functional/futex_wait_timeout.c
130
struct timespec to;
tools/testing/selftests/futex/functional/futex_wait_timeout.c
171
struct timespec to;
tools/testing/selftests/futex/functional/futex_wait_timeout.c
66
static int futex_get_abs_timeout(clockid_t clockid, struct timespec *to,
tools/testing/selftests/futex/functional/futex_wait_timeout.c
85
struct timespec to;
tools/testing/selftests/futex/functional/futex_wait_wouldblock.c
33
struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns};
tools/testing/selftests/futex/functional/futex_wait_wouldblock.c
50
struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns};
tools/testing/selftests/futex/functional/futex_waitv.c
124
struct timespec to;
tools/testing/selftests/futex/functional/futex_waitv.c
147
struct timespec to;
tools/testing/selftests/futex/functional/futex_waitv.c
171
struct timespec to;
tools/testing/selftests/futex/functional/futex_waitv.c
209
struct timespec to;
tools/testing/selftests/futex/functional/futex_waitv.c
30
struct timespec to;
tools/testing/selftests/futex/functional/robust_list.c
145
struct timespec to;
tools/testing/selftests/futex/include/futex2test.h
67
unsigned long flags, struct timespec *timo, clockid_t clockid)
tools/testing/selftests/futex/include/futex2test.h
85
struct timespec *timeout, clockid_t clockid)
tools/testing/selftests/futex/include/futextest.h
100
futex_wait(futex_t *uaddr, futex_t val, struct timespec *timeout, int opflags)
tools/testing/selftests/futex/include/futextest.h
120
futex_wait_bitset(futex_t *uaddr, futex_t val, struct timespec *timeout,
tools/testing/selftests/futex/include/futextest.h
143
futex_lock_pi(futex_t *uaddr, struct timespec *timeout, int detect,
tools/testing/selftests/futex/include/futextest.h
208
struct timespec *timeout, int opflags)
tools/testing/selftests/hid/hid_bpf.c
434
struct timespec time_to_wait;
tools/testing/selftests/hid/hidraw.c
181
struct timespec time_to_wait;
tools/testing/selftests/intel_pstate/aperf.c
29
struct timespec before, after;
tools/testing/selftests/kvm/access_tracking_perf_test.c
269
struct timespec ts_start;
tools/testing/selftests/kvm/access_tracking_perf_test.c
270
struct timespec ts_elapsed;
tools/testing/selftests/kvm/access_tracking_perf_test.c
363
struct timespec ts_start;
tools/testing/selftests/kvm/access_tracking_perf_test.c
364
struct timespec ts_elapsed;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
287
static void report_stats(struct timespec delta)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
306
struct timespec start, delta;
tools/testing/selftests/kvm/demand_paging_test.c
158
struct timespec start;
tools/testing/selftests/kvm/demand_paging_test.c
159
struct timespec ts_diff;
tools/testing/selftests/kvm/demand_paging_test.c
37
struct timespec start;
tools/testing/selftests/kvm/demand_paging_test.c
38
struct timespec ts_diff;
tools/testing/selftests/kvm/demand_paging_test.c
62
struct timespec start;
tools/testing/selftests/kvm/demand_paging_test.c
63
struct timespec ts_diff;
tools/testing/selftests/kvm/dirty_log_perf_test.c
112
struct timespec start;
tools/testing/selftests/kvm/dirty_log_perf_test.c
113
struct timespec ts_diff;
tools/testing/selftests/kvm/dirty_log_perf_test.c
114
struct timespec get_dirty_log_total = (struct timespec){0};
tools/testing/selftests/kvm/dirty_log_perf_test.c
115
struct timespec vcpu_dirty_total = (struct timespec){0};
tools/testing/selftests/kvm/dirty_log_perf_test.c
116
struct timespec avg;
tools/testing/selftests/kvm/dirty_log_perf_test.c
117
struct timespec clear_dirty_log_total = (struct timespec){0};
tools/testing/selftests/kvm/dirty_log_perf_test.c
42
struct timespec start;
tools/testing/selftests/kvm/dirty_log_perf_test.c
43
struct timespec ts_diff;
tools/testing/selftests/kvm/dirty_log_perf_test.c
44
struct timespec total = (struct timespec){0};
tools/testing/selftests/kvm/dirty_log_perf_test.c
45
struct timespec avg;
tools/testing/selftests/kvm/hardware_disable_test.c
127
const struct timespec wait_period = { .tv_sec = 1 };
tools/testing/selftests/kvm/include/test_util.h
102
int64_t timespec_to_ns(struct timespec ts);
tools/testing/selftests/kvm/include/test_util.h
103
struct timespec timespec_add_ns(struct timespec ts, int64_t ns);
tools/testing/selftests/kvm/include/test_util.h
104
struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
tools/testing/selftests/kvm/include/test_util.h
105
struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
tools/testing/selftests/kvm/include/test_util.h
106
struct timespec timespec_elapsed(struct timespec start);
tools/testing/selftests/kvm/include/test_util.h
107
struct timespec timespec_div(struct timespec ts, int divisor);
tools/testing/selftests/kvm/kvm_page_table_test.c
187
struct timespec start;
tools/testing/selftests/kvm/kvm_page_table_test.c
188
struct timespec ts_diff;
tools/testing/selftests/kvm/kvm_page_table_test.c
345
struct timespec start;
tools/testing/selftests/kvm/kvm_page_table_test.c
346
struct timespec ts_diff;
tools/testing/selftests/kvm/lib/test_util.c
102
struct timespec timespec_add(struct timespec ts1, struct timespec ts2)
tools/testing/selftests/kvm/lib/test_util.c
106
return timespec_add_ns((struct timespec){0}, ns1 + ns2);
tools/testing/selftests/kvm/lib/test_util.c
109
struct timespec timespec_sub(struct timespec ts1, struct timespec ts2)
tools/testing/selftests/kvm/lib/test_util.c
113
return timespec_add_ns((struct timespec){0}, ns1 - ns2);
tools/testing/selftests/kvm/lib/test_util.c
116
struct timespec timespec_elapsed(struct timespec start)
tools/testing/selftests/kvm/lib/test_util.c
118
struct timespec end;
tools/testing/selftests/kvm/lib/test_util.c
124
struct timespec timespec_div(struct timespec ts, int divisor)
tools/testing/selftests/kvm/lib/test_util.c
128
return timespec_add_ns((struct timespec){0}, ns);
tools/testing/selftests/kvm/lib/test_util.c
86
int64_t timespec_to_ns(struct timespec ts)
tools/testing/selftests/kvm/lib/test_util.c
91
struct timespec timespec_add_ns(struct timespec ts, int64_t ns)
tools/testing/selftests/kvm/lib/test_util.c
93
struct timespec res;
tools/testing/selftests/kvm/lib/userfaultfd_util.c
31
struct timespec start;
tools/testing/selftests/kvm/lib/userfaultfd_util.c
32
struct timespec ts_diff;
tools/testing/selftests/kvm/memslot_perf_test.c
1042
struct timespec slot_runtime, guest_runtime, iter_runtime;
tools/testing/selftests/kvm/memslot_perf_test.c
179
struct timespec ts;
tools/testing/selftests/kvm/memslot_perf_test.c
286
struct timespec *slot_runtime)
tools/testing/selftests/kvm/memslot_perf_test.c
291
struct timespec tstart;
tools/testing/selftests/kvm/memslot_perf_test.c
804
struct timespec *slot_runtime,
tools/testing/selftests/kvm/memslot_perf_test.c
805
struct timespec *guest_runtime)
tools/testing/selftests/kvm/memslot_perf_test.c
810
struct timespec tstart;
tools/testing/selftests/kvm/mmu_stress_test.c
232
static void rendezvous_with_vcpus(struct timespec *time, const char *name)
tools/testing/selftests/kvm/mmu_stress_test.c
284
struct timespec time_start, time_run1, time_reset, time_run2, time_ro, time_rw;
tools/testing/selftests/kvm/set_memory_region_test.c
97
struct timespec ts;
tools/testing/selftests/kvm/steal_time.c
404
struct timespec ts, stop;
tools/testing/selftests/kvm/x86/kvm_clock_test.c
85
struct timespec ts;
tools/testing/selftests/kvm/x86/nx_huge_pages_test.c
97
struct timespec ts;
tools/testing/selftests/mm/hmm-tests.c
266
struct timespec t;
tools/testing/selftests/mm/ksm_tests.c
191
static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout)
tools/testing/selftests/mm/ksm_tests.c
193
struct timespec cur_time;
tools/testing/selftests/mm/ksm_tests.c
217
struct timespec start_time, int timeout)
tools/testing/selftests/mm/ksm_tests.c
242
struct timespec start_time, int timeout)
tools/testing/selftests/mm/ksm_tests.c
324
struct timespec start_time;
tools/testing/selftests/mm/ksm_tests.c
357
struct timespec start_time;
tools/testing/selftests/mm/ksm_tests.c
398
struct timespec start_time;
tools/testing/selftests/mm/ksm_tests.c
463
struct timespec start_time;
tools/testing/selftests/mm/ksm_tests.c
527
struct timespec start_time, end_time;
tools/testing/selftests/mm/ksm_tests.c
599
struct timespec start_time, end_time;
tools/testing/selftests/mm/ksm_tests.c
640
struct timespec start_time, end_time;
tools/testing/selftests/mm/ksm_tests.c
687
struct timespec start_time, end_time;
tools/testing/selftests/mm/migration.c
70
struct timespec ts1, ts2;
tools/testing/selftests/mm/mremap_test.c
999
struct timespec t_start = {0, 0}, t_end = {0, 0};
tools/testing/selftests/mm/transhuge-stress.c
29
struct timespec start, a, b;
tools/testing/selftests/mqueue/mq_perf_tests.c
434
struct timespec res, start, middle, end, send_total, recv_total;
tools/testing/selftests/net/cmsg_sender.c
88
static struct timespec time_start_real;
tools/testing/selftests/net/cmsg_sender.c
89
static struct timespec time_start_mono;
tools/testing/selftests/net/ipsec.c
780
struct timespec sleep_time = {
tools/testing/selftests/net/mptcp/mptcp_connect.c
1004
struct timespec start, end;
tools/testing/selftests/net/mptcp/mptcp_inq.c
219
struct timespec req;
tools/testing/selftests/net/mptcp/mptcp_inq.c
365
struct timespec req;
tools/testing/selftests/net/netfilter/nf_queue.c
264
struct timespec ts = { .tv_sec = delay / 1000 };
tools/testing/selftests/net/so_txtime.c
65
struct timespec ts;
tools/testing/selftests/net/stress_reuseport_listen.c
71
struct timespec start_ts, end_ts;
tools/testing/selftests/net/tcp_ao/bench-lookups.c
94
struct timespec start = {}, end = {};
tools/testing/selftests/net/tcp_ao/lib/ftrace.c
288
struct timespec timeout;
tools/testing/selftests/net/timestamping.c
161
struct timespec ts;
tools/testing/selftests/net/timestamping.c
189
struct timespec *stamp =
tools/testing/selftests/net/timestamping.c
190
(struct timespec *)CMSG_DATA(cmsg);
tools/testing/selftests/net/timestamping.c
197
struct timespec *stamp =
tools/testing/selftests/net/timestamping.c
198
(struct timespec *)CMSG_DATA(cmsg);
tools/testing/selftests/net/txtimestamp.c
103
static int64_t timespec_to_ns64(struct timespec *ts)
tools/testing/selftests/net/txtimestamp.c
108
static int64_t timespec_to_us64(struct timespec *ts)
tools/testing/selftests/net/txtimestamp.c
122
struct timespec *t_start, struct timespec *t_end)
tools/testing/selftests/net/txtimestamp.c
157
static void validate_timestamp(struct timespec *cur, int min_delay)
tools/testing/selftests/net/txtimestamp.c
182
static void __print_timestamp(const char *name, struct timespec *cur,
tools/testing/selftests/net/txtimestamp.c
85
static struct timespec ts_usr;
tools/testing/selftests/nolibc/nolibc-test.c
1333
struct timespec ts;
tools/testing/selftests/nolibc/nolibc-test.c
1490
struct timespec ts;
tools/testing/selftests/powerpc/benchmarks/context_switch.c
258
static long sys_futex(void *addr1, int op, int val1, struct timespec *timeout,
tools/testing/selftests/powerpc/benchmarks/futex_bench.c
22
struct timespec ts_start, ts_end;
tools/testing/selftests/powerpc/benchmarks/mmap_bench.c
36
struct timespec ts_start, ts_end;
tools/testing/selftests/powerpc/benchmarks/null_syscall.c
133
struct timespec tv_start, tv_now;
tools/testing/selftests/powerpc/stringloops/strlen.c
38
struct timespec ts_start, ts_end;
tools/testing/selftests/proc/proc-maps-race.c
256
static struct timespec print_ts;
tools/testing/selftests/proc/proc-maps-race.c
258
static void start_test_loop(struct timespec *ts, bool verbose)
tools/testing/selftests/proc/proc-maps-race.c
264
static void end_test_iteration(struct timespec *ts, bool verbose)
tools/testing/selftests/proc/proc-maps-race.c
576
struct timespec start_ts, end_ts;
tools/testing/selftests/proc/proc-maps-race.c
670
struct timespec start_ts, end_ts;
tools/testing/selftests/proc/proc-maps-race.c
750
struct timespec start_ts, end_ts;
tools/testing/selftests/proc/proc-uptime.h
28
struct timespec ts;
tools/testing/selftests/ptp/testptp.c
163
struct timespec ts;
tools/testing/selftests/rseq/slice_test.c
109
struct timespec ts_start, ts_now;
tools/testing/selftests/rseq/slice_test.c
163
struct timespec ts_start, ts_now;
tools/testing/selftests/rseq/slice_test.c
169
struct timespec ts_cs;
tools/testing/selftests/rseq/slice_test.c
94
static inline bool elapsed(struct timespec *start, struct timespec *now,
tools/testing/selftests/rtc/rtctest.c
80
struct timespec req = {
tools/testing/selftests/rtc/rtctest.c
84
struct timespec rem;
tools/testing/selftests/sched_ext/cyclic_kick_wait.c
65
struct timespec ts;
tools/testing/selftests/seccomp/seccomp_benchmark.c
27
struct timespec start, finish;
tools/testing/selftests/seccomp/seccomp_benchmark.c
53
struct timespec start, finish;
tools/testing/selftests/seccomp/seccomp_bpf.c
2933
struct timespec delay = { .tv_nsec = 100000000 };
tools/testing/selftests/seccomp/seccomp_bpf.c
3066
struct timespec timeout = { };
tools/testing/selftests/seccomp/seccomp_bpf.c
4144
struct timespec delay = { .tv_nsec = 100000000 };
tools/testing/selftests/seccomp/seccomp_bpf.c
4543
struct timespec delay = { .tv_nsec = 100000000 };
tools/testing/selftests/seccomp/seccomp_bpf.c
4647
struct timespec delay = { .tv_nsec = 100000000 };
tools/testing/selftests/seccomp/seccomp_bpf.c
4719
struct timespec delay = { .tv_nsec = 100000000 };
tools/testing/selftests/seccomp/seccomp_bpf.c
4793
struct timespec delay = { .tv_nsec = 100000000 };
tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c
69
struct timespec t1, t2;
tools/testing/selftests/timens/clock_nanosleep.c
26
struct timespec *now, *rem;
tools/testing/selftests/timens/clock_nanosleep.c
43
struct timespec now = {}, rem;
tools/testing/selftests/timens/clock_nanosleep.c
45
struct timespec start;
tools/testing/selftests/timens/exec.c
23
struct timespec now, tst;
tools/testing/selftests/timens/futex.c
23
struct timespec timeout, end;
tools/testing/selftests/timens/futex.c
67
struct timespec mtime_now;
tools/testing/selftests/timens/gettime_perf.c
17
typedef int (*vgettime_t)(clockid_t, struct timespec *);
tools/testing/selftests/timens/gettime_perf.c
49
struct timespec tp, start;
tools/testing/selftests/timens/procfs.c
123
struct timespec uptime_new, uptime_old;
tools/testing/selftests/timens/procfs.c
68
static int read_proc_uptime(struct timespec *uptime)
tools/testing/selftests/timens/timens.c
90
struct timespec child_ts_new, parent_ts_old, cur_ts;
tools/testing/selftests/timens/timens.h
21
struct timespec ts;
tools/testing/selftests/timens/timens.h
86
static inline int _gettime(clockid_t clk_id, struct timespec *res, bool raw_syscall)
tools/testing/selftests/timens/timer.c
18
static int run_test(int clockid, struct timespec now)
tools/testing/selftests/timens/timer.c
76
struct timespec btime_now, mtime_now;
tools/testing/selftests/timens/timerfd.c
18
static int tclock_gettime(clockid_t clockid, struct timespec *now)
tools/testing/selftests/timens/timerfd.c
25
static int run_test(int clockid, struct timespec now)
tools/testing/selftests/timens/timerfd.c
83
struct timespec btime_now, mtime_now;
tools/testing/selftests/timens/vfork_exec.c
24
struct timespec *now;
tools/testing/selftests/timens/vfork_exec.c
30
struct timespec *now = args->now, tst;
tools/testing/selftests/timens/vfork_exec.c
44
static int check_in_thread(char *tst_name, struct timespec *now)
tools/testing/selftests/timens/vfork_exec.c
60
static int check(char *tst_name, struct timespec *now)
tools/testing/selftests/timens/vfork_exec.c
62
struct timespec tst;
tools/testing/selftests/timens/vfork_exec.c
79
struct timespec now;
tools/testing/selftests/timers/adjtick.c
166
struct timespec raw;
tools/testing/selftests/timers/adjtick.c
40
unsigned long long ts_to_nsec(struct timespec ts)
tools/testing/selftests/timers/adjtick.c
45
struct timespec nsec_to_ts(long long ns)
tools/testing/selftests/timers/adjtick.c
47
struct timespec ts;
tools/testing/selftests/timers/adjtick.c
55
long long diff_timespec(struct timespec start, struct timespec end)
tools/testing/selftests/timers/adjtick.c
65
void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw)
tools/testing/selftests/timers/adjtick.c
67
struct timespec start, mid, end;
tools/testing/selftests/timers/adjtick.c
94
struct timespec mon_start, raw_start, mon_end, raw_end;
tools/testing/selftests/timers/alarmtimer-suspend.c
40
struct timespec start_time;
tools/testing/selftests/timers/alarmtimer-suspend.c
73
long long timespec_sub(struct timespec a, struct timespec b)
tools/testing/selftests/timers/alarmtimer-suspend.c
86
struct timespec ts;
tools/testing/selftests/timers/freq-step.c
205
struct timespec ts;
tools/testing/selftests/timers/freq-step.c
43
static double diff_timespec(struct timespec *ts1, struct timespec *ts2)
tools/testing/selftests/timers/freq-step.c
51
struct timespec ts1, ts2, ts3;
tools/testing/selftests/timers/inconsistency-check.c
146
struct timespec ts;
tools/testing/selftests/timers/inconsistency-check.c
69
static inline int in_order(struct timespec a, struct timespec b)
tools/testing/selftests/timers/inconsistency-check.c
85
struct timespec list[CALLS_PER_LOOP];
tools/testing/selftests/timers/leap-a-day.c
162
struct timespec now, target;
tools/testing/selftests/timers/leap-a-day.c
213
struct timespec ts;
tools/testing/selftests/timers/leap-a-day.c
238
struct timespec ts;
tools/testing/selftests/timers/leap-a-day.c
331
struct timespec tai;
tools/testing/selftests/timers/leap-a-day.c
60
static inline int in_order(struct timespec a, struct timespec b)
tools/testing/selftests/timers/leap-a-day.c
71
struct timespec timespec_add(struct timespec ts, unsigned long long ns)
tools/testing/selftests/timers/leapcrash.c
61
struct timespec ts;
tools/testing/selftests/timers/mqueue-lat.c
40
long long timespec_sub(struct timespec a, struct timespec b)
tools/testing/selftests/timers/mqueue-lat.c
48
struct timespec timespec_add(struct timespec ts, unsigned long long ns)
tools/testing/selftests/timers/mqueue-lat.c
63
struct timespec start, end, now, target;
tools/testing/selftests/timers/nanosleep.c
126
struct timespec rqtp = {}, rmtp = {};
tools/testing/selftests/timers/nanosleep.c
160
if (!in_order((struct timespec) {}, rmtp))
tools/testing/selftests/timers/nanosleep.c
68
static inline int in_order(struct timespec a, struct timespec b)
tools/testing/selftests/timers/nanosleep.c
79
struct timespec timespec_add(struct timespec ts, unsigned long long ns)
tools/testing/selftests/timers/nanosleep.c
91
struct timespec now, target, rel;
tools/testing/selftests/timers/nsleep-lat.c
66
struct timespec timespec_add(struct timespec ts, unsigned long long ns)
tools/testing/selftests/timers/nsleep-lat.c
77
long long timespec_sub(struct timespec a, struct timespec b)
tools/testing/selftests/timers/nsleep-lat.c
87
struct timespec start, end, target;
tools/testing/selftests/timers/posix_timers.c
448
static inline int64_t calcdiff_ns(struct timespec t1, struct timespec t2)
tools/testing/selftests/timers/posix_timers.c
459
struct timespec start, now;
tools/testing/selftests/timers/posix_timers.c
498
struct timespec start, now;
tools/testing/selftests/timers/posix_timers.c
550
struct timespec start, now;
tools/testing/selftests/timers/raw_skew.c
44
unsigned long long ts_to_nsec(struct timespec ts)
tools/testing/selftests/timers/raw_skew.c
49
struct timespec nsec_to_ts(long long ns)
tools/testing/selftests/timers/raw_skew.c
51
struct timespec ts;
tools/testing/selftests/timers/raw_skew.c
58
long long diff_timespec(struct timespec start, struct timespec end)
tools/testing/selftests/timers/raw_skew.c
67
void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw)
tools/testing/selftests/timers/raw_skew.c
69
struct timespec start, mid, end;
tools/testing/selftests/timers/raw_skew.c
92
struct timespec mon, raw, start, end;
tools/testing/selftests/timers/set-timer-lat.c
42
struct timespec start_time;
tools/testing/selftests/timers/set-timer-lat.c
76
long long timespec_sub(struct timespec a, struct timespec b)
tools/testing/selftests/timers/set-timer-lat.c
88
struct timespec ts;
tools/testing/selftests/timers/threadtest.c
105
struct timespec my_list[LISTSIZE];
tools/testing/selftests/timers/threadtest.c
37
struct timespec global_list[LISTSIZE];
tools/testing/selftests/timers/threadtest.c
41
void checklist(const struct timespec *list, int size)
tools/testing/selftests/timers/threadtest.c
44
const struct timespec *a, *b;
tools/testing/selftests/uevent/uevent_filtering.c
250
struct timespec timeout;
tools/testing/selftests/vDSO/vdso_test_abi.c
121
struct timespec ts;
tools/testing/selftests/vDSO/vdso_test_abi.c
173
struct timespec ts, sys_ts;
tools/testing/selftests/vDSO/vdso_test_abi.c
36
typedef long (*vdso_clock_gettime_t)(clockid_t clk_id, struct timespec *ts);
tools/testing/selftests/vDSO/vdso_test_abi.c
38
typedef long (*vdso_clock_getres_t)(clockid_t clk_id, struct timespec *ts);
tools/testing/selftests/vDSO/vdso_test_correctness.c
157
static inline int sys_clock_gettime(clockid_t id, struct timespec *ts)
tools/testing/selftests/vDSO/vdso_test_correctness.c
224
static bool ts_leq(const struct timespec *a, const struct timespec *b)
tools/testing/selftests/vDSO/vdso_test_correctness.c
266
struct timespec start, vdso, end;
tools/testing/selftests/vDSO/vdso_test_correctness.c
52
typedef int (*vgettime_t)(clockid_t, struct timespec *);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
178
struct timespec start, end, diff;
tools/testing/selftests/vDSO/vdso_test_getrandom.c
201
struct timespec start, end, diff;
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
116
struct timespec start = to_timespec(INT64_MAX), end = {};
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
117
struct timespec min = to_timespec(INT64_MAX);
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
118
struct timespec max = {};
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
119
struct timespec avg = {};
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
120
struct timespec wall_time;
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
131
struct timespec init_time;
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
20
struct timespec start;
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
21
struct timespec end;
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
67
static s64 to_ns(struct timespec ts)
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
72
static struct timespec to_timespec(s64 ns)
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
74
struct timespec ts = {
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
82
static struct timespec timespec_sub(struct timespec a, struct timespec b)
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
87
static struct timespec timespec_min(struct timespec a, struct timespec b)
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
92
static struct timespec timespec_max(struct timespec a, struct timespec b)
tools/testing/selftests/x86/test_syscall_vdso.c
175
struct timespec timeout;
tools/testing/selftests/x86/test_vsyscall.c
56
typedef int (*vgettime_t)(clockid_t, struct timespec *);
tools/testing/vsock/timeout.c
72
struct timespec ts = {
tools/testing/vsock/vsock_perf.c
47
struct timespec ts;
tools/testing/vsock/vsock_test.c
559
struct timespec ts;
tools/thermal/lib/uptimeofday.c
32
struct timespec msec_to_timespec(int msec)
tools/thermal/lib/uptimeofday.c
34
struct timespec tv = {
tools/thermal/lib/uptimeofday.h
10
struct timespec msec_to_timespec(int msec);
tools/tracing/latency/latency-collector.c
1011
struct timespec future;
tools/tracing/latency/latency-collector.c
1073
const struct timespec *timestamp, char *buffer,
tools/tracing/latency/latency-collector.c
1112
const struct timespec *timestamp, char *buffer,
tools/tracing/latency/latency-collector.c
1120
static void print_lostmessage(const struct timespec *timestamp, char *buffer,
tools/tracing/latency/latency-collector.c
1129
const struct timespec *timestamp, char *buffer,
tools/tracing/latency/latency-collector.c
1462
struct timespec timestamp;
tools/tracing/latency/latency-collector.c
1558
struct timespec timestamp;
tools/tracing/latency/latency-collector.c
277
struct timespec *tp)
tools/tracing/latency/latency-collector.c
425
const struct timespec *restrict abstime)
tools/tracing/latency/latency-collector.c
513
static __always_inline void get_time_in_future(struct timespec *future,
tools/tracing/latency/latency-collector.c
527
static __always_inline bool time_has_passed(const struct timespec *time)
tools/tracing/latency/latency-collector.c
529
struct timespec now;
tools/tracing/latency/latency-collector.c
542
struct timespec limit;
tools/usb/usbip/src/usbipd.c
498
struct timespec timeout;