mirror of https://github.com/OpenIPC/firmware.git
20 lines
520 B
Diff
20 lines
520 B
Diff
diff -drupN a/mm/oom_kill.c b/mm/oom_kill.c
|
|
--- a/mm/oom_kill.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/mm/oom_kill.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -33,6 +33,7 @@
|
|
#include <linux/security.h>
|
|
#include <linux/ptrace.h>
|
|
#include <linux/freezer.h>
|
|
+#include <linux/kmsg_dump.h>
|
|
#include <linux/ftrace.h>
|
|
#include <linux/ratelimit.h>
|
|
#include <linux/kthread.h>
|
|
@@ -947,6 +948,7 @@ static void oom_kill_process(struct oom_
|
|
|
|
mmdrop(mm);
|
|
put_task_struct(victim);
|
|
+ kmsg_dump(KMSG_DUMP_OOM);
|
|
}
|
|
#undef K
|
|
|