Function report | 
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 activity | Download SCCT | Chinese | 
Name:show_schedstat
Proto:static int show_schedstat(struct seq_file *seq, void *v)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | 
| 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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |