函数逻辑报告 |
Source Code:kernel\sched\debug.c |
Create Date:2022-07-27 10:44:40 |
| Last Modify:2020-03-17 13:39:02 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:proc_sched_show_task
函数原型:void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, struct seq_file *m)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | p | |
| struct pid_namespace * | ns | |
| struct seq_file * | m |
| 861 | This allows printing both to /proc/sched_debug and* to the console(m, "%s (%d, #threads: %d)\n", 是否使用FPU, task_pid_nr_ns(p, ns), get_nr_threads(p)) |
| 863 | This allows printing both to /proc/sched_debug and* to the console(m, "-------------------------------------------------------------------\n") |
| 879 | PN(exec_start) |
| 881 | PN(sum_exec_runtime) |
| 883 | nr_switches等于切换计数加上下文切换计数 |
| 885 | P(nr_migrations) |
| 887 | 如果schedstat_enabled()则 |
| 891 | PN_SCHEDSTAT(wait_start) |
| 892 | PN_SCHEDSTAT(sleep_start) |
| 893 | PN_SCHEDSTAT(block_start) |
| 894 | PN_SCHEDSTAT(sleep_max) |
| 895 | PN_SCHEDSTAT(block_max) |
| 896 | PN_SCHEDSTAT(exec_max) |
| 897 | PN_SCHEDSTAT(slice_max) |
| 898 | PN_SCHEDSTAT(wait_max) |
| 899 | PN_SCHEDSTAT(wait_sum) |
| 900 | P_SCHEDSTAT(wait_count) |
| 901 | PN_SCHEDSTAT(iowait_sum) |
| 902 | P_SCHEDSTAT(iowait_count) |
| 908 | P_SCHEDSTAT(nr_wakeups) |
| 918 | avg_atom等于sum_exec_runtime |
| 919 | 如果nr_switches则avg_atom等于div64_ul(avg_atom, nr_switches) |
| 921 | 否则avg_atom等于负1LL |
| 925 | 如果nr_migrations则 |
| 928 | 否则 |
| 929 | avg_per_cpu等于负1LL |
| 933 | __PN(avg_per_cpu) |
| 936 | __P(nr_switches) |
| 937 | This allows printing both to /proc/sched_debug and* to the console(m, "%-45s:%21Ld\n", "nr_voluntary_switches", (longlong)切换计数) |
| 939 | This allows printing both to /proc/sched_debug and* to the console(m, "%-45s:%21Ld\n", "nr_involuntary_switches", (longlong)上下文切换计数) |
| 943 | P(runnable_weight) |
| 957 | 如果task_has_dl_policy(p)则 |
| 974 | This allows printing both to /proc/sched_debug and* to the console(m, "%-45s:%21Ld\n", "clock-delta", (longlong)(t1 - t0)) |
| 978 | sched_show_numa(p, m) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |