Lines Matching refs:pid

95 	int		pid;  member
195 int pid; member
202 static struct per_pid *find_create_pid(struct timechart *tchart, int pid) in find_create_pid() argument
207 if (cursor->pid == pid) in find_create_pid()
213 cursor->pid = pid; in find_create_pid()
232 static void pid_set_comm(struct timechart *tchart, int pid, char *comm) in pid_set_comm() argument
236 p = find_create_pid(tchart, pid); in pid_set_comm()
255 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument
258 p = find_create_pid(tchart, pid); in pid_fork()
262 pid_set_comm(tchart, pid, pp->current->comm); in pid_fork()
271 static void pid_exit(struct timechart *tchart, int pid, u64 timestamp) in pid_exit() argument
274 p = find_create_pid(tchart, pid); in pid_exit()
280 static void pid_put_sample(struct timechart *tchart, int pid, int type, in pid_put_sample() argument
288 p = find_create_pid(tchart, pid); in pid_put_sample()
339 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event()
349 pid_exit(tchart, event->fork.pid, event->fork.time); in process_exit_event()
451 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
730 static int pid_begin_io_sample(struct timechart *tchart, int pid, int type, in pid_begin_io_sample() argument
733 struct per_pid *p = find_create_pid(tchart, pid); in pid_begin_io_sample()
772 static int pid_end_io_sample(struct timechart *tchart, int pid, int type, in pid_end_io_sample() argument
775 struct per_pid *p = find_create_pid(tchart, pid); in pid_end_io_sample()
994 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { in sort_pids()
1058 if (p->pid == we->waker || p->pid == we->wakee) { in draw_wakeups()
1062 if (p->pid == we->waker && !from) { in draw_wakeups()
1066 if (p->pid == we->wakee && !to) { in draw_wakeups()
1075 if (p->pid == we->waker && !from) { in draw_wakeups()
1079 if (p->pid == we->wakee && !to) { in draw_wakeups()
1127 p->pid, in draw_cpu_usage()
1244 sprintf(comm, "%s:%i (%3.1f %sbytes)", c->comm ?: "", p->pid, bytes, suf); in draw_io_bars()
1298 sprintf(comm, "%s:%i (%2.2fs)", c->comm, p->pid, c->total_time / (double)NSEC_PER_SEC); in draw_process_bars()
1300 sprintf(comm, "%s:%i (%3.1fms)", c->comm, p->pid, c->total_time / (double)NSEC_PER_MSEC); in draw_process_bars()
1314 int pid = strtoull(string, NULL, 10); in add_process_filter() local
1321 filt->pid = pid; in add_process_filter()
1335 if (filt->pid && p->pid == filt->pid) in passes_filter()