Home | History | Annotate | Download | only in traceevent

Lines Matching defs:pid

125 	int pid;
133 if (ca->pid < cb->pid)
135 if (ca->pid > cb->pid)
144 int pid;
160 cmdlines[i].pid = cmdlist->pid;
176 static const char *find_cmdline(struct pevent *pevent, int pid)
181 if (!pid)
187 key.pid = pid;
198 * pevent_pid_is_registered - return if a pid has a cmdline registered
200 * @pid: The pid to check if it has a cmdline registered with.
202 * Returns 1 if the pid has a cmdline mapped to it
205 int pevent_pid_is_registered(struct pevent *pevent, int pid)
210 if (!pid)
216 key.pid = pid;
228 * we must add this pid. This is much slower than when cmdlines
231 static int add_new_comm(struct pevent *pevent, const char *comm, int pid)
237 if (!pid)
241 key.pid = pid;
263 cmdlines[pevent->cmdline_count].pid = pid;
275 * pevent_register_comm - register a pid / comm mapping
278 * @pid: the pid to map the command line to
281 * a given pid. The comm is duplicated.
283 int pevent_register_comm(struct pevent *pevent, const char *comm, int pid)
288 return add_new_comm(pevent, comm, pid);
299 item->pid = pid;
4390 * pevent_data_pid - parse the PID from raw data
4394 * This returns the PID from a raw data.
4402 * pevent_data_comm_from_pid - return the command line from PID
4404 * @pid: the PID of the task to search for
4407 * @pid.
4409 const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid)
4413 comm = find_cmdline(pevent, pid);
4457 int pid;
4477 pid = parse_common_pid(pevent, data);
4478 comm = find_cmdline(pevent, pid);
4482 comm, pid, record->cpu);
4485 trace_seq_printf(s, "%16s-%-5d [%03d]", comm, pid, record->cpu);