--- zzzz-none-000/linux-5.15.111/mm/oom_kill.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/mm/oom_kill.c 2024-02-07 09:28:09.000000000 +0000 @@ -402,7 +402,11 @@ return 0; } +#ifdef CONFIG_MXL_FORCE_PRINT_MEM_SUMMARY_ON_OOM + pr_warn("[%7d] %5d %5d %8lu %8lu %8ld %8lu %5hd %s\n", +#else pr_info("[%7d] %5d %5d %8lu %8lu %8ld %8lu %5hd %s\n", +#endif task->pid, from_kuid(&init_user_ns, task_uid(task)), task->tgid, task->mm->total_vm, get_mm_rss(task->mm), mm_pgtables_bytes(task->mm), @@ -425,8 +429,13 @@ */ static void dump_tasks(struct oom_control *oc) { +#ifdef CONFIG_MXL_FORCE_PRINT_MEM_SUMMARY_ON_OOM + pr_warn("Tasks state (memory values in pages):\n"); + pr_warn("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n"); +#else pr_info("Tasks state (memory values in pages):\n"); pr_info("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n"); +#endif if (is_memcg_oom(oc)) mem_cgroup_scan_tasks(oc->memcg, dump_task, oc);