Lines Matching defs:comm
122 char *comm;
160 char *comm;
178 cmdlines[i].comm = cmdlist->comm;
195 const struct tep_cmdline *comm;
206 comm = bsearch(&key, tep->cmdlines, tep->cmdline_count,
209 if (comm)
210 return comm->comm;
224 const struct tep_cmdline *comm;
235 comm = bsearch(&key, tep->cmdlines, tep->cmdline_count,
238 if (comm)
249 const char *comm, int pid, bool override)
270 new_comm = strdup(comm);
275 free(cmdline->comm);
276 cmdline->comm = new_comm;
288 key.comm = strdup(comm);
289 if (!key.comm) {
328 const char *comm, int pid, bool override)
333 return add_new_comm(tep, comm, pid, override);
339 if (comm)
340 item->comm = strdup(comm);
342 item->comm = strdup("<...>");
343 if (!item->comm) {
357 * tep_register_comm - register a pid / comm mapping
359 * @comm: the command line to register
363 * a given pid. The comm is duplicated. If a command with the same pid
366 int tep_register_comm(struct tep_handle *tep, const char *comm, int pid)
368 return _tep_register_comm(tep, comm, pid, false);
372 * tep_override_comm - register a pid / comm mapping
374 * @comm: the command line to register
378 * a given pid. The comm is duplicated. If a command with the same pid
381 int tep_override_comm(struct tep_handle *tep, const char *comm, int pid)
387 return _tep_register_comm(tep, comm, pid, true);
5889 const char *comm;
5891 comm = find_cmdline(tep, pid);
5892 return comm;
5896 pid_from_cmdlist(struct tep_handle *tep, const char *comm, struct tep_cmdline *next)
5905 while (cmdlist && strcmp(cmdlist->comm, comm) != 0)
5912 * tep_data_pid_from_comm - return the pid from a given comm
5914 * @comm: the cmdline to find the pid from
5915 * @next: the cmdline structure to find the next comm
5918 * comm, or NULL if none found. As there may be more than one pid for
5919 * a given comm, the result of this call can be passed back into
5924 struct tep_cmdline *tep_data_pid_from_comm(struct tep_handle *tep, const char *comm,
5934 return pid_from_cmdlist(tep, comm, next);
5952 if (strcmp(cmdline->comm, comm) == 0)
6083 const char *comm;
6090 comm = find_cmdline(tep, pid);
6091 trace_seq_printf(s, type->format, comm);
7537 free(tep->cmdlines[i].comm);
7543 free(cmdlist->comm);