Re: stacktrace on 4.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 13 Jan 2016 11:24:56 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 12 Jan 2016 15:46:15 -0800
> Brendan Gregg <brendan.d.gregg@xxxxxxxxx> wrote:
> 
> > Just noticed the stacktrace option isn't working for me on Linux 4.4.
> > Not sure when it last worked, or why it stopped (could be my build).  
> 
> Thanks for the report. I'm looking into it.

Looks like I had a cut and paste bug, and changed a 0 to a 6 where I
shouldn't have.

Does this patch fix the issue for you?

-- Steve

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 87fb9801bd9e..d9293402ee68 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1751,7 +1751,7 @@ void trace_buffer_unlock_commit_regs(struct trace_array *tr,
 {
 	__buffer_unlock_commit(buffer, event);
 
-	ftrace_trace_stack(tr, buffer, flags, 6, pc, regs);
+	ftrace_trace_stack(tr, buffer, flags, 0, pc, regs);
 	ftrace_trace_userstack(buffer, flags, pc);
 }
 EXPORT_SYMBOL_GPL(trace_buffer_unlock_commit_regs);
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux