Home
last modified time | relevance | path

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

/linux-6.3-rc2/samples/bpf/
A 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()
A 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()
/linux-6.3-rc2/tools/testing/selftests/timens/
A Dtimens.c90 struct timespec child_ts_new, parent_ts_old, cur_ts; in test_gettime() local
116 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
119 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime()
123 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
130 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
133 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime()
137 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
139 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
/linux-6.3-rc2/drivers/hid/
A 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()
/linux-6.3-rc2/net/openvswitch/
A Dflow.c48 struct timespec64 cur_ts; in ovs_flow_used_time() local
51 ktime_get_ts64(&cur_ts); in ovs_flow_used_time()
53 cur_ms = (u64)(u32)cur_ts.tv_sec * MSEC_PER_SEC + in ovs_flow_used_time()
54 cur_ts.tv_nsec / NSEC_PER_MSEC; in ovs_flow_used_time()

Completed in 10 milliseconds