Skip to content
Commit cf3271a7 authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Thomas Gleixner
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 8a9e94c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment