From: Soeren Sandmann Date: Mon, 12 May 2008 03:28:50 +0000 (+0200) Subject: ftrace/sysprof: don't trace the user stack if we are a kernel thread. X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf3271a73b612a03da00681ecd9bfefab37c74c9;p=pandora-kernel.git ftrace/sysprof: don't trace the user stack if we are a kernel thread. Check that current->mm is non-NULL before attempting to trace the user stack. Also take depth of the kernel stack into account when comparing against sample_max_depth. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed