Lines Matching refs:comm
82 static int __db_export__comm(struct db_export *dbe, struct comm *comm, in __db_export__comm() argument
85 comm->db_id = ++dbe->comm_last_db_id; in __db_export__comm()
88 return dbe->export_comm(dbe, comm, thread); in __db_export__comm()
93 int db_export__comm(struct db_export *dbe, struct comm *comm, in db_export__comm() argument
96 if (comm->db_id) in db_export__comm()
99 return __db_export__comm(dbe, comm, thread); in db_export__comm()
108 int db_export__exec_comm(struct db_export *dbe, struct comm *comm, in db_export__exec_comm() argument
113 if (comm->db_id) in db_export__exec_comm()
116 err = __db_export__comm(dbe, comm, main_thread); in db_export__exec_comm()
130 return db_export__comm_thread(dbe, comm, main_thread); in db_export__exec_comm()
133 int db_export__comm_thread(struct db_export *dbe, struct comm *comm, in db_export__comm_thread() argument
141 return dbe->export_comm_thread(dbe, db_id, comm, thread); in db_export__comm_thread()
292 struct machine *machine, struct comm **comm_ptr) in db_export__threads()
294 struct comm *comm = NULL; in db_export__threads() local
295 struct comm *curr_comm; in db_export__threads()
310 comm = machine__thread_exec_comm(machine, main_thread); in db_export__threads()
311 if (comm) { in db_export__threads()
312 err = db_export__exec_comm(dbe, comm, main_thread); in db_export__threads()
315 *comm_ptr = comm; in db_export__threads()
324 bool export_comm_thread = comm && !thread->db_id; in db_export__threads()
331 err = db_export__comm_thread(dbe, comm, thread); in db_export__threads()
356 struct comm *comm = NULL; in db_export__sample() local
369 err = db_export__threads(dbe, thread, main_thread, al->maps->machine, &comm); in db_export__sample()
373 if (comm) in db_export__sample()
374 es.comm_db_id = comm->db_id; in db_export__sample()
402 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()
526 struct comm **comm_ptr, bool *is_idle) in db_export__pid_tid()
560 struct comm *comm_a = NULL; in db_export__switch()
561 struct comm *comm_b = NULL; in db_export__switch()