Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e965a6b authored by Qian Cai's avatar Qian Cai Committed by Linus Torvalds
Browse files

mm/kmemleak.c: record the current memory pool size

The only way to obtain the current memory pool size for a running kernel
is to check the kernel config file which is inconvenient.  Record it in
the kernel messages.

[akpm@linux-foundation.org: s/memory pool size/memory pool/available/, per Catalin]
Link: http://lkml.kernel.org/r/1565809631-28933-1-git-send-email-cai@lca.pw


Signed-off-by: default avatarQian Cai <cai@lca.pw>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c5665868
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1967,7 +1967,8 @@ static int __init kmemleak_late_init(void)
		mutex_unlock(&scan_mutex);
	}

	pr_info("Kernel memory leak detector initialized\n");
	pr_info("Kernel memory leak detector initialized (mem pool available: %d)\n",
		mem_pool_free_count);

	return 0;
}