Home
last modified time | relevance | path

Searched refs:cur_ts (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/samples/bpf/
Dcpustat_kern.c106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local
143 cur_ts = bpf_ktime_get_ns(); in bpf_prog1()
144 delta = cur_ts - *cts; in bpf_prog1()
145 *cts = cur_ts; in bpf_prog1()
169 delta = cur_ts - *pts; in bpf_prog1()
206 *pts = cur_ts; in bpf_prog1()
214 u64 *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog2() local
243 cur_ts = bpf_ktime_get_ns(); in bpf_prog2()
244 delta = cur_ts - *pts; in bpf_prog2()
245 *pts = cur_ts; in bpf_prog2()
Dlathist_kern.c74 u64 *ts, cur_ts, delta; in bpf_prog2() local
83 cur_ts = bpf_ktime_get_ns(); in bpf_prog2()
84 delta = log2l(cur_ts - *ts); in bpf_prog2()
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
Dtimens.c92 struct timespec child_ts_new, parent_ts_old, cur_ts; in test_gettime() local
118 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
121 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime()
125 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
132 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
135 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime()
139 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
141 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-plantronics.c126 unsigned long prev_ts, cur_ts; in plantronics_event() local
134 cur_ts = jiffies; in plantronics_event()
135 if (jiffies_to_msecs(cur_ts - prev_ts) <= PLT_DOUBLE_KEY_TIMEOUT) in plantronics_event()
138 drv_data->last_volume_key_ts = cur_ts; in plantronics_event()
/kernel/linux/linux-5.10/net/openvswitch/
Dflow.c46 struct timespec64 cur_ts; in ovs_flow_used_time() local
49 ktime_get_ts64(&cur_ts); in ovs_flow_used_time()
51 cur_ms = (u64)(u32)cur_ts.tv_sec * MSEC_PER_SEC + in ovs_flow_used_time()
52 cur_ts.tv_nsec / NSEC_PER_MSEC; in ovs_flow_used_time()