Home
last modified time | relevance | path

Searched refs:thread__tid (Results 1 – 21 of 21) sorted by relevance

/linux-6.15/tools/perf/util/
H A Dthread.c29 if (pid == thread__tid(thread) || pid == -1) { in thread__init_maps()
228 if (second_last && !last->start && thread__pid(thread) == thread__tid(thread)) in thread__exec_comm()
278 thread__pid(thread), thread__tid(thread)) >= (int)sizeof(path)) && in thread__set_comm_from_proc()
336 return fprintf(fp, "Thread %d %s\n", thread__tid(thread), thread__comm_str(thread)) + in thread__fprintf()
388 thread__pid(thread), thread__tid(thread), in thread__clone_maps()
389 thread__pid(parent), thread__tid(parent)); in thread__clone_maps()
408 thread__set_ppid(thread, thread__tid(parent)); in thread__fork()
467 tid = thread__tid(thread); in thread__e_machine()
508 if (thread__pid(thread) == thread__tid(thread)) in thread__main_thread()
H A Dthreads.c71 if (thread__tid(th) == tid) in __threads_table_entry__get_last_match()
156 struct threads_table_entry *table = threads__table(threads, thread__tid(thread)); in threads__remove()
163 hashmap__delete(&table->shard, thread__tid(thread), /*old_key=*/NULL, &old_value); in threads__remove()
H A Dunwind-libdw.c300 err = !dwfl_attach_state(ui->dwfl, EM_NONE, thread__tid(thread), &callbacks, ui); in unwind__get_entries()
304 err = dwfl_getthread_frames(ui->dwfl, thread__tid(thread), frame_callback, ui); in unwind__get_entries()
H A Dthread.h154 static inline pid_t thread__tid(const struct thread *thread) in thread__tid() function
350 !intlist__has_entry(symbol_conf.tid_list, thread__tid(thread))) { in thread__is_filtered()
H A Ddata-convert-json.c178 output_json_key_format(out, true, 3, "tid", "%i", thread__tid(al.thread)); in process_sample_event()
H A Ddb-export.c539 *is_idle = !thread__pid(thread) && !thread__tid(thread); in db_export__pid_tid()
H A Dthread-stack.c115 return !(thread__tid(thread) || thread__pid(thread)); in thread_stack__per_cpu()
1129 if (ts->comm != comm && thread__pid(thread) == thread__tid(thread)) { in thread_stack__process()
H A Dmachine.c450 if (thread__pid(th) == thread__tid(th)) in machine__update_thread_pid()
474 thread__pid(th), thread__tid(th)); in machine__update_thread_pid()
483 pr_err("Failed to join map groups for %d:%d\n", thread__pid(th), thread__tid(th)); in machine__update_thread_pid()
1848 thread__pid(parent), thread__tid(parent)); in machine__process_fork_event()
H A Dcs-etm.c1582 sample.tid = thread__tid(tidq->thread); in cs_etm__synth_instruction_sample()
1643 sample.tid = thread__tid(tidq->prev_packet_thread); in cs_etm__synth_branch_sample()
2609 if (tid == -1 || thread__tid(tidq->thread) == tid) in cs_etm__process_timeless_queues()
H A Devent.c744 dump_printf(" ... thread: %s:%d\n", thread__comm_str(thread), thread__tid(thread)); in machine__resolve()
H A Dsort.c113 return thread__tid(right->thread) - thread__tid(left->thread); in sort__thread_cmp()
122 return repsep_snprintf(bf, size, "%7d:%-*.*s", thread__tid(he->thread), in hist_entry__thread_snprintf()
H A Dhist.c2897 thread__tid(thread)); in __hists__scnprintf_title()
H A Dintel-pt.c1461 if (ptq->guest_thread && thread__tid(ptq->guest_thread) != tid) in intel_pt_get_guest_from_sideband()
/linux-6.15/tools/perf/
H A Dbuiltin-report.c898 if (thread__tid(thread) <= 0) in thread_level()
918 thread__pid(thread), thread__tid(thread), in task__print_level()
946 if (thread__tid(a) == thread__tid(b)) in task_list_cmp()
950 if (thread__tid(a) == 0) in task_list_cmp()
953 if (thread__tid(b) == 0) in task_list_cmp()
958 return thread__tid(a) < thread__tid(b) ? -1 : 1; in task_list_cmp()
974 pr_err("Missing parent thread of %d\n", thread__tid(a)); in task_list_cmp()
985 pr_err("Missing parent thread of %d\n", thread__tid(b)); in task_list_cmp()
998 pr_err("Missing parent thread of %d\n", thread__tid(a)); in task_list_cmp()
1012 if (thread__tid(a) == thread__tid(b)) { in task_list_cmp()
[all …]
H A Dbuiltin-sched.c910 register_pid(sched, thread__tid(parent), thread__comm_str(parent)); in replay_fork_event()
911 register_pid(sched, thread__tid(child), thread__comm_str(child)); in replay_fork_event()
1353 thread__tid(work_list->thread)); in output_lat_thread()
1376 l_tid = thread__tid(l->thread); in pid_cmp()
1377 r_tid = thread__tid(r->thread); in pid_cmp()
1742 tr->shortname, thread__comm_str(sched_in), thread__tid(sched_in)); in map_switch_event()
2027 pid_t tid = thread__tid(thread); in timehist_get_commstr()
2169 c = (thread__tid(thread) == 0) ? 'i' : 's'; in timehist_print_sample()
2191 printf(" %5c ", thread__tid(thread) == 0 ? 'I' : state); in timehist_print_sample()
2201 if (thread__tid(thread) == 0) in timehist_print_sample()
[all …]
H A Dbuiltin-trace.c1722 if (thread__pid(thread) == thread__tid(thread)) { in thread__read_fd_path()
1728 thread__pid(thread), thread__tid(thread), fd); in thread__read_fd_path()
1922 printed += fprintf(fp, "%d ", thread__tid(thread)); in trace__fprintf_comm_tid()
2652 thread__tid(thread)); in thread__update_stats()
4130 pids[nr++] = thread__tid(parent); in trace__set_filter_loop_pids()
4922 printed += fprintf(fp, " %s (%d), ", thread__comm_str(thread), thread__tid(thread)); in trace__fprintf_thread()
4957 return thread__tid(a->thread) < thread__tid(b->thread) in trace_nr_events_cmp()
4959 : (thread__tid(a->thread) > thread__tid(b->thread) ? 1 : 0); in trace_nr_events_cmp()
H A Dbuiltin-kmem.c979 dump_printf(" ... thread: %s:%d\n", thread__comm_str(thread), thread__tid(thread)); in process_sample_event()
/linux-6.15/tools/perf/tests/
H A Dhists_common.c214 i, thread__comm_str(he->thread), thread__tid(he->thread), in print_hists_out()
H A Dhists_output.c135 #define PID(he) (thread__tid(he->thread))
/linux-6.15/tools/perf/ui/browsers/
H A Dhists.c2562 comm_set_str, thread__tid(thread)); in do_zoom_thread()
2593 in_out, comm_set_str, thread__tid(thread)); in add_thread_opt()
/linux-6.15/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c1185 tuple_set_s32(t, 4, thread__tid(thread)); in python_export_thread()