Lines Matching defs:comm

14 #include "comm.h"
82 static int __db_export__comm(struct db_export *dbe, struct comm *comm,
85 comm->db_id = ++dbe->comm_last_db_id;
88 return dbe->export_comm(dbe, comm, thread);
93 int db_export__comm(struct db_export *dbe, struct comm *comm,
96 if (comm->db_id)
99 return __db_export__comm(dbe, comm, thread);
103 * Export the "exec" comm. The "exec" comm is the program / application command
108 int db_export__exec_comm(struct db_export *dbe, struct comm *comm,
113 if (comm->db_id)
116 err = __db_export__comm(dbe, comm, main_thread);
121 * Record the main thread for this comm. Note that the main thread can
123 * exec's. An "exec" comm however will only ever have 1 main thread.
126 * "exec" comm and non-main threads is 1-to-1. That is why
130 return db_export__comm_thread(dbe, comm, main_thread);
133 int db_export__comm_thread(struct db_export *dbe, struct comm *comm,
141 return dbe->export_comm_thread(dbe, db_id, comm, thread);
292 struct machine *machine, struct comm **comm_ptr)
294 struct comm *comm = NULL;
295 struct comm *curr_comm;
307 * Export comm before exporting the non-main thread because
310 comm = machine__thread_exec_comm(machine, main_thread);
311 if (comm) {
312 err = db_export__exec_comm(dbe, comm, main_thread);
315 *comm_ptr = comm;
324 bool export_comm_thread = comm && !thread->db_id;
331 err = db_export__comm_thread(dbe, comm, thread);
356 struct comm *comm = NULL;
369 err = db_export__threads(dbe, thread, main_thread, al->maps->machine, &comm);
373 if (comm)
374 es.comm_db_id = comm->db_id;
402 err = thread_stack__process(thread, comm, sample, al,
526 struct comm **comm_ptr, bool *is_idle)
560 struct comm *comm_a = NULL;
561 struct comm *comm_b = NULL;