Lines Matching defs:proc_info

53 struct proc_info {
54 struct proc_info *next;
75 struct proc_info **array;
83 static struct proc_info **old_procs, **new_procs;
85 static struct proc_info *free_procs;
92 static struct proc_info *alloc_proc(void);
93 static void free_proc(struct proc_info *proc);
95 static int read_stat(char *filename, struct proc_info *proc);
96 static void read_policy(int pid, struct proc_info *proc);
97 static void add_proc(int proc_num, struct proc_info *proc);
98 static int read_cmdline(char *filename, struct proc_info *proc);
99 static int read_status(char *filename, struct proc_info *proc);
101 static struct proc_info *find_old_proc(pid_t pid, pid_t tid);
196 static struct proc_info *alloc_proc(void) {
197 struct proc_info *proc;
213 static void free_proc(struct proc_info *proc) {
229 struct proc_info *proc;
237 new_procs = calloc(INIT_PROCS * (threads ? THREAD_MULT : 1), sizeof(struct proc_info *));
253 struct proc_info cur_proc;
324 static int read_stat(char *filename, struct proc_info *proc) {
352 static void add_proc(int proc_num, struct proc_info *proc) {
356 new_procs = realloc(new_procs, 2 * num_new_procs * sizeof(struct proc_info *));
365 static int read_cmdline(char *filename, struct proc_info *proc) {
382 static void read_policy(int pid, struct proc_info *proc) {
392 static int read_status(char *filename, struct proc_info *proc) {
410 struct proc_info *old_proc, *proc;
436 qsort(new_procs, num_new_procs, sizeof(struct proc_info *), proc_cmp);
488 static struct proc_info *find_old_proc(pid_t pid, pid_t tid) {
509 struct proc_info *pa, *pb;
511 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);
521 struct proc_info *pa, *pb;
523 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);
533 struct proc_info *pa, *pb;
535 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);
545 struct proc_info *pa, *pb;
547 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);