diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-07-14 22:36:53 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-07-14 22:36:53 +0200 |
commit | 4a9bd3f134decd6d16ead8d288342d57aad486be (patch) | |
tree | ca9eca5fcbe93dc8a433d839221505ad8fba5296 /kernel/trace/trace_entries.h | |
parent | perf: Robustify proc and debugfs file recording (diff) | |
download | linux-4a9bd3f134decd6d16ead8d288342d57aad486be.tar.xz linux-4a9bd3f134decd6d16ead8d288342d57aad486be.zip |
tracing: Have dynamic size event stack traces
Currently the stack trace per event in ftace is only 8 frames.
This can be quite limiting and sometimes useless. Especially when
the "ignore frames" is wrong and we also use up stack frames for
the event processing itself.
Change this to be dynamic by adding a percpu buffer that we can
write a large stack frame into and then copy into the ring buffer.
For interrupts and NMIs that come in while another event is being
process, will only get to use the 8 frame stack. That should be enough
as the task that it interrupted will have the full stack frame anyway.
Requested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_entries.h')
-rw-r--r-- | kernel/trace/trace_entries.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace_entries.h b/kernel/trace/trace_entries.h index e32744c84d94..93365907f219 100644 --- a/kernel/trace/trace_entries.h +++ b/kernel/trace/trace_entries.h @@ -161,7 +161,8 @@ FTRACE_ENTRY(kernel_stack, stack_entry, TRACE_STACK, F_STRUCT( - __array( unsigned long, caller, FTRACE_STACK_ENTRIES ) + __field( int, size ) + __dynamic_array(unsigned long, caller ) ), F_printk("\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" |