Function report |
Source Code:kernel\hung_task.c |
Create Date:2022-07-28 11:45:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_hung_task
Proto:static void check_hung_task(struct task_struct *t, unsigned long timeout)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | t | |
| unsigned long | timeout |
| 96 | If Value for the false possibility is greater at compile time( Per task flags (PF_*), defined further below: & (Frozen for system suspend | Freezer should not count it as freezable )) Then Return |
| 104 | If Value for the false possibility is greater at compile time(!switch_count) Then Return |
| 107 | If switch_count != last_switch_count Then |
| 112 | If ime_is_after_jiffies(a) return true if a is after jiffies (last_switch_time + timeout * HZ) Then Return |
| 127 | If sysctl_hung_task_warnings Then |
| 128 | If sysctl_hung_task_warnings > 0 Then sysctl_hung_task_warnings-- |
| 130 | pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n", * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), process id, (jiffies - last_switch_time) / HZ) |
| 136 | pr_err("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\" disables this message.\n") |
| 138 | sched_show_task(t) |
| 139 | hung_task_show_lock = true |
| Name | Describe |
|---|---|
| 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. |
| 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 |