Lines Matching refs:thread

62 int db_export__thread(struct db_export *dbe, struct thread *thread,  in db_export__thread()  argument
63 struct machine *machine, struct thread *main_thread) in db_export__thread()
67 if (thread->db_id) in db_export__thread()
70 thread->db_id = ++dbe->thread_last_db_id; in db_export__thread()
76 return dbe->export_thread(dbe, thread, main_thread_db_id, in db_export__thread()
83 struct thread *thread) in __db_export__comm() argument
88 return dbe->export_comm(dbe, comm, thread); in __db_export__comm()
94 struct thread *thread) in db_export__comm() argument
99 return __db_export__comm(dbe, comm, thread); in db_export__comm()
109 struct thread *main_thread) in db_export__exec_comm()
134 struct thread *thread) in db_export__comm_thread() argument
141 return dbe->export_comm_thread(dbe, db_id, comm, thread); in db_export__comm_thread()
211 struct thread *thread, in call_path_from_sample() argument
229 err = thread__resolve_callchain(thread, &callchain_cursor, evsel, in call_path_from_sample()
254 al.maps = thread->maps; in call_path_from_sample()
290 static int db_export__threads(struct db_export *dbe, struct thread *thread, in db_export__threads() argument
291 struct thread *main_thread, in db_export__threads()
319 if (thread != main_thread) { in db_export__threads()
324 bool export_comm_thread = comm && !thread->db_id; in db_export__threads()
326 err = db_export__thread(dbe, thread, machine, main_thread); in db_export__threads()
331 err = db_export__comm_thread(dbe, comm, thread); in db_export__threads()
337 curr_comm = thread__comm(thread); in db_export__threads()
339 return db_export__comm(dbe, curr_comm, thread); in db_export__threads()
348 struct thread *thread = al->thread; in db_export__sample() local
355 struct thread *main_thread; in db_export__sample()
367 main_thread = thread__main_thread(al->maps->machine, thread); in db_export__sample()
369 err = db_export__threads(dbe, thread, main_thread, al->maps->machine, &comm); in db_export__sample()
384 thread, sample, in db_export__sample()
398 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()
526 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid() local
527 struct thread *main_thread; in db_export__pid_tid()
530 if (!thread || !thread->comm_set) in db_export__pid_tid()
533 *is_idle = !thread->pid_ && !thread->tid; in db_export__pid_tid()
535 main_thread = thread__main_thread(machine, thread); in db_export__pid_tid()
537 err = db_export__threads(dbe, thread, main_thread, machine, comm_ptr); in db_export__pid_tid()
539 *db_id = thread->db_id; in db_export__pid_tid()
543 thread__put(thread); in db_export__pid_tid()