Lines Matching defs:tasks
9 * containers (cgroups), or individual tasks (PIDs).
64 #define SET_TASK_STAT(task_count, field) tasks[task_count].field = stats.field
162 static struct task_info tasks[MAX_TASKS];
695 tasks[task_count].pid = pid;
696 tasks[task_count].tgid = pid;
697 strncpy(tasks[task_count].command, comm,
699 tasks[task_count].command[TASK_COMM_LEN - 1] = '\0';
716 set_mem_count(&tasks[task_count]);
717 set_mem_delay_total(&tasks[task_count]);
773 /* Comparison function for sorting tasks */
797 /* Sort tasks by selected field */
801 qsort(tasks, task_count, sizeof(struct task_info), compare_tasks);
974 tasks[i].pid, tasks[i].tgid, tasks[i].command);
977 TASK_AVG(tasks[i], mem),
978 TASK_AVG(tasks[i], swapin),
979 TASK_AVG(tasks[i], freepages),
980 TASK_AVG(tasks[i], thrashing),
981 TASK_AVG(tasks[i], compact),
982 TASK_AVG(tasks[i], wpcopy));
985 TASK_AVG(tasks[i], cpu),
986 TASK_AVG(tasks[i], blkio),
987 TASK_AVG(tasks[i], irq),
988 TASK_AVG(tasks[i], mem));
1116 /* Sort tasks */