summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 19:20:51 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 19:04:20 (GMT)
commit86387f7ee5d3273ff4859e2c64ce656639b6ca65 (patch)
treed2080c680e9e9415dfa99bb8408302584035e664 /kernel/trace/trace.h
parent57422797dc009fc83766bcf230d29dbe6e08e21e (diff)
downloadlinux-86387f7ee5d3273ff4859e2c64ce656639b6ca65.tar.xz
ftrace: add stack tracing
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 90e0ba0..387bdcf 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -35,6 +35,16 @@ struct special_entry {
};
/*
+ * Stack-trace entry:
+ */
+
+#define FTRACE_STACK_ENTRIES 5
+
+struct stack_entry {
+ unsigned long caller[FTRACE_STACK_ENTRIES];
+};
+
+/*
* The trace entry - the most basic unit of tracing. This is what
* is printed in the end as a single line in the trace output, such as:
*
@@ -51,6 +61,7 @@ struct trace_entry {
struct ftrace_entry fn;
struct ctx_switch_entry ctx;
struct special_entry special;
+ struct stack_entry stack;
};
};