]> Pileus Git - ~andy/linux/blobdiff - kernel/hung_task.c
hung_task debugging: Add tracepoint to report the hang
[~andy/linux] / kernel / hung_task.c
index 042252383fd2bbff549aa2380cec3a9662adaa68..8807061ca004cc0a532460244e01a56391eb0469 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/export.h>
 #include <linux/sysctl.h>
 #include <linux/utsname.h>
+#include <trace/events/sched.h>
 
 /*
  * The number of tasks checked:
@@ -92,6 +93,9 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
                t->last_switch_count = switch_count;
                return;
        }
+
+       trace_sched_process_hang(t);
+
        if (!sysctl_hung_task_warnings)
                return;
        sysctl_hung_task_warnings--;