Function report |
Source Code:kernel\sched\debug.c |
Create Date:2022-07-28 09:44:14 |
Last Modify:2020-03-17 13:39:02 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:proc_sched_show_task
Proto:void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, struct seq_file *m)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | p | |
struct pid_namespace * | ns | |
struct seq_file * | m |
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 = Context switch counts: + nivcsw |
885 | P(nr_migrations) |
887 | If schedstat_enabled() Then |
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 | If nr_switches Then avg_atom = div64_ul(avg_atom, nr_switches) |
921 | Else avg_atom = -1LL |
924 | avg_per_cpu = sum_exec_runtime |
925 | If nr_migrations Then |
928 | Else |
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) Context switch counts: ) |
939 | This allows printing both to /proc/sched_debug and* to the console(m, "%-45s:%21Ld\n", "nr_involuntary_switches", (longlong)nivcsw) |
943 | P(runnable_weight) |
957 | If task_has_dl_policy(p) Then |
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) |
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 |