Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_cpu

Proto:static void print_cpu(struct seq_file *m, int cpu)

Type:void

Parameter:

TypeParameterName
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(curr)))
647  PN(clock)
648  PN(clock_task)
660  If schedstat_enabled() Then
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")
Caller
NameDescribe
sched_debug_show
sysrq_sched_debug_show