Lines Matching refs: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);
296 struct machine *machine, struct comm **comm_ptr)
298 struct comm *comm = NULL;
299 struct comm *curr_comm;
311 * Export comm before exporting the non-main thread because
314 comm = machine__thread_exec_comm(machine, main_thread);
315 if (comm) {
316 err = db_export__exec_comm(dbe, comm, main_thread);
319 *comm_ptr = comm;
328 bool export_comm_thread = comm && !thread__db_id(thread);
335 err = db_export__comm_thread(dbe, comm, thread);
360 struct comm *comm = NULL;
375 err = db_export__threads(dbe, thread, main_thread, machine, &comm);
379 if (comm)
380 es.comm_db_id = comm->db_id;
404 err = thread_stack__process(thread, comm, sample, al,
530 struct comm **comm_ptr, bool *is_idle)
564 struct comm *comm_a = NULL;
565 struct comm *comm_b = NULL;