Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\stats.c Create Date:2022-07-28 09:43:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:show_schedstat

Proto:static int show_schedstat(struct seq_file *seq, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *seq
void *v
19  If v == 1 Then
20  seq_printf(seq, "version %d\n", Current schedstat API version.* Bump this up when changing the output format or the meaning of an existing* format, so that tools can adapt (or abort))
21  seq_printf(seq, "timestamp %lu\n", jiffies)
22  Else
28  cpu = v - 2
29  rq = cpu_rq(cpu)
32  seq_printf(seq, "cpu%d %u 0 %u %u %u %u %llu %llu %lu", cpu, yld_count, sched_count, sched_goidle, ttwu_count, ttwu_local, rq_cpu_time, run_delay, pcount)
40  seq_printf(seq, "\n")
73  Return 0