aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:04:20 -0400
commit86387f7ee5d3273ff4859e2c64ce656639b6ca65 (patch)
treed2080c680e9e9415dfa99bb8408302584035e664 /kernel/trace/trace.h
parent57422797dc009fc83766bcf230d29dbe6e08e21e (diff)
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 90e0ba0f6eba..387bdcf45e28 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -35,6 +35,16 @@ struct special_entry {
35}; 35};
36 36
37/* 37/*
38 * Stack-trace entry:
39 */
40
41#define FTRACE_STACK_ENTRIES 5
42
43struct stack_entry {
44 unsigned long caller[FTRACE_STACK_ENTRIES];
45};
46
47/*
38 * The trace entry - the most basic unit of tracing. This is what 48 * The trace entry - the most basic unit of tracing. This is what
39 * is printed in the end as a single line in the trace output, such as: 49 * is printed in the end as a single line in the trace output, such as:
40 * 50 *
@@ -51,6 +61,7 @@ struct trace_entry {
51 struct ftrace_entry fn; 61 struct ftrace_entry fn;
52 struct ctx_switch_entry ctx; 62 struct ctx_switch_entry ctx;
53 struct special_entry special; 63 struct special_entry special;
64 struct stack_entry stack;
54 }; 65 };
55}; 66};
56 67