aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:45 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:40:46 -0400
commitc7aafc549766b87819285d3480648fc652a47bc4 (patch)
tree4c36170a644633f930feca57b27f8c5d23644e70 /kernel/trace/trace.h
parent60a11774b38fef1ab90b18c5353bd1c7c4d311c8 (diff)
ftrace: cleanups
factor out code and clean it up. 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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 88edbf1f6788..cc1d34b8b771 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -53,12 +53,12 @@ struct trace_entry {
53 * the trace, etc.) 53 * the trace, etc.)
54 */ 54 */
55struct trace_array_cpu { 55struct trace_array_cpu {
56 void *trace;
57 void *trace_current; 56 void *trace_current;
58 unsigned trace_current_idx;
59 struct list_head trace_pages; 57 struct list_head trace_pages;
60 unsigned long trace_idx;
61 atomic_t disabled; 58 atomic_t disabled;
59 /* these fields get copied into max-trace: */
60 unsigned trace_current_idx;
61 unsigned long trace_idx;
62 unsigned long saved_latency; 62 unsigned long saved_latency;
63 unsigned long critical_start; 63 unsigned long critical_start;
64 unsigned long critical_end; 64 unsigned long critical_end;
@@ -216,4 +216,6 @@ extern int trace_selftest_startup_sched_switch(struct tracer *trace,
216#endif 216#endif
217#endif /* CONFIG_FTRACE_STARTUP_TEST */ 217#endif /* CONFIG_FTRACE_STARTUP_TEST */
218 218
219extern void *head_page(struct trace_array_cpu *data);
220
219#endif /* _LINUX_KERNEL_TRACE_H */ 221#endif /* _LINUX_KERNEL_TRACE_H */