函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\stats.c Create Date:2022-07-27 10:44:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:show_schedstat

函数原型:static int show_schedstat(struct seq_file *seq, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *seq
void *v
19  如果v恒等于1则
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  否则
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  返回:0