summaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-03-13 09:55:57 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:36:05 -0400
commitc142be8ebe0b7bf73c8a0063925623f3e4b980c0 (patch)
treeb4f05278ba776036475efe7bba7273568fd6c1bf /include/linux/kernel.h
parent3cd715de261182413b3487abfffe1b6af41b81b3 (diff)
downloadop-kernel-dev-c142be8ebe0b7bf73c8a0063925623f3e4b980c0.zip
op-kernel-dev-c142be8ebe0b7bf73c8a0063925623f3e4b980c0.tar.gz
tracing: Add skip argument to trace_dump_stack()
Altough the trace_dump_stack() already skips three functions in the call to stack trace, which gets the stack trace to start at the caller of the function, the caller may want to skip some more too (as it may have helper functions). Add a skip argument to the trace_dump_stack() that lets the caller skip back tracing functions that it doesn't care about. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index d0a16fe..239dbb9 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -597,7 +597,7 @@ extern int __trace_puts(unsigned long ip, const char *str, int size);
__trace_puts(_THIS_IP_, str, strlen(str)); \
})
-extern void trace_dump_stack(void);
+extern void trace_dump_stack(int skip);
/*
* The double __builtin_constant_p is because gcc will give us an error
OpenPOWER on IntegriCloud