Lines Matching full:new_procs
83 static struct proc_info **old_procs, **new_procs;
180 new_procs = old_procs = NULL;
184 old_procs = new_procs;
237 new_procs = calloc(INIT_PROCS * (threads ? THREAD_MULT : 1), sizeof(struct proc_info *));
319 new_procs[i] = NULL;
356 new_procs = realloc(new_procs, 2 * num_new_procs * sizeof(struct proc_info *));
357 if (!new_procs) die("Could not expand procs array.\n");
359 new_procs[i] = NULL;
362 new_procs[proc_num] = proc;
418 if (new_procs[i]) {
419 old_proc = find_old_proc(new_procs[i]->pid, new_procs[i]->tid);
421 new_procs[i]->delta_utime = new_procs[i]->utime - old_proc->utime;
422 new_procs[i]->delta_stime = new_procs[i]->stime - old_proc->stime;
424 new_procs[i]->delta_utime = 0;
425 new_procs[i]->delta_stime = 0;
427 new_procs[i]->delta_time = new_procs[i]->delta_utime + new_procs[i]->delta_stime;
436 qsort(new_procs, num_new_procs, sizeof(struct proc_info *), proc_cmp);
461 proc = new_procs[i];