From: Catalin Marinas Date: Wed, 28 Sep 2011 11:17:03 +0000 (+0100) Subject: kmemleak: Show where early_log issues come from X-Git-Tag: v3.3-rc1~55^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f79020cb9fea59a5d4d1712bcd320523b129b35;p=pandora-kernel.git kmemleak: Show where early_log issues come from Based on initial patch by Steven Rostedt. Early kmemleak warnings did not show where the actual kmemleak API had been called from but rather just a backtrace to the kmemleak_init() function. By having all early kmemleak logs record the stack_trace, we can have kmemleak_init() write exactly where the problem occurred. This patch adds the setting of the kmemleak_warning variable every time a kmemleak warning is issued. The kmemleak_init() function checks this variable during early log replaying and prints the log trace if there was any warning. Reported-by: Steven Rostedt Cc: Andrew Morton Signed-off-by: Catalin Marinas Acked-by: Steven Rostedt --- Reading git-diff-tree failed