Lines Matching defs:thread
10 #include "thread.h"
35 struct thread *thread = machine__findnew_thread(machine, 0,
39 if (thread == NULL)
43 thread__set_comm(thread, comm);
61 struct thread *n, *t;
74 struct thread *t = rb_entry(nd, struct thread, rb_node);
257 static struct thread *__machine__findnew_thread(struct machine *machine,
263 struct thread *th;
278 th = rb_entry(parent, struct thread, rb_node);
306 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid,
312 struct thread *machine__find_thread(struct machine *machine, pid_t tid)
319 struct thread *thread = machine__findnew_thread(machine,
326 if (thread == NULL || thread__set_comm(thread, event->comm.comm)) {
423 struct thread *pos = rb_entry(nd, struct thread, rb_node);
1004 struct thread *thread;
1020 thread = machine__findnew_thread(machine, event->mmap2.pid,
1022 if (thread == NULL)
1040 thread__insert_map(thread, map);
1051 struct thread *thread;
1067 thread = machine__findnew_thread(machine, event->mmap.pid,
1069 if (thread == NULL)
1086 thread__insert_map(thread, map);
1094 static void machine__remove_thread(struct machine *machine, struct thread *th)
1099 * We may have references to this thread, for instance in some hist_entry
1107 struct thread *thread = machine__find_thread(machine, event->fork.tid);
1108 struct thread *parent = machine__findnew_thread(machine,
1112 /* if a thread currently exists for the thread id remove it */
1113 if (thread != NULL)
1114 machine__remove_thread(machine, thread);
1116 thread = machine__findnew_thread(machine, event->fork.pid,
1121 if (thread == NULL || parent == NULL ||
1122 thread__fork(thread, parent) < 0) {
1133 struct thread *thread = machine__find_thread(machine, event->fork.tid);
1138 if (thread != NULL)
1139 thread__exited(thread);
1184 static void ip__resolve_ams(struct machine *machine, struct thread *thread,
1203 thread__find_addr_location(thread, machine, m, MAP__FUNCTION,
1215 static void ip__resolve_data(struct machine *machine, struct thread *thread,
1222 thread__find_addr_location(thread, machine, m, MAP__VARIABLE, addr,
1231 struct thread *thr,
1248 struct thread *thr,
1267 struct thread *thread,
1317 thread__find_addr_location(thread, machine, cpumode,
1352 struct thread *thread,
1359 ret = machine__resolve_callchain_sample(machine, thread,
1375 thread, evsel->attr.sample_regs_user,