ftrace/sysprof: don't trace the user stack if we are a kernel thread.
authorSoeren Sandmann <sandmann@daimi.au.dk>
Mon, 12 May 2008 03:28:50 +0000 (05:28 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 21:59:12 +0000 (23:59 +0200)
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 <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found