Home | History | Annotate | Download | only in toolbox

Lines Matching defs:proc_info

54 struct proc_info {
55 struct proc_info *next;
76 struct proc_info **array;
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);
201 static struct proc_info *alloc_proc(void) {
202 struct proc_info *proc;
218 static void free_proc(struct proc_info *proc) {
234 struct proc_info *proc;
242 new_procs = calloc(INIT_PROCS * (threads ? THREAD_MULT : 1), sizeof(struct proc_info *));
258 struct proc_info cur_proc;
329 static int read_stat(char *filename, struct proc_info *proc) {
365 static void add_proc(int proc_num, struct proc_info *proc) {
369 new_procs = realloc(new_procs, 2 * num_new_procs * sizeof(struct proc_info *));
378 static int read_cmdline(char *filename, struct proc_info *proc) {
395 static void read_policy(int pid, struct proc_info *proc) {
405 static int read_status(char *filename, struct proc_info *proc) {
423 struct proc_info *old_proc, *proc;
447 qsort(new_procs, num_new_procs, sizeof(struct proc_info *), proc_cmp);
495 static struct proc_info *find_old_proc(pid_t pid, pid_t tid) {
516 struct proc_info *pa, *pb;
518 proc_info **)a); pb = *((struct proc_info **)b);
528 struct proc_info *pa, *pb;
530 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);
540 struct proc_info *pa, *pb;
542 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);
552 struct proc_info *pa, *pb;
554 pa = *((struct proc_info **)a); pb = *((struct proc_info **)b);