| /tools/perf/util/ |
| A D | thread.c | 29 if (pid == thread__tid(thread) || pid == -1) { in thread__init_maps() 244 if (second_last && !last->start && thread__pid(thread) == thread__tid(thread)) in thread__exec_comm() 295 thread__pid(thread), thread__tid(thread)) >= (int)sizeof(path)) && in thread__set_comm_from_proc() 354 return fprintf(fp, "Thread %d %s\n", thread__tid(thread), thread__comm_str(thread)) + in thread__fprintf() 406 thread__pid(thread), thread__tid(thread), in thread__clone_maps() 407 thread__pid(parent), thread__tid(parent)); in thread__clone_maps() 426 thread__set_ppid(thread, thread__tid(parent)); in thread__fork() 489 tid = thread__tid(thread); in thread__e_machine() 531 if (thread__pid(thread) == thread__tid(thread)) in thread__main_thread()
|
| A D | threads.c | 71 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()
|
| A D | thread.h | 154 static inline pid_t thread__tid(const struct thread *thread) in thread__tid() function 351 !intlist__has_entry(symbol_conf.tid_list, thread__tid(thread))) { in thread__is_filtered()
|
| A D | unwind-libdw.c | 303 err = !dwfl_attach_state(ui->dwfl, EM_NONE, thread__tid(thread), &callbacks, ui); in unwind__get_entries() 307 err = dwfl_getthread_frames(ui->dwfl, thread__tid(thread), frame_callback, ui); in unwind__get_entries()
|
| A D | data-convert-json.c | 178 output_json_key_format(out, true, 3, "tid", "%i", thread__tid(al.thread)); in process_sample_event()
|
| A D | db-export.c | 544 *is_idle = !thread__pid(thread) && !thread__tid(thread); in db_export__pid_tid()
|
| A D | thread-stack.c | 115 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()
|
| A D | machine.c | 485 if (thread__pid(th) == thread__tid(th)) in machine__update_thread_pid() 509 thread__pid(th), thread__tid(th)); in machine__update_thread_pid() 518 pr_err("Failed to join map groups for %d:%d\n", thread__pid(th), thread__tid(th)); in machine__update_thread_pid() 1883 thread__pid(parent), thread__tid(parent)); in machine__process_fork_event()
|
| A D | cs-etm.c | 1582 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()
|
| A D | event.c | 767 dump_printf(" ... thread: %s:%d\n", thread__comm_str(thread), thread__tid(thread)); in machine__resolve()
|
| A D | sort.c | 113 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() 159 if (thread__pid(he->thread) == thread__tid(he->thread)) { in hist_entry__tgid_snprintf()
|
| A D | hist.c | 2973 thread__tid(thread)); in __hists__scnprintf_title()
|
| A D | intel-pt.c | 1463 if (ptq->guest_thread && thread__tid(ptq->guest_thread) != tid) in intel_pt_get_guest_from_sideband()
|
| /tools/perf/ |
| A D | builtin-report.c | 908 if (thread__tid(thread) <= 0) in thread_level() 928 thread__pid(thread), thread__tid(thread), in task__print_level() 956 if (thread__tid(a) == thread__tid(b)) in task_list_cmp() 960 if (thread__tid(a) == 0) in task_list_cmp() 963 if (thread__tid(b) == 0) in task_list_cmp() 968 return thread__tid(a) < thread__tid(b) ? -1 : 1; in task_list_cmp() 984 pr_err("Missing parent thread of %d\n", thread__tid(a)); in task_list_cmp() 995 pr_err("Missing parent thread of %d\n", thread__tid(b)); in task_list_cmp() 1008 pr_err("Missing parent thread of %d\n", thread__tid(a)); in task_list_cmp() 1022 if (thread__tid(a) == thread__tid(b)) { in task_list_cmp() [all …]
|
| A D | builtin-sched.c | 910 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() 1368 thread__tid(work_list->thread)); in output_lat_thread() 1391 l_tid = thread__tid(l->thread); in pid_cmp() 1392 r_tid = thread__tid(r->thread); in pid_cmp() 1761 tr->shortname, thread__comm_str(sched_in), thread__tid(sched_in)); in map_switch_event() 2054 pid_t tid = thread__tid(thread); in timehist_get_commstr() 2196 c = (thread__tid(thread) == 0) ? 'i' : 's'; in timehist_print_sample() 2223 printf(" %5c ", thread__tid(thread) == 0 ? 'I' : state); in timehist_print_sample() 2233 if (thread__tid(thread) == 0) in timehist_print_sample() [all …]
|
| A D | builtin-trace.c | 1717 if (thread__pid(thread) == thread__tid(thread)) { in thread__read_fd_path() 1723 thread__pid(thread), thread__tid(thread), fd); in thread__read_fd_path() 1917 printed += fprintf(fp, "%d ", thread__tid(thread)); in trace__fprintf_comm_tid() 2659 thread__tid(thread)); in thread__update_stats() 4109 pids[nr++] = thread__tid(parent); in trace__set_filter_loop_pids() 4901 printed += fprintf(fp, " %s (%d), ", thread__comm_str(thread), thread__tid(thread)); in trace__fprintf_thread() 4936 return thread__tid(a->thread) < thread__tid(b->thread) in trace_nr_events_cmp() 4938 : (thread__tid(a->thread) > thread__tid(b->thread) ? 1 : 0); in trace_nr_events_cmp()
|
| A D | builtin-kmem.c | 979 dump_printf(" ... thread: %s:%d\n", thread__comm_str(thread), thread__tid(thread)); in process_sample_event()
|
| /tools/perf/tests/ |
| A D | hists_common.c | 214 i, thread__comm_str(he->thread), thread__tid(he->thread), in print_hists_out()
|
| A D | hists_output.c | 135 #define PID(he) (thread__tid(he->thread))
|
| /tools/perf/ui/browsers/ |
| A D | hists.c | 2592 comm_set_str, thread__tid(thread)); in do_zoom_thread() 2623 in_out, comm_set_str, thread__tid(thread)); in add_thread_opt()
|
| /tools/perf/util/scripting-engines/ |
| A D | trace-event-python.c | 1184 tuple_set_s32(t, 4, thread__tid(thread)); in python_export_thread()
|