Lines Matching refs:pid
90 int pid; member
190 int pid; member
197 static struct per_pid *find_create_pid(struct timechart *tchart, int pid) in find_create_pid() argument
202 if (cursor->pid == pid) in find_create_pid()
208 cursor->pid = pid; in find_create_pid()
214 static void pid_set_comm(struct timechart *tchart, int pid, char *comm) in pid_set_comm() argument
218 p = find_create_pid(tchart, pid); in pid_set_comm()
240 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument
243 p = find_create_pid(tchart, pid); in pid_fork()
247 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
256 static void pid_exit(struct timechart *tchart, int pid, u64 timestamp) in pid_exit() argument
259 p = find_create_pid(tchart, pid); in pid_exit()
265 static void pid_put_sample(struct timechart *tchart, int pid, int type, in pid_put_sample() argument
273 p = find_create_pid(tchart, pid); in pid_put_sample()
327 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event()
337 pid_exit(tchart, event->fork.pid, event->fork.time); in process_exit_event()
430 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
720 static int pid_begin_io_sample(struct timechart *tchart, int pid, int type, in pid_begin_io_sample() argument
723 struct per_pid *p = find_create_pid(tchart, pid); in pid_begin_io_sample()
765 static int pid_end_io_sample(struct timechart *tchart, int pid, int type, in pid_end_io_sample() argument
768 struct per_pid *p = find_create_pid(tchart, pid); in pid_end_io_sample()
987 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { in sort_pids()
1051 if (p->pid == we->waker || p->pid == we->wakee) { in draw_wakeups()
1055 if (p->pid == we->waker && !from) { in draw_wakeups()
1059 if (p->pid == we->wakee && !to) { in draw_wakeups()
1068 if (p->pid == we->waker && !from) { in draw_wakeups()
1072 if (p->pid == we->wakee && !to) { in draw_wakeups()
1120 p->pid, in draw_cpu_usage()
1237 sprintf(comm, "%s:%i (%3.1f %sbytes)", c->comm ?: "", p->pid, bytes, suf); in draw_io_bars()
1291 sprintf(comm, "%s:%i (%2.2fs)", c->comm, p->pid, c->total_time / 1000000000.0); in draw_process_bars()
1293 sprintf(comm, "%s:%i (%3.1fms)", c->comm, p->pid, c->total_time / 1000000.0); in draw_process_bars()
1307 int pid = strtoull(string, NULL, 10); in add_process_filter() local
1314 filt->pid = pid; in add_process_filter()
1328 if (filt->pid && p->pid == filt->pid) in passes_filter()