Lines Matching refs:pid
56 pid_t pid; member
98 static void read_policy(int pid, struct proc_info *proc);
103 static struct proc_info *find_old_proc(pid_t pid, pid_t tid);
231 pid_t pid, tid; in read_procs() local
252 pid = atoi(pid_dir->d_name); in read_procs()
259 proc->pid = proc->tid = pid; in read_procs()
261 sprintf(filename, "/proc/%d/stat", pid); in read_procs()
264 sprintf(filename, "/proc/%d/cmdline", pid); in read_procs()
267 sprintf(filename, "/proc/%d/status", pid); in read_procs()
270 read_policy(pid, proc); in read_procs()
274 sprintf(filename, "/proc/%d/cmdline", pid); in read_procs()
277 sprintf(filename, "/proc/%d/status", pid); in read_procs()
283 sprintf(filename, "/proc/%d/task", pid); in read_procs()
296 proc->pid = pid; proc->tid = tid; in read_procs()
298 sprintf(filename, "/proc/%d/task/%d/stat", pid, tid); in read_procs()
401 static void read_policy(int pid, struct proc_info *proc) { in read_policy() argument
403 if (get_sched_policy(pid, &p) < 0) in read_policy()
435 old_proc = find_old_proc(new_procs[i]->pid, new_procs[i]->tid); in print_procs()
492 proc->pid, user_str, proc->pr, proc->ni, in print_procs()
498 proc->pid, proc->tid, user_str, proc->pr, proc->ni, in print_procs()
506 static struct proc_info *find_old_proc(pid_t pid, pid_t tid) { in find_old_proc() argument
510 if (old_procs[i] && (old_procs[i]->pid == pid) && (old_procs[i]->tid == tid)) in find_old_proc()