函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_cpu

函数原型:static void print_cpu(struct seq_file *m, int cpu)

返回类型:void

参数:

类型参数名称
struct seq_file *m
intcpu
616  rq等于cpu_rq(cpu)
627  This allows printing both to /proc/sched_debug and* to the console(m, "cpu#%d\n", cpu)
641  P(r_running and nr_context_switches:* externally visible scheduler statistics: current number of runnable* threads, total number of context switches performed since bootup.)
642  P(nr_switches)
643  P(nr_load_updates)
644  P(nr_uninterruptible)
645  PN(next_balance)
646  This allows printing both to /proc/sched_debug and* to the console(m, " .%-30s: %ld\n", "curr->pid", (long)(task_pid_nr(当前任务)))
647  PN(clock)
648  PN(clock_task)
660  如果schedstat_enabled()则
669  spin_lock_irqsave( & SPDX-License-Identifier: GPL-2.0-only, flags)
670  print_cfs_stats(m, cpu)
671  print_rt_stats(m, cpu)
672  print_dl_stats(m, cpu)
674  print_rq(m, rq, cpu)
675  spin_unlock_irqrestore( & SPDX-License-Identifier: GPL-2.0-only, flags)
676  This allows printing both to /proc/sched_debug and* to the console(m, "\n")
调用者
名称描述
sched_debug_show
sysrq_sched_debug_show