Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 185) sorted by relevance

12345678

/tools/perf/scripts/python/
A Dfutex-contention.py35 process_names[tid] = comm
36 thread_thislock[tid] = uaddr
37 thread_blocktime[tid] = nsecs(s, ns)
42 if tid in thread_blocktime:
43 elapsed = nsecs(s, ns) - thread_blocktime[tid]
44 add_stats(lock_waits, (tid, thread_thislock[tid]), elapsed)
45 del thread_blocktime[tid]
46 del thread_thislock[tid]
54 for (tid, lock) in lock_waits:
55 min, max, avg, count = lock_waits[tid, lock]
[all …]
A Dtask-analyzer.py307 self.tid = tid
536 self.tid = tid
659 if task.pid == task.tid:
662 if task.tid in db["tid"]:
701 tid = task.tid
702 if tid not in db["tid"]:
703 db["tid"][tid] = []
723 if tid == 0:
725 _id = _task_id(tid, cpu)
753 if tid == 0:
[all …]
/tools/perf/dlfilters/
A Ddlfilter-show-cycles.c29 __s32 tid; member
49 __u32 pos = tid & MASK; in find_entry()
54 if (e->tid == tid) in find_entry()
68 e->tid = tid; in find_entry()
74 struct entry *e = find_entry(tid); in add_entry()
83 __s32 tid = sample->tid; in filter_event_early() local
93 else if (tid != -1) in filter_event_early()
94 add_entry(tid, pos, sample->cyc_cnt); in filter_event_early()
109 __s32 tid = sample->tid; in filter_event() local
120 if (tid != -1) { in filter_event()
[all …]
/tools/testing/selftests/net/
A Dsrv6_end_dt46_l3vpn_test.sh279 local tid=$3
297 ip -netns ${rtname} link add vrf-${tid} type vrf table ${tid}
321 local tid=$5
358 vrf vrf-${tid}
361 vrf vrf-${tid}
420 local tid=$3
431 local tid=$3
442 local tid=$3
445 log_test $? 0 "IPv6 Hosts connectivity: hs-t${tid}-${hssrc} -> hs-t${tid}-${hsdst} (tenant ${tid})"
448 log_test $? 0 "IPv4 Hosts connectivity: hs-t${tid}-${hssrc} -> hs-t${tid}-${hsdst} (tenant ${tid})"
[all …]
A Dsrv6_end_dt4_l3vpn_test.sh248 local tid=$3
249 eval local hsname=\${hs_t${tid}_${hid}}
251 local rtveth=veth-t${tid}
261 ip -netns ${rtname} link add vrf-${tid} type vrf table ${tid}
280 local tid=$5
296 encap seg6local action End.DT4 vrftable ${tid} dev vrf-${tid}
367 local tid=$3
378 local tid=$3
381 log_test $? 0 "Hosts connectivity: hs-t${tid}-${hssrc} -> hs-t${tid}-${hsdst} (tenant ${tid})"
400 local tid=$2
[all …]
A Dsrv6_end_dt6_l3vpn_test.sh248 local tid=$3
251 local rtveth=veth-t${tid}
265 ip -netns ${rtname} link add vrf-${tid} type vrf table ${tid}
287 local tid=$5
291 local rtveth=veth-t${tid}
306 encap seg6local action End.DT6 vrftable ${tid} dev vrf-${tid}
377 local tid=$3
388 local tid=$3
391 log_test $? 0 "Hosts connectivity: hs-t${tid}-${hssrc} -> hs-t${tid}-${hsdst} (tenant ${tid})"
410 local tid=$2
[all …]
A Dsrv6_end_dx6_netfilter_test.sh210 local tid=$3
213 local rtveth=veth-t${tid}
239 local tid=$5
241 local hssrc_name=hs-t${tid}-${hssrc}
242 local hsdst_name=hs-t${tid}-${hsdst}
245 local rtveth=veth-t${tid}
246 local vpn_sid=${SID_LOCATOR}:${hssrc}${hsdst}:${tid}::6004
285 local tid=$3
295 local tid=$3
297 check_hs_connectivity ${hssrc} ${hsdst} ${tid}
[all …]
A Dsrv6_end_dx4_netfilter_test.sh211 local tid=$3
214 local rtveth=veth-t${tid}
237 local tid=$5
239 local hssrc_name=hs-t${tid}-${hssrc}
240 local hsdst_name=hs-t${tid}-${hsdst}
243 local vpn_sid=${SID_LOCATOR}:${hssrc}${hsdst}:${tid}::6004
255 encap seg6local action End.DX4 nh4 ${IPv4_HS_NETWORK}.${hsdst} dev veth-t${tid}
280 local tid=$3
290 local tid=$3
292 check_hs_connectivity ${hssrc} ${hsdst} ${tid}
[all …]
/tools/testing/selftests/powerpc/mm/
A Dtlbie_test.c206 char *start = compute_chunk_start_addr(tid); in compute_store_pattern()
268 sprintf(logfile, logfilename, tid); in start_verification_log()
278 fp[tid] = f; in start_verification_log()
282 fprintf(f, "Thread id = %02d\n", tid); in start_verification_log()
294 FILE *f = fp[tid]; in log_anamoly()
309 FILE *f = fp[tid]; in end_verification_log()
316 sprintf(logfile, logfilename, tid); in end_verification_log()
327 tid, nr_anamolies, path); in end_verification_log()
369 start_verification_log(tid, next_store_addr, in verify_chunk()
394 end_verification_log(tid, nr_anamolies); in verify_chunk()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dpreempted_bpf_ma_op.c47 pthread_t tid[ALLOC_THREAD_NR]; in test_preempted_bpf_ma_op() local
72 memset(tid, 0, sizeof(tid)); in test_preempted_bpf_ma_op()
73 for (i = 0; i < ARRAY_SIZE(tid); i++) { in test_preempted_bpf_ma_op()
74 err = pthread_create(&tid[i], NULL, run_alloc_prog, &ctx[i]); in test_preempted_bpf_ma_op()
79 for (i = 0; i < ARRAY_SIZE(tid); i++) { in test_preempted_bpf_ma_op()
80 if (!tid[i]) in test_preempted_bpf_ma_op()
82 pthread_join(tid[i], NULL); in test_preempted_bpf_ma_op()
/tools/perf/util/
A Dthreads.c9 return &threads->table[(unsigned int)tid % THREADS__TABLE_SIZE]; in threads__table()
65 pid_t tid) in __threads_table_entry__get_last_match() argument
71 if (thread__tid(th) == tid) in __threads_table_entry__get_last_match()
92 struct thread *threads__find(struct threads *threads, pid_t tid) in threads__find() argument
94 struct threads_table_entry *table = threads__table(threads, tid); in threads__find()
98 res = __threads_table_entry__get_last_match(table, tid); in threads__find()
100 if (hashmap__find(&table->shard, tid, &res)) in threads__find()
111 struct threads_table_entry *table = threads__table(threads, tid); in threads__findnew()
116 res = thread__new(pid, tid); in threads__findnew()
118 if (hashmap__add(&table->shard, tid, res)) { in threads__findnew()
[all …]
A Dvalues.c17 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
39 zfree(&values->tid); in perf_read_values_init()
55 zfree(&values->tid); in perf_read_values_destroy()
63 *ntid = realloc(values->tid, nthreads_max * sizeof(*values->tid)), in perf_read_values__enlarge_threads()
71 values->tid = ntid; in perf_read_values__enlarge_threads()
83 u32 pid, u32 tid) in perf_read_values__findnew_thread() argument
88 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
105 values->tid[i] = tid; in perf_read_values__findnew_thread()
169 u32 pid, u32 tid, in perf_read_values_add_value() argument
224 tidwidth, values->tid[i]); in perf_read_values__display_pretty()
[all …]
A Dtarget.c22 target->tid = target->pid; in target__validate()
25 if (target->tid && target->cpu_list) { in target__validate()
32 if (target->tid && target->system_wide) { in target__validate()
46 if (target->bpf_str && target->tid) { in target__validate()
47 target->tid = NULL; in target__validate()
A Dthread_map.h13 struct perf_thread_map *thread_map__new_by_tid(pid_t tid);
14 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid);
18 const char *tid, bool all_threads);
A Dthread_map.c62 struct perf_thread_map *thread_map__new_by_tid(pid_t tid) in thread_map__new_by_tid() argument
67 perf_thread_map__set_pid(threads, 0, tid); in thread_map__new_by_tid()
151 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid) in thread_map__new() argument
156 return thread_map__new_by_tid(tid); in thread_map__new()
225 pid_t tid, prev_tid = INT_MAX; in thread_map__new_by_tid_str() local
240 tid = strtol(pos->s, &end_ptr, 10); in thread_map__new_by_tid_str()
242 if (tid == INT_MIN || tid == INT_MAX || in thread_map__new_by_tid_str()
246 if (tid == prev_tid) in thread_map__new_by_tid_str()
256 perf_thread_map__set_pid(threads, ntasks - 1, tid); in thread_map__new_by_tid_str()
270 struct perf_thread_map *thread_map__new_str(const char *pid, const char *tid, bool all_threads) in thread_map__new_str() argument
[all …]
/tools/perf/util/bpf_skel/
A Dsyscall_summary.bpf.c105 int tid; in sys_enter() local
115 tid = bpf_get_current_pid_tgid(); in sys_enter()
116 bpf_map_update_elem(&syscall_trace_map, &tid, &st, BPF_ANY); in sys_enter()
124 int tid; in sys_exit() local
134 tid = bpf_get_current_pid_tgid(); in sys_exit()
135 st = bpf_map_lookup_elem(&syscall_trace_map, &tid); in sys_exit()
140 key = tid; in sys_exit()
149 bpf_map_delete_elem(&syscall_trace_map, &tid); in sys_exit()
A Dfunc_latency.bpf.c148 __u64 tid; in BPF_PROG() local
154 tid = bpf_get_current_pid_tgid(); in BPF_PROG()
156 start = bpf_map_lookup_elem(&functime, &tid); in BPF_PROG()
159 bpf_map_delete_elem(&functime, &tid); in BPF_PROG()
184 __u64 tid; in BPF_PROG() local
190 tid = bpf_get_current_pid_tgid(); in BPF_PROG()
192 start = bpf_map_lookup_elem(&functime, &tid); in BPF_PROG()
195 bpf_map_delete_elem(&functime, &tid); in BPF_PROG()
/tools/sched_ext/include/scx/
A Dcompat.h29 s32 tid; in __COMPAT_read_enum() local
34 tid = btf__find_by_name(__COMPAT_vmlinux_btf, type); in __COMPAT_read_enum()
35 if (tid < 0) in __COMPAT_read_enum()
38 t = btf__type_by_id(__COMPAT_vmlinux_btf, tid); in __COMPAT_read_enum()
39 SCX_BUG_ON(!t, "btf__type_by_id(%d)", tid); in __COMPAT_read_enum()
86 s32 tid; in __COMPAT_struct_has_field() local
90 tid = btf__find_by_name_kind(__COMPAT_vmlinux_btf, type, BTF_KIND_STRUCT); in __COMPAT_struct_has_field()
91 if (tid < 0) in __COMPAT_struct_has_field()
94 t = btf__type_by_id(__COMPAT_vmlinux_btf, tid); in __COMPAT_struct_has_field()
95 SCX_BUG_ON(!t, "btf__type_by_id(%d)", tid); in __COMPAT_struct_has_field()
/tools/testing/selftests/bpf/progs/
A Dtest_kernel_flag.c21 __u32 tid; in BPF_PROG() local
23 tid = bpf_get_current_pid_tgid() & 0xFFFFFFFF; in BPF_PROG()
24 if (!kernel || tid != monitored_tid) in BPF_PROG()
A Draw_tp_null.c10 int tid; variable
18 if (task->pid != tid) in BPF_PROG()
/tools/perf/ui/browsers/
A Dres_sample.c52 res_samples[i].cpu, res_samples[i].tid) < 0) { in res_sample_browse()
83 r->tid ? "--tid " : "", in res_sample_browse()
84 r->tid ? (sprintf(tidbuf, "%d", r->tid), tidbuf) : "", in res_sample_browse()
90 r->tid ? "--show-switch-events --show-task-events " : "", in res_sample_browse()
/tools/testing/selftests/proc/
A Dthread-self.c30 pid_t pid, tid; in f() local
34 tid = sys_gettid(); in f()
35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid); in f()
/tools/testing/selftests/net/netfilter/
A Dudpclash.c58 pthread_t *tid = calloc(THREAD_COUNT, sizeof(pthread_t)); in run_test() local
62 if (!tid) { in run_test()
68 int err = pthread_create(&tid[i], NULL, &thread_main, &thread_args); in run_test()
79 pthread_join(tid[i], NULL); in run_test()
119 free(tid); in run_test()
/tools/perf/tests/
A Ddlfilter-test.c125 static int write_comm(int fd, pid_t pid, pid_t tid, const char *comm_str) in write_comm() argument
135 comm.tid = tid; in write_comm()
146 static int write_mmap(int fd, pid_t pid, pid_t tid, u64 start, u64 len, u64 pgoff, in write_mmap() argument
159 mmap->tid = tid; in write_mmap()
173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument
184 .tid = tid, in write_sample()
325 pid_t tid = 12346; in test__dlfilter_test() local
373 if (write_comm(td->fd, pid, tid, "test-prog")) { in test__dlfilter_test()
377 if (write_mmap(td->fd, pid, tid, MAP_START, 0x10000, 0, td->prog_file_name)) { in test__dlfilter_test()
381 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK) { in test__dlfilter_test()
/tools/testing/selftests/coredump/
A Dstackdump10 tid=$(basename $t)
11 cat /proc/$tid/stat | awk '{print $29}' >> $TMP

Completed in 32 milliseconds

12345678