函数逻辑报告 |
Source Code:kernel\hung_task.c |
Create Date:2022-07-27 12:49:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:check_hung_task
函数原型:static void check_hung_task(struct task_struct *t, unsigned long timeout)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | t | |
unsigned long | timeout |
90 | switch_count等于切换计数加上下文切换计数 |
96 | 如果此条件成立可能性小(为编译器优化)(任务标志 & (Frozen for system suspend | Freezer should not count it as freezable ))则返回 |
104 | 如果此条件成立可能性小(为编译器优化)(!switch_count)则返回 |
107 | 如果switch_count不等于last_switch_count则 |
112 | 如果ime_is_after_jiffies(a) return true if a is after jiffies (last_switch_time + timeout * HZ)则返回 |
127 | 如果sysctl_hung_task_warnings则 |
130 | 打印错误信息("INFO: task %s:%d blocked for more than %ld seconds.\n", 是否使用FPU, 进程ID, (jiffies - last_switch_time) / HZ) |
136 | 打印错误信息("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\" disables this message.\n") |
138 | sched_show_task(t) |
139 | hung_task_show_lock = true |
名称 | 描述 |
---|---|
check_hung_uninterruptible_tasks | Check whether a TASK_UNINTERRUPTIBLE does not get woken up for* a really long time (120 seconds). If that happens, print out* a warning. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |