Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-28 09:43:56
Last Modify:2020-03-17 13:39:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_task

Proto:static void print_task(struct seq_file *m, struct rq *rq, struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct rq *rq
struct task_struct *p
436  If curr == p Then This allows printing both to /proc/sched_debug and* to the console(m, ">R")
438  Else This allows printing both to /proc/sched_debug and* to the console(m, " %c", task_state_to_char(p))
441  This allows printing both to /proc/sched_debug and* to the console(m, "%15s %5d %9Ld.%06ld %9Ld %5d ", * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), task_pid_nr(p), SPLIT_NS(vruntime), (longlong)( Context switch counts: + nivcsw), prio)
447  This allows printing both to /proc/sched_debug and* to the console(m, "%9Ld.%06ld %9Ld.%06ld %9Ld.%06ld", SPLIT_NS(schedstat_val_or_zero(wait_sum)), SPLIT_NS(sum_exec_runtime), SPLIT_NS(schedstat_val_or_zero(sum_sleep_runtime)))
459  This allows printing both to /proc/sched_debug and* to the console(m, "\n")
Caller
NameDescribe
print_rq