Lines Matching refs:comm

137 	char *comm;  member
156 char *comm; member
174 cmdlines[i].comm = cmdlist->comm; in cmdline_init()
191 const struct cmdline *comm; in find_cmdline() local
202 comm = bsearch(&key, pevent->cmdlines, pevent->cmdline_count, in find_cmdline()
205 if (comm) in find_cmdline()
206 return comm->comm; in find_cmdline()
220 const struct cmdline *comm; in pevent_pid_is_registered() local
231 comm = bsearch(&key, pevent->cmdlines, pevent->cmdline_count, in pevent_pid_is_registered()
234 if (comm) in pevent_pid_is_registered()
244 static int add_new_comm(struct pevent *pevent, const char *comm, int pid) in add_new_comm() argument
269 cmdlines[pevent->cmdline_count].comm = strdup(comm); in add_new_comm()
270 if (!cmdlines[pevent->cmdline_count].comm) { in add_new_comm()
278 if (cmdlines[pevent->cmdline_count].comm) in add_new_comm()
296 int pevent_register_comm(struct pevent *pevent, const char *comm, int pid) in pevent_register_comm() argument
301 return add_new_comm(pevent, comm, pid); in pevent_register_comm()
307 if (comm) in pevent_register_comm()
308 item->comm = strdup(comm); in pevent_register_comm()
310 item->comm = strdup("<...>"); in pevent_register_comm()
311 if (!item->comm) { in pevent_register_comm()
5193 const char *comm; in pevent_data_comm_from_pid() local
5195 comm = find_cmdline(pevent, pid); in pevent_data_comm_from_pid()
5196 return comm; in pevent_data_comm_from_pid()
5200 pid_from_cmdlist(struct pevent *pevent, const char *comm, struct cmdline *next) in pid_from_cmdlist() argument
5209 while (cmdlist && strcmp(cmdlist->comm, comm) != 0) in pid_from_cmdlist()
5228 struct cmdline *pevent_data_pid_from_comm(struct pevent *pevent, const char *comm, in pevent_data_pid_from_comm() argument
5238 return pid_from_cmdlist(pevent, comm, next); in pevent_data_pid_from_comm()
5256 if (strcmp(cmdline->comm, comm) == 0) in pevent_data_pid_from_comm()
5339 const char *comm; in pevent_print_event() local
5368 comm = find_cmdline(pevent, pid); in pevent_print_event()
5372 comm, pid, record->cpu); in pevent_print_event()
5375 trace_seq_printf(s, "%16s-%-5d [%03d]", comm, pid, record->cpu); in pevent_print_event()
6652 free(pevent->cmdlines[i].comm); in pevent_free()
6658 free(cmdlist->comm); in pevent_free()