| commit | cf3271a73b612a03da00681ecd9bfefab37c74c9 | [log] [tgz] |
|---|---|---|
| author | Soeren Sandmann <sandmann@daimi.au.dk> | Mon May 12 05:28:50 2008 +0200 |
| committer | Thomas Gleixner <tglx@linutronix.de> | Fri May 23 23:59:12 2008 +0200 |
| tree | fa4423bf262449aedea54a1145e6b10deefc3bf7 | |
| parent | 8a9e94c1fbfdac45a3b6811b880777c4116aa309 [diff] |
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 <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>