Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 30) sorted by relevance

12

/tools/perf/util/
Dcputopo.c31 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() argument
56 for (i = 0; i < tp->core_sib; i++) { in build_cpu_topology()
57 if (!strcmp(buf, tp->core_siblings[i])) in build_cpu_topology()
60 if (i == tp->core_sib) { in build_cpu_topology()
61 tp->core_siblings[i] = buf; in build_cpu_topology()
62 tp->core_sib++; in build_cpu_topology()
69 if (!tp->die_siblings) in build_cpu_topology()
87 for (i = 0; i < tp->die_sib; i++) { in build_cpu_topology()
88 if (!strcmp(buf, tp->die_siblings[i])) in build_cpu_topology()
91 if (i == tp->die_sib) { in build_cpu_topology()
[all …]
Dprobe-event.c633 static int find_perf_probe_point_from_dwarf(struct probe_trace_point *tp, in find_perf_probe_point_from_dwarf() argument
639 u64 addr = tp->address; in find_perf_probe_point_from_dwarf()
648 ret = get_text_start_address(tp->module, &stext, NULL); in find_perf_probe_point_from_dwarf()
652 } else if (tp->symbol) { in find_perf_probe_point_from_dwarf()
654 ret = kernel_get_symbol_address_by_name(tp->symbol, &addr, in find_perf_probe_point_from_dwarf()
655 false, !!tp->module); in find_perf_probe_point_from_dwarf()
658 addr += tp->offset; in find_perf_probe_point_from_dwarf()
662 tp->module ? : "kernel"); in find_perf_probe_point_from_dwarf()
664 dinfo = debuginfo_cache__open(tp->module, verbose <= 0); in find_perf_probe_point_from_dwarf()
672 pp->retprobe = tp->retprobe; in find_perf_probe_point_from_dwarf()
[all …]
Dcputopo.h29 void cpu_topology__delete(struct cpu_topology *tp);
32 void numa_topology__delete(struct numa_topology *tp);
Devent.c445 struct perf_record_text_poke_event *tp = &event->text_poke; in perf_event__fprintf_text_poke() local
449 ret = fprintf(fp, " %" PRI_lx64 " ", tp->addr); in perf_event__fprintf_text_poke()
453 al.map = maps__find(&machine->kmaps, tp->addr); in perf_event__fprintf_text_poke()
455 al.addr = al.map->map_ip(al.map, tp->addr); in perf_event__fprintf_text_poke()
461 ret += fprintf(fp, " old len %u new len %u\n", tp->old_len, tp->new_len); in perf_event__fprintf_text_poke()
463 ret += binary__fprintf(tp->bytes, tp->old_len, 16, text_poke_printer, in perf_event__fprintf_text_poke()
466 ret += binary__fprintf(tp->bytes + tp->old_len, tp->new_len, 16, in perf_event__fprintf_text_poke()
Dheader.c574 struct cpu_topology *tp; in write_cpu_topology() local
578 tp = cpu_topology__new(); in write_cpu_topology()
579 if (!tp) in write_cpu_topology()
582 ret = do_write(ff, &tp->core_sib, sizeof(tp->core_sib)); in write_cpu_topology()
586 for (i = 0; i < tp->core_sib; i++) { in write_cpu_topology()
587 ret = do_write_string(ff, tp->core_siblings[i]); in write_cpu_topology()
591 ret = do_write(ff, &tp->thread_sib, sizeof(tp->thread_sib)); in write_cpu_topology()
595 for (i = 0; i < tp->thread_sib; i++) { in write_cpu_topology()
596 ret = do_write_string(ff, tp->thread_siblings[i]); in write_cpu_topology()
616 if (!tp->die_sib) in write_cpu_topology()
[all …]
/tools/testing/selftests/bpf/progs/
Dbpf_dctcp.c44 static __always_inline void dctcp_reset(const struct tcp_sock *tp, in dctcp_reset() argument
47 ca->next_seq = tp->snd_nxt; in dctcp_reset()
49 ca->old_delivered = tp->delivered; in dctcp_reset()
50 ca->old_delivered_ce = tp->delivered_ce; in dctcp_reset()
56 const struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG() local
60 ca->prior_rcv_nxt = tp->rcv_nxt; in BPF_PROG()
65 stg = bpf_sk_storage_get(&sk_stg_map, (void *)tp, NULL, 0); in BPF_PROG()
68 bpf_sk_storage_delete(&sk_stg_map, (void *)tp); in BPF_PROG()
70 dctcp_reset(tp, ca); in BPF_PROG()
77 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG() local
[all …]
Dtest_btf_skc_cls_ingress.c28 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()
Dbpf_iter_tcp4.c75 static int dump_tcp_sock(struct seq_file *seq, struct tcp_sock *tp, in dump_tcp_sock() argument
89 icsk = &tp->inet_conn; in dump_tcp_sock()
119 rx_queue = tp->rcv_nxt - tp->copied_seq; in dump_tcp_sock()
128 tp->write_seq - tp->snd_una, rx_queue, in dump_tcp_sock()
136 tp, in dump_tcp_sock()
140 tp->snd_cwnd, in dump_tcp_sock()
142 : (tcp_in_initial_slowstart(tp) ? -1 : tp->snd_ssthresh) in dump_tcp_sock()
203 struct tcp_sock *tp; in dump_tcp4() local
221 tp = bpf_skc_to_tcp_sock(sk_common); in dump_tcp4()
222 if (tp) in dump_tcp4()
[all …]
Dbpf_cubic.c163 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 …]
Dbpf_iter_tcp6.c75 static int dump_tcp6_sock(struct seq_file *seq, struct tcp6_sock *tp, in dump_tcp6_sock() argument
89 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock()
119 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock()
132 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue, in dump_tcp6_sock()
140 tp, in dump_tcp6_sock()
144 tp->tcp.snd_cwnd, in dump_tcp6_sock()
146 : (tcp_in_initial_slowstart(&tp->tcp) ? -1 in dump_tcp6_sock()
147 : tp->tcp.snd_ssthresh) in dump_tcp6_sock()
219 struct tcp6_sock *tp; in dump_tcp6() local
237 tp = bpf_skc_to_tcp6_sock(sk_common); in dump_tcp6()
[all …]
Dtest_sock_fields.c126 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/bpf/
Dbpf_tcp_helpers.h188 static __always_inline __u32 tcp_slow_start(struct tcp_sock *tp, __u32 acked) in tcp_slow_start() argument
190 __u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh); in tcp_slow_start()
192 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start()
193 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start()
198 static __always_inline bool tcp_in_slow_start(const struct tcp_sock *tp) in tcp_in_slow_start() argument
200 return tp->snd_cwnd < tp->snd_ssthresh; in tcp_in_slow_start()
205 const struct tcp_sock *tp = tcp_sk(sk); in tcp_is_cwnd_limited() local
208 if (tcp_in_slow_start(tp)) in tcp_is_cwnd_limited()
209 return tp->snd_cwnd < 2 * tp->max_packets_out; in tcp_is_cwnd_limited()
211 return !!BPF_CORE_READ_BITFIELD(tp, is_cwnd_limited); in tcp_is_cwnd_limited()
[all …]
/tools/testing/selftests/timens/
Dgettime_perf.c41 struct timespec tp, start; in test() local
46 tp = start; in test()
47 for (tp = start; start.tv_sec + timeout > tp.tv_sec || in test()
48 (start.tv_sec + timeout == tp.tv_sec && in test()
49 start.tv_nsec > tp.tv_nsec); i++) { in test()
50 vdso_clock_gettime(clockid, &tp); in test()
/tools/testing/selftests/bpf/prog_tests/
Dsock_fields.c84 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/perf/python/
Dtracepoint.py18 tp = tracepoint("sched", "sched_switch")
23 evlist.add(tp)
/tools/testing/selftests/bpf/benchs/
Drun_bench_trigger.sh5 for i in base tp rawtp kprobe fentry fmodret
/tools/power/pm-graph/
Dbootgraph.py301 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 …]
Dsleepgraph.py818 tp = self.tpath
826 if(os.path.exists(tp+f) == False):
832 tp = self.tpath
834 if(os.path.exists(tp+f) == False):
924 tp = TestProps()
927 if tp.stampInfo(line, self):
930 m = re.match(tp.ftrace_line_fmt, line)
1365 tp = TestProps()
1368 m = re.match(tp.tstatfmt, line)
1383 tp = TestProps()
[all …]
/tools/testing/selftests/ptp/
Dtestptp.c181 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/
Djevents.c297 char *tp; in get_topic() local
301 i = asprintf(&tp, "%s", topic); in get_topic()
307 for (i = 0; i < (int) strlen(tp); i++) { in get_topic()
308 char c = tp[i]; in get_topic()
311 tp[i] = ' '; in get_topic()
313 tp[i] = '\0'; in get_topic()
318 return tp; in get_topic()
/tools/thermal/tmon/
Dtmon.h82 struct trip_point tp[MAX_NR_TRIP]; member
Dtmon.c183 trip_type_name[ptdata.tzi[i].tp[j].type], in prepare_logging()
184 ptdata.tzi[i].tp[j].temp); in prepare_logging()
Dtui.c555 x = ptdata.tzi[tz].tp[j].temp / 1000; in draw_tp_line()
557 "%c%d", trip_type_to_char(ptdata.tzi[tz].tp[j].type), in draw_tp_line()
560 tz, j, ptdata.tzi[tz].tp[j].temp); in draw_tp_line()
638 type = trip_type_to_char(ptdata.tzi[i].tp[j].type); in show_sensors_w()
/tools/perf/tests/
DBuild10 perf-y += openat-syscall-tp-fields.o
14 perf-y += evsel-tp-sched.o
/tools/perf/
Dbuiltin-kvm.c1296 char *tp, *name, *sys; in kvm_live_event_list() local
1306 tp = strdup(*events_tp); in kvm_live_event_list()
1307 if (tp == NULL) in kvm_live_event_list()
1311 sys = tp; in kvm_live_event_list()
1312 name = strchr(tp, ':'); in kvm_live_event_list()
1316 free(tp); in kvm_live_event_list()
1324 free(tp); in kvm_live_event_list()
1328 free(tp); in kvm_live_event_list()

12