thread__tid
dump_printf(" ... thread: %s:%d\n", thread__comm_str(thread), thread__tid(thread));
pr_err("Missing parent thread of %d\n", thread__tid(a));
pr_err("Missing parent thread of %d\n", thread__tid(b));
if (thread__tid(a) == thread__tid(b)) {
res = thread__tid(a) < thread__tid(b) ? -1 : 1;
if (thread__tid(thread) <= 0)
pr_err("Missing parent thread of %d\n", thread__tid(thread));
thread__pid(thread), thread__tid(thread),
if (thread__tid(a) == thread__tid(b))
if (thread__tid(a) == 0)
if (thread__tid(b) == 0)
return thread__tid(a) < thread__tid(b) ? -1 : 1;
pr_err("Missing parent thread of %d\n", thread__tid(a));
pr_err("Missing parent thread of %d\n", thread__tid(b));
register_pid(sched, thread__tid(migrant), thread__comm_str(migrant));
thread__tid(work_list->thread));
l_tid = thread__tid(l->thread);
r_tid = thread__tid(r->thread);
if (new_shortname || tr->comm_changed || (verbose > 0 && thread__tid(sched_in))) {
tr->shortname, thread__comm_str(sched_in), thread__tid(sched_in));
pid_t tid = thread__tid(thread);
c = (thread__tid(thread) == 0) ? 'i' : 's';
printf(" %5c ", thread__tid(thread) == 0 ? 'I' : state);
if (thread__tid(thread) == 0)
if (!sched->idle_hist || thread__tid(thread) == 0) {
printf("... parent: %s/%d\n", thread__comm_str(parent), thread__tid(parent));
printf("... child: %s/%d\n", thread__comm_str(child), thread__tid(child));
register_pid(sched, thread__tid(parent), thread__comm_str(parent));
register_pid(sched, thread__tid(child), thread__comm_str(child));
if (thread__pid(thread) == thread__tid(thread)) {
thread__pid(thread), thread__tid(thread), fd);
printed += fprintf(fp, "%d ", thread__tid(thread));
thread__tid(thread));
pids[nr++] = thread__tid(parent);
printed += fprintf(fp, " %s (%d), ", thread__comm_str(thread), thread__tid(thread));
return thread__tid(a->thread) < thread__tid(b->thread)
: (thread__tid(a->thread) > thread__tid(b->thread) ? 1 : 0);
i, thread__comm_str(he->thread), thread__tid(he->thread),
#define PID(he) (thread__tid(he->thread))
comm_set_str, thread__tid(thread));
in_out, comm_set_str, thread__tid(thread));
sample.tid = thread__tid(tidq->thread);
sample.tid = thread__tid(tidq->prev_packet_thread);
if (tid == -1 || thread__tid(tidq->thread) == tid)
output_json_key_format(out, true, 3, "tid", "%i", thread__tid(al.thread));
*is_idle = !thread__pid(thread) && !thread__tid(thread);
dump_printf(" ... thread: %s:%d\n", thread__comm_str(thread), thread__tid(thread));
thread__tid(thread));
if (ptq->guest_thread && thread__tid(ptq->guest_thread) != tid)
thread__pid(parent), thread__tid(parent));
if (thread__pid(th) == thread__tid(th))
thread__pid(th), thread__tid(th));
pr_err("Failed to join map groups for %d:%d\n", thread__pid(th), thread__tid(th));
tuple_set_s32(t, 4, thread__tid(thread));
return thread__tid(right->thread) - thread__tid(left->thread);
return repsep_snprintf(bf, size, "%7d:%-*.*s", thread__tid(he->thread),
if (thread__pid(he->thread) == thread__tid(he->thread)) {
if (ts->comm != comm && thread__pid(thread) == thread__tid(thread)) {
return !(thread__tid(thread) || thread__pid(thread));
if (second_last && !last->start && thread__pid(thread) == thread__tid(thread))
if (pid == thread__tid(thread) || pid == -1) {
thread__pid(thread), thread__tid(thread)) >= (int)sizeof(path)) &&
return fprintf(fp, "Thread %d %s\n", thread__tid(thread), thread__comm_str(thread)) +
thread__pid(thread), thread__tid(thread),
thread__pid(parent), thread__tid(parent));
thread__set_ppid(thread, thread__tid(parent));
tid = thread__tid(thread);
if (thread__pid(thread) == thread__tid(thread))
!intlist__has_entry(symbol_conf.tid_list, thread__tid(thread))) {
struct threads_table_entry *table = threads__table(threads, thread__tid(thread));
hashmap__delete(&table->shard, thread__tid(thread), /*old_key=*/NULL, &old_value);
if (thread__tid(th) == tid)
dwfl_attach_state(dwfl, /*elf=*/NULL, thread__tid(thread), &callbacks,
err = dwfl_getthread_frames(dwfl, thread__tid(thread), frame_callback,