函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-27 10:44:22
Last Modify:2020-03-17 13:39:02 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:print_task

函数原型:static void print_task(struct seq_file *m, struct rq *rq, struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct rq *rq
struct task_struct *p
436  如果当前任务恒等于pThis allows printing both to /proc/sched_debug and* to the console(m, ">R")
438  否则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 ", 是否使用FPU, task_pid_nr(p), SPLIT_NS(vruntime), (longlong)(切换计数 + 上下文切换计数), 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")
调用者
名称描述
print_rq