/tools/perf/util/ |
D | cputopo.c | 32 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() argument 57 for (i = 0; i < tp->core_sib; i++) { in build_cpu_topology() 58 if (!strcmp(buf, tp->core_siblings[i])) in build_cpu_topology() 61 if (i == tp->core_sib) { in build_cpu_topology() 62 tp->core_siblings[i] = buf; in build_cpu_topology() 63 tp->core_sib++; in build_cpu_topology() 70 if (!tp->die_siblings) in build_cpu_topology() 88 for (i = 0; i < tp->die_sib; i++) { in build_cpu_topology() 89 if (!strcmp(buf, tp->die_siblings[i])) in build_cpu_topology() 92 if (i == tp->die_sib) { in build_cpu_topology() [all …]
|
D | cputopo.h | 39 void cpu_topology__delete(struct cpu_topology *tp); 42 void numa_topology__delete(struct numa_topology *tp); 45 void hybrid_topology__delete(struct hybrid_topology *tp);
|
D | probe-event.c | 631 static int find_perf_probe_point_from_dwarf(struct probe_trace_point *tp, in find_perf_probe_point_from_dwarf() argument 637 u64 addr = tp->address; in find_perf_probe_point_from_dwarf() 646 ret = get_text_start_address(tp->module, &stext, NULL); in find_perf_probe_point_from_dwarf() 650 } else if (tp->symbol) { in find_perf_probe_point_from_dwarf() 652 ret = kernel_get_symbol_address_by_name(tp->symbol, &addr, in find_perf_probe_point_from_dwarf() 653 false, !!tp->module); in find_perf_probe_point_from_dwarf() 656 addr += tp->offset; in find_perf_probe_point_from_dwarf() 660 tp->module ? : "kernel"); in find_perf_probe_point_from_dwarf() 662 dinfo = debuginfo_cache__open(tp->module, verbose <= 0); in find_perf_probe_point_from_dwarf() 669 pp->retprobe = tp->retprobe; in find_perf_probe_point_from_dwarf() [all …]
|
D | event.c | 464 struct perf_record_text_poke_event *tp = &event->text_poke; in perf_event__fprintf_text_poke() local 468 ret = fprintf(fp, " %" PRI_lx64 " ", tp->addr); in perf_event__fprintf_text_poke() 472 al.map = maps__find(&machine->kmaps, tp->addr); in perf_event__fprintf_text_poke() 474 al.addr = al.map->map_ip(al.map, tp->addr); in perf_event__fprintf_text_poke() 480 ret += fprintf(fp, " old len %u new len %u\n", tp->old_len, tp->new_len); in perf_event__fprintf_text_poke() 482 ret += binary__fprintf(tp->bytes, tp->old_len, 16, text_poke_printer, in perf_event__fprintf_text_poke() 485 ret += binary__fprintf(tp->bytes + tp->old_len, tp->new_len, 16, in perf_event__fprintf_text_poke()
|
D | header.c | 577 struct cpu_topology *tp; in write_cpu_topology() local 581 tp = cpu_topology__new(); in write_cpu_topology() 582 if (!tp) in write_cpu_topology() 585 ret = do_write(ff, &tp->core_sib, sizeof(tp->core_sib)); in write_cpu_topology() 589 for (i = 0; i < tp->core_sib; i++) { in write_cpu_topology() 590 ret = do_write_string(ff, tp->core_siblings[i]); in write_cpu_topology() 594 ret = do_write(ff, &tp->thread_sib, sizeof(tp->thread_sib)); in write_cpu_topology() 598 for (i = 0; i < tp->thread_sib; i++) { in write_cpu_topology() 599 ret = do_write_string(ff, tp->thread_siblings[i]); in write_cpu_topology() 619 if (!tp->die_sib) in write_cpu_topology() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | bpf_dctcp.c | 49 static __always_inline void dctcp_reset(const struct tcp_sock *tp, in dctcp_reset() argument 52 ca->next_seq = tp->snd_nxt; in dctcp_reset() 54 ca->old_delivered = tp->delivered; in dctcp_reset() 55 ca->old_delivered_ce = tp->delivered_ce; in dctcp_reset() 61 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG() local 65 if (!(tp->ecn_flags & TCP_ECN_OK) && fallback[0]) { in BPF_PROG() 85 ca->prior_rcv_nxt = tp->rcv_nxt; in BPF_PROG() 90 stg = bpf_sk_storage_get(&sk_stg_map, (void *)tp, NULL, 0); in BPF_PROG() 93 bpf_sk_storage_delete(&sk_stg_map, (void *)tp); in BPF_PROG() 95 dctcp_reset(tp, ca); in BPF_PROG() [all …]
|
D | bpf_iter_setsockopt.c | 11 tp = NULL; \ 13 tp = bpf_skc_to_tcp_sock(_skc); \ 14 sk = (struct sock *)tp; \ 16 tp; \ 43 struct tcp_sock *tp; in change_tcp_cc() local 58 if (bpf_getsockopt(tp, SOL_TCP, TCP_CONGESTION, in change_tcp_cc() 68 bpf_setsockopt(tp, SOL_TCP, TCP_CONGESTION, dctcp_cc, sizeof(dctcp_cc)); in change_tcp_cc()
|
D | test_btf_skc_cls_ingress.c | 28 struct tcp_sock *tp, in test_syncookie_helper() argument 47 mss_cookie = bpf_tcp_gen_syncookie(tp, ip6h, sizeof(*ip6h), in test_syncookie_helper() 57 int ret = bpf_tcp_check_syncookie(tp, ip6h, sizeof(*ip6h), in test_syncookie_helper() 120 struct tcp_sock *tp; in handle_ip6_tcp() local 122 tp = bpf_skc_to_tcp_sock(bpf_skc); in handle_ip6_tcp() 123 if (!tp) { in handle_ip6_tcp() 128 if (bpf_sk_assign(skb, tp, 0)) { in handle_ip6_tcp() 133 listen_tp_sport = tp->inet_conn.icsk_inet.sk.__sk_common.skc_num; in handle_ip6_tcp() 135 test_syncookie_helper(ip6h, th, tp, skb); in handle_ip6_tcp() 136 bpf_sk_release(tp); in handle_ip6_tcp()
|
D | bpf_iter_tcp4.c | 74 static int dump_tcp_sock(struct seq_file *seq, struct tcp_sock *tp, in dump_tcp_sock() argument 88 icsk = &tp->inet_conn; in dump_tcp_sock() 118 rx_queue = tp->rcv_nxt - tp->copied_seq; in dump_tcp_sock() 127 tp->write_seq - tp->snd_una, rx_queue, in dump_tcp_sock() 135 tp, in dump_tcp_sock() 139 tp->snd_cwnd, in dump_tcp_sock() 141 : (tcp_in_initial_slowstart(tp) ? -1 : tp->snd_ssthresh) in dump_tcp_sock() 202 struct tcp_sock *tp; in dump_tcp4() local 220 tp = bpf_skc_to_tcp_sock(sk_common); in dump_tcp4() 221 if (tp) in dump_tcp4() [all …]
|
D | bpf_iter_tcp6.c | 74 static int dump_tcp6_sock(struct seq_file *seq, struct tcp6_sock *tp, in dump_tcp6_sock() argument 88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock() 118 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock() 131 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue, in dump_tcp6_sock() 139 tp, in dump_tcp6_sock() 143 tp->tcp.snd_cwnd, in dump_tcp6_sock() 145 : (tcp_in_initial_slowstart(&tp->tcp) ? -1 in dump_tcp6_sock() 146 : tp->tcp.snd_ssthresh) in dump_tcp6_sock() 218 struct tcp6_sock *tp; in dump_tcp6() local 236 tp = bpf_skc_to_tcp6_sock(sk_common); in dump_tcp6() [all …]
|
D | bpf_cubic.c | 163 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset() local 167 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset() 389 struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS() local 395 if (tcp_in_slow_start(tp)) { in BPF_STRUCT_OPS() 398 acked = tcp_slow_start(tp, acked); in BPF_STRUCT_OPS() 402 bictcp_update(ca, tp->snd_cwnd, acked); in BPF_STRUCT_OPS() 403 tcp_cong_avoid_ai(tp, ca->cnt, acked); in BPF_STRUCT_OPS() 408 const struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS() local 414 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in BPF_STRUCT_OPS() 415 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in BPF_STRUCT_OPS() [all …]
|
D | test_tcpbpf_kern.c | 32 struct tcp_sock *tp; in get_tp_window_clamp() local 37 tp = bpf_skc_to_tcp_sock(sk); in get_tp_window_clamp() 38 if (!tp) in get_tp_window_clamp() 40 return tp->window_clamp; in get_tp_window_clamp()
|
D | test_sock_fields.c | 126 struct bpf_tcp_sock *tp, *tp_ret; in egress_read_sock_fields() local 166 tp = bpf_tcp_sock(sk); in egress_read_sock_fields() 167 if (!tp) in egress_read_sock_fields() 171 tpcpy(tp_ret, tp); in egress_read_sock_fields() 220 struct bpf_tcp_sock *tp; in ingress_read_sock_fields() local 244 tp = bpf_tcp_sock(sk); in ingress_read_sock_fields() 245 if (!tp) in ingress_read_sock_fields() 249 tpcpy(&listen_tp, tp); in ingress_read_sock_fields()
|
/tools/testing/selftests/timens/ |
D | gettime_perf.c | 49 struct timespec tp, start; in test() local 54 tp = start; in test() 55 for (tp = start; start.tv_sec + timeout > tp.tv_sec || in test() 56 (start.tv_sec + timeout == tp.tv_sec && in test() 57 start.tv_nsec > tp.tv_nsec); i++) { in test() 58 vdso_clock_gettime(clockid, &tp); in test()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sock_fields.c | 84 static void print_tp(const struct bpf_tcp_sock *tp, const char *prefix) in print_tp() argument 93 tp->snd_cwnd, tp->srtt_us, tp->rtt_min, tp->snd_ssthresh, in print_tp() 94 tp->rcv_nxt, tp->snd_nxt, tp->snd_una, tp->mss_cache, in print_tp() 95 tp->ecn_flags, tp->rate_delivered, tp->rate_interval_us, in print_tp() 96 tp->packets_out, tp->retrans_out, tp->total_retrans, in print_tp() 97 tp->segs_in, tp->data_segs_in, tp->segs_out, in print_tp() 98 tp->data_segs_out, tp->lost_out, tp->sacked_out, in print_tp() 99 tp->bytes_received, tp->bytes_acked); in print_tp()
|
/tools/testing/selftests/bpf/ |
D | bpf_tcp_helpers.h | 195 static __always_inline bool tcp_in_slow_start(const struct tcp_sock *tp) in tcp_in_slow_start() argument 197 return tp->snd_cwnd < tp->snd_ssthresh; in tcp_in_slow_start() 202 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited() local 205 if (tcp_in_slow_start(tp)) in tcp_is_cwnd_limited() 206 return tp->snd_cwnd < 2 * tp->max_packets_out; in tcp_is_cwnd_limited() 208 return !!BPF_CORE_READ_BITFIELD(tp, is_cwnd_limited); in tcp_is_cwnd_limited() 225 extern __u32 tcp_slow_start(struct tcp_sock *tp, __u32 acked) __ksym; 226 extern void tcp_cong_avoid_ai(struct tcp_sock *tp, __u32 w, __u32 acked) __ksym;
|
/tools/testing/selftests/filesystems/fuse/ |
D | fuse_daemon.c | 29 int tp = -1; in display_trace() local 42 TEST(tp = s_open(s_path(tracing_folder(), s("trace_pipe")), in display_trace() 43 O_RDONLY | O_CLOEXEC), tp != -1); in display_trace() 45 TEST(bytes_read = read(tp, &c, sizeof(c)), in display_trace() 55 close(tp); in display_trace()
|
/tools/perf/python/ |
D | tracepoint.py | 18 tp = tracepoint("sched", "sched_switch") 23 evlist.add(tp)
|
/tools/testing/selftests/bpf/benchs/ |
D | run_bench_trigger.sh | 5 for i in base tp rawtp kprobe fentry fmodret
|
/tools/power/pm-graph/ |
D | bootgraph.py | 301 tp = aslib.TestProps() 310 if re.match(tp.stampfmt, line): 311 tp.stamp = line 313 elif re.match(tp.sysinfofmt, line): 314 tp.sysinfo = line 316 elif re.match(tp.cmdlinefmt, line): 317 tp.cmdline = line 319 elif re.match(tp.kparamsfmt, line): 320 tp.kparams = line 366 if tp.stamp: [all …]
|
/tools/include/uapi/linux/ |
D | tcp.h | 70 #define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3]) argument
|
/tools/testing/selftests/ptp/ |
D | testptp.c | 181 int64_t t1, t2, tp; in main() local 490 tp = pctns(pct+2*i+1); in main() 493 offset = (t2 + t1) / 2 - tp; in main()
|
/tools/perf/pmu-events/ |
D | jevents.c | 319 char *tp; in get_topic() local 323 i = asprintf(&tp, "%s", topic); in get_topic() 329 for (i = 0; i < (int) strlen(tp); i++) { in get_topic() 330 char c = tp[i]; in get_topic() 333 tp[i] = ' '; in get_topic() 335 tp[i] = '\0'; in get_topic() 340 return tp; in get_topic()
|
/tools/thermal/tmon/ |
D | tmon.c | 183 trip_type_name[ptdata.tzi[i].tp[j].type], in prepare_logging() 184 ptdata.tzi[i].tp[j].temp); in prepare_logging()
|
D | tmon.h | 82 struct trip_point tp[MAX_NR_TRIP]; member
|