Home | History | Annotate | Download | only in perf

Lines Matching defs:thread

8 #include "util/thread.h"
399 static struct thread_trace *thread__trace(struct thread *thread, FILE *fp)
403 if (thread == NULL)
406 if (thread->priv == NULL)
407 thread->priv = thread_trace__new();
409 if (thread->priv == NULL)
412 ttrace = thread->priv;
463 static size_t trace__fprintf_entry_head(struct trace *trace, struct thread *thread,
470 printed += fprintf(fp, "%d ", thread->tid);
697 struct thread *thread;
707 thread = machine__findnew_thread(&trace->host, sample->pid,
709 ttrace = thread__trace(thread, trace->output);
719 ttrace = thread->priv;
735 trace__fprintf_entry_head(trace, thread, 1, sample->time, trace->output);
749 struct thread *thread;
759 thread = machine__findnew_thread(&trace->host, sample->pid,
761 ttrace = thread__trace(thread, trace->output);
767 ttrace = thread->priv;
778 trace__fprintf_entry_head(trace, thread, duration, sample->time, trace->output);
816 struct thread *thread = machine__findnew_thread(&trace->host,
819 struct thread_trace *ttrace = thread__trace(thread, trace->output);
896 pr_err("Error parsing thread id string\n");
1130 struct thread *thread = rb_entry(nd, struct thread, rb_node);
1131 struct thread_trace *ttrace = thread->priv;
1148 printed += color_fprintf(fp, color, "%20s", thread->comm);
1149 printed += fprintf(fp, " - %-5d :%11lu [", thread->tid, ttrace->nr_events);
1217 "trace events on existing thread id"),