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()
5066 const char *comm; in pevent_data_comm_from_pid() local
5068 comm = find_cmdline(pevent, pid); in pevent_data_comm_from_pid()
5069 return comm; in pevent_data_comm_from_pid()
5073 pid_from_cmdlist(struct pevent *pevent, const char *comm, struct cmdline *next) in pid_from_cmdlist() argument
5082 while (cmdlist && strcmp(cmdlist->comm, comm) != 0) in pid_from_cmdlist()
5101 struct cmdline *pevent_data_pid_from_comm(struct pevent *pevent, const char *comm, in pevent_data_pid_from_comm() argument
5111 return pid_from_cmdlist(pevent, comm, next); in pevent_data_pid_from_comm()
5129 if (strcmp(cmdline->comm, comm) == 0) in pevent_data_pid_from_comm()
5212 const char *comm; in pevent_print_event() local
5241 comm = find_cmdline(pevent, pid); in pevent_print_event()
5245 comm, pid, record->cpu); in pevent_print_event()
5248 trace_seq_printf(s, "%16s-%-5d [%03d]", comm, pid, record->cpu); in pevent_print_event()
6523 free(pevent->cmdlines[i].comm); in pevent_free()
6529 free(cmdlist->comm); in pevent_free()