• Home
  • Raw
  • Download

Lines Matching refs:proc_info

54 struct proc_info {  struct
55 struct proc_info *next; argument
76 struct proc_info **array; argument
84 static struct proc_info **old_procs, **new_procs;
86 static struct proc_info *free_procs;
93 static struct proc_info *alloc_proc(void);
94 static void free_proc(struct proc_info *proc);
96 static int read_stat(char *filename, struct proc_info *proc);
97 static void read_policy(int pid, struct proc_info *proc);
98 static void add_proc(int proc_num, struct proc_info *proc);
99 static int read_cmdline(char *filename, struct proc_info *proc);
100 static int read_status(char *filename, struct proc_info *proc);
102 static struct proc_info *find_old_proc(pid_t pid, pid_t tid);
195 static struct proc_info *alloc_proc(void) { in alloc_proc()
196 struct proc_info *proc; in alloc_proc()
212 static void free_proc(struct proc_info *proc) { in free_proc()
228 struct proc_info *proc; in read_procs()
236 new_procs = calloc(INIT_PROCS * (threads ? THREAD_MULT : 1), sizeof(struct proc_info *)); in read_procs()
252 struct proc_info cur_proc; in read_procs()
323 static int read_stat(char *filename, struct proc_info *proc) { in read_stat()
359 static void add_proc(int proc_num, struct proc_info *proc) { in add_proc()
363 new_procs = realloc(new_procs, 2 * num_new_procs * sizeof(struct proc_info *)); in add_proc()
372 static int read_cmdline(char *filename, struct proc_info *proc) { in read_cmdline()
389 static void read_policy(int pid, struct proc_info *proc) { in read_policy()
399 static int read_status(char *filename, struct proc_info *proc) { in read_status()
417 struct proc_info *old_proc, *proc; in print_procs()
441 qsort(new_procs, num_new_procs, sizeof(struct proc_info *), proc_cmp); in print_procs()
489 static struct proc_info *find_old_proc(pid_t pid, pid_t tid) { in find_old_proc()
510 struct proc_info *pa, *pb; in proc_cpu_cmp()
512 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b); in proc_cpu_cmp()
522 struct proc_info *pa, *pb; in proc_vss_cmp()
524 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b); in proc_vss_cmp()
534 struct proc_info *pa, *pb; in proc_rss_cmp()
536 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b); in proc_rss_cmp()
546 struct proc_info *pa, *pb; in proc_thr_cmp()
548 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b); in proc_thr_cmp()