| /tools/testing/selftests/bpf/progs/ |
| A D | test_tc_edt.c | 34 uint64_t tstamp, next_tstamp = 0; in throttle_flow() local 39 tstamp = skb->tstamp; in throttle_flow() 40 if (tstamp < now) in throttle_flow() 41 tstamp = now; in throttle_flow() 44 if (next_tstamp <= tstamp) { in throttle_flow() 45 if (bpf_map_update_elem(&flow_map, &key, &tstamp, BPF_ANY)) in throttle_flow() 60 skb->tstamp = next_tstamp; in throttle_flow()
|
| A D | test_tc_dtime.c | 226 skb->tstamp) in egress_host() 232 skb->tstamp) in egress_host() 238 skb->tstamp) in egress_host() 242 skb->tstamp = EGRESS_ENDHOST_MAGIC; in egress_host() 260 skb->tstamp == EGRESS_FWDNS_MAGIC) in ingress_host() 283 if (skb->tstamp == EGRESS_ENDHOST_MAGIC) in ingress_fwdns_prio100() 287 skb->tstamp = 0; in ingress_fwdns_prio100() 307 if (skb->tstamp == INGRESS_FWDNS_MAGIC) in egress_fwdns_prio100() 313 skb->tstamp = 0; in egress_fwdns_prio100() 343 skb->tstamp = INGRESS_FWDNS_MAGIC; in ingress_fwdns_prio101() [all …]
|
| A D | bpf_qdisc_fq.c | 71 u64 tstamp; member 152 return skbn_a->tstamp < skbn_b->tstamp; in skbn_tstamp_less() 304 return (s64)skb->tstamp > (s64)(q.ktime_cache + q.horizon); in fq_packet_beyond_horizon() 320 if (!skb->tstamp) { in BPF_PROG() 329 skb->tstamp = q.ktime_cache + q.horizon; in BPF_PROG() 332 time_to_send = skb->tstamp; in BPF_PROG() 369 skbn->tstamp = skb->tstamp = time_to_send; in BPF_PROG() 512 time_to_send = skbn->tstamp; in fq_dequeue_nonprio_flows()
|
| A D | test_time_tai.c | 19 skb->tstamp = ts1; in time_tai()
|
| A D | test_skb_ctx.c | 20 skb->tstamp++; in process()
|
| A D | verifier_cgroup_skb.c | 209 : __imm_const(__sk_buff_tstamp, offsetof(struct __sk_buff, tstamp)) in write_tstamp_from_cgroup_skb() 223 : __imm_const(__sk_buff_tstamp, offsetof(struct __sk_buff, tstamp)) in read_tstamp_from_cgroup_skb()
|
| A D | exceptions_fail.c | 255 return exception_cb1(ctx->tstamp); in static_func() 260 return exception_cb1(ctx->tstamp); in global_func()
|
| A D | exceptions.c | 165 if (ctx->tstamp) in throwing_subprog() 177 if (ctx->tstamp) in throwing_global_subprog()
|
| A D | verifier_spill_fill.c | 366 __imm_const(__sk_buff_tstamp, offsetof(struct __sk_buff, tstamp)) in scalar_offset_to_skb_data_2()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | time_tai.c | 25 .tstamp = 0, in test_time_tai() 51 ts1 = skb.tstamp; in test_time_tai()
|
| A D | skb_ctx.c | 16 .tstamp = 7, in test_skb_ctx() 87 ASSERT_EQ(skb.tstamp, 8, "ctx_out_tstamp"); in test_skb_ctx()
|
| A D | tc_redirect.c | 488 static int __rcv_tstamp(int fd, const char *expected, size_t s, __u64 *tstamp) in __rcv_tstamp() argument 518 if (tstamp) { in __rcv_tstamp() 520 *tstamp = pkt_ns; in __rcv_tstamp() 546 __u64 tstamp = 0; in wait_netstamp_needed_key() local 569 err = __rcv_tstamp(srv_fd, buf, sizeof(buf), &tstamp); in wait_netstamp_needed_key() 572 if (!tstamp && nretries++ < 5) { in wait_netstamp_needed_key() 579 if (!tstamp && srv_fd != -1) { in wait_netstamp_needed_key()
|
| A D | ctx_rewrite.c | 71 N(SCHED_CLS, struct __sk_buff, tstamp),
|
| /tools/testing/selftests/alsa/ |
| A D | pcm-test.c | 61 void timestamp_now(timestamp_t *tstamp) in timestamp_now() argument 63 if (clock_gettime(CLOCK_MONOTONIC_RAW, tstamp)) in timestamp_now() 67 long long timestamp_diff_ms(timestamp_t *tstamp) in timestamp_diff_ms() argument 71 if (tstamp->tv_nsec > now.tv_nsec) { in timestamp_diff_ms() 72 diff.tv_sec = now.tv_sec - tstamp->tv_sec - 1; in timestamp_diff_ms() 73 diff.tv_nsec = (now.tv_nsec + 1000000000L) - tstamp->tv_nsec; in timestamp_diff_ms() 75 diff.tv_sec = now.tv_sec - tstamp->tv_sec; in timestamp_diff_ms() 76 diff.tv_nsec = now.tv_nsec - tstamp->tv_nsec; in timestamp_diff_ms() 302 timestamp_t tstamp; in test_pcm_time() local 473 timestamp_now(&tstamp); in test_pcm_time() [all …]
|
| /tools/testing/selftests/net/ |
| A D | rxtimestamp.c | 30 bool tstamp; member 74 { .tstamp = true } 126 { .tstamp = true, .swtstamp = true } 163 if (t->expected.tstamp) in print_test_case() 232 actual.tstamp = true; in do_recv() 261 VALIDATE(tstamp); in do_recv()
|
| A D | so_txtime.c | 165 int64_t tstamp = 0; in do_recv_errqueue_timeout() local 215 tstamp = ((int64_t) err->ee_data) << 32 | err->ee_info; in do_recv_errqueue_timeout() 216 tstamp -= (int64_t) glob_tstart; in do_recv_errqueue_timeout() 217 tstamp /= 1000 * 1000; in do_recv_errqueue_timeout() 219 data[ret - 1], tstamp, reason); in do_recv_errqueue_timeout()
|
| /tools/perf/util/ |
| A D | trace-event.h | 106 struct evsel *evsel, u64 tstamp); 107 void (*process_stat_interval)(u64 tstamp);
|
| A D | bpf_off_cpu.c | 332 u64 tstamp = OFF_CPU_TIMESTAMP; in off_cpu_write() local 372 data.array[n++] = tstamp; in off_cpu_write() 424 tstamp++; in off_cpu_write()
|
| A D | bpf_lock_contention.c | 195 bpf_map__set_max_entries(skel->maps.tstamp, con->map_nr_entries); in lock_contention_prepare() 494 ts_fd = bpf_map__fd(skel->maps.tstamp); in account_end_timestamp()
|
| /tools/perf/util/bpf_skel/ |
| A D | off_cpu.bpf.c | 74 } tstamp SEC(".maps"); 271 pelem = bpf_task_storage_get(&tstamp, prev, NULL, in off_cpu_stat() 291 pelem = bpf_task_storage_get(&tstamp, next, NULL, 0); in off_cpu_stat()
|
| A D | lock_contention.bpf.c | 74 } tstamp SEC(".maps"); 447 pelem = bpf_map_lookup_elem(&tstamp, &pid); in get_tstamp_elem() 455 if (bpf_map_update_elem(&tstamp, &pid, &zero, BPF_NOEXIST) < 0) { in get_tstamp_elem() 460 pelem = bpf_map_lookup_elem(&tstamp, &pid); in get_tstamp_elem() 665 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_end() 844 bpf_map_delete_elem(&tstamp, &pid); in contention_end()
|
| /tools/perf/trace/beauty/include/uapi/sound/ |
| A D | asound.h | 485 struct timespec tstamp; /* reference timestamp */ member 535 struct __snd_timespec tstamp; /* Timestamp */ member 577 struct __snd_timespec64 tstamp; /* Timestamp */ member 788 struct timespec tstamp; /* Timestamp */ member 973 struct timespec tstamp; /* Timestamp - last update */ member 1049 struct timespec tstamp; member
|
| /tools/testing/selftests/bpf/ |
| A D | xdp_hw_metadata.c | 200 __u64 tstamp, __u64 reference) in print_tstamp_delta() argument 202 __s64 delta = (__s64)reference - (__s64)tstamp; in print_tstamp_delta() 205 name, tstamp, (double)tstamp / NANOSEC_PER_SEC, refname, in print_tstamp_delta()
|
| /tools/perf/util/scripting-engines/ |
| A D | trace-event-python.c | 1653 process_stat(struct evsel *counter, struct perf_cpu cpu, int thread, u64 tstamp, in process_stat() argument 1676 tuple_set_u64(t, n++, tstamp); in process_stat() 1690 struct evsel *counter, u64 tstamp) in python_process_stat() argument 1701 perf_thread_map__pid(threads, thread), tstamp, in python_process_stat() 1707 static void python_process_stat_interval(u64 tstamp) in python_process_stat_interval() argument 1723 tuple_set_u64(t, n++, tstamp); in python_process_stat_interval()
|
| /tools/perf/ |
| A D | builtin-script.c | 2331 static void __process_stat(struct evsel *counter, u64 tstamp) in __process_stat() argument 2356 tstamp, in __process_stat() 2362 static void process_stat(struct evsel *counter, u64 tstamp) in process_stat() argument 2365 scripting_ops->process_stat(&stat_config, counter, tstamp); in process_stat() 2367 __process_stat(counter, tstamp); in process_stat() 2370 static void process_stat_interval(u64 tstamp) in process_stat_interval() argument 2373 scripting_ops->process_stat_interval(tstamp); in process_stat_interval()
|