]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Have dynamic size event stack traces
authorSteven Rostedt <srostedt@redhat.com>
Thu, 14 Jul 2011 20:36:53 +0000 (16:36 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 14 Jul 2011 20:36:53 +0000 (16:36 -0400)
commit8a315835cb1e367b5448d4be463e50d75c230b43
treeca9eca5fcbe93dc8a433d839221505ad8fba5296
parentdf98af25df1cd4377aae20435218fa623faa32f2
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>
include/linux/ftrace_event.h
kernel/trace/trace.c
kernel/trace/trace_entries.h
kernel/trace/trace_output.c