Lines Matching refs:p
533 print_task(struct seq_file *m, struct rq *rq, struct task_struct *p) in print_task() argument
535 if (task_current(rq, p)) in print_task()
538 SEQ_printf(m, " %c", task_state_to_char(p)); in print_task()
541 p->comm, task_pid_nr(p), in print_task()
542 SPLIT_NS(p->se.vruntime), in print_task()
543 (long long)(p->nvcsw + p->nivcsw), in print_task()
544 p->prio); in print_task()
547 SPLIT_NS(schedstat_val_or_zero(p->stats.wait_sum)), in print_task()
548 SPLIT_NS(p->se.sum_exec_runtime), in print_task()
549 SPLIT_NS(schedstat_val_or_zero(p->stats.sum_sleep_runtime)), in print_task()
550 SPLIT_NS(schedstat_val_or_zero(p->stats.sum_block_runtime))); in print_task()
553 SEQ_printf(m, " %d %d", task_node(p), task_numa_group_id(p)); in print_task()
556 SEQ_printf_task_group_path(m, task_group(p), " %s") in print_task()
564 struct task_struct *g, *p; in print_rq() local
574 for_each_process_thread(g, p) { in print_rq()
575 if (task_cpu(p) != rq_cpu) in print_rq()
578 print_task(m, rq, p); in print_rq()
915 #define P(F) __PS(#F, p->F)
916 #define PM(F, M) __PS(#F, p->F & (M))
919 #define PN(F) __PSN(#F, p->F)
933 static void sched_show_numa(struct task_struct *p, struct seq_file *m) in sched_show_numa() argument
936 if (p->mm) in sched_show_numa()
943 task_node(p), task_numa_group_id(p)); in sched_show_numa()
944 show_numa_stats(p, m); in sched_show_numa()
948 void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, in proc_sched_show_task() argument
953 SEQ_printf(m, "%s (%d, #threads: %d)\n", p->comm, task_pid_nr_ns(p, ns), in proc_sched_show_task()
954 get_nr_threads(p)); in proc_sched_show_task()
959 #define P_SCHEDSTAT(F) __PS(#F, schedstat_val(p->stats.F)) in proc_sched_show_task()
960 #define PN_SCHEDSTAT(F) __PSN(#F, schedstat_val(p->stats.F)) in proc_sched_show_task()
966 nr_switches = p->nvcsw + p->nivcsw; in proc_sched_show_task()
1002 avg_atom = p->se.sum_exec_runtime; in proc_sched_show_task()
1008 avg_per_cpu = p->se.sum_exec_runtime; in proc_sched_show_task()
1009 if (p->se.nr_migrations) { in proc_sched_show_task()
1011 p->se.nr_migrations); in proc_sched_show_task()
1025 __PS("nr_voluntary_switches", p->nvcsw); in proc_sched_show_task()
1026 __PS("nr_involuntary_switches", p->nivcsw); in proc_sched_show_task()
1041 __PS("uclamp.min", p->uclamp_req[UCLAMP_MIN].value); in proc_sched_show_task()
1042 __PS("uclamp.max", p->uclamp_req[UCLAMP_MAX].value); in proc_sched_show_task()
1043 __PS("effective uclamp.min", uclamp_eff_value(p, UCLAMP_MIN)); in proc_sched_show_task()
1044 __PS("effective uclamp.max", uclamp_eff_value(p, UCLAMP_MAX)); in proc_sched_show_task()
1048 if (task_has_dl_policy(p)) { in proc_sched_show_task()
1064 sched_show_numa(p, m); in proc_sched_show_task()
1067 void proc_sched_set_task(struct task_struct *p) in proc_sched_set_task() argument
1070 memset(&p->stats, 0, sizeof(p->stats)); in proc_sched_set_task()