ck: UKFEF: report hung-task event

to #34868789

Add hung-task event into unified kernel fault event framework.

Signed-off-by: Wetp Zhang <wetp.zy@linux.alibaba.com>
Signed-off-by: Meng Shen <shenmeng@linux.alibaba.com>
Acked-by: Xunlei Pang <xlpang@linux.alibaba.com>
This commit is contained in:
Meng Shen 2021-07-15 18:03:00 +08:00 committed by Qiao Ma
parent 2d4db696a0
commit 966a35b0c5
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include <linux/sched/signal.h>
#include <linux/sched/debug.h>
#include <linux/sched/sysctl.h>
#include <linux/fault_event.h>
#include <trace/events/sched.h>
@ -119,6 +120,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
hung_task_call_panic = true;
}
report_fault_event(-1, t, NORMAL_FAULT, FE_HUNGTASK, NULL);
/*
* Ok, the task did not get scheduled for more than 2 minutes,
* complain: