aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2008-09-16 14:56:41 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:37:04 -0400
commit45dcd8b8a8ca855591e3ac882d3a7fc255d09d43 (patch)
tree55b1772dfc9a6381ab1ecad7f3f6fbd605427f20 /kernel/trace/trace.h
parentbbe5c7830c6dbde58726d44ec0337bc8b2d95d37 (diff)
ftrace: move mmiotrace functions out of trace.c
Moves the mmiotrace specific functions from trace.c to trace_mmiotrace.c. Functions trace_wake_up(), tracing_get_trace_entry(), and tracing_generic_entry_update() are therefore made available outside trace.c. Signed-off-by: Pekka Paalanen <pq@iki.fi> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 77c265f6a779..9d39aa00a9c6 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -213,11 +213,17 @@ struct trace_iterator {
213 long idx; 213 long idx;
214}; 214};
215 215
216void trace_wake_up(void);
216void tracing_reset(struct trace_array_cpu *data); 217void tracing_reset(struct trace_array_cpu *data);
217int tracing_open_generic(struct inode *inode, struct file *filp); 218int tracing_open_generic(struct inode *inode, struct file *filp);
218struct dentry *tracing_init_dentry(void); 219struct dentry *tracing_init_dentry(void);
219void init_tracer_sysprof_debugfs(struct dentry *d_tracer); 220void init_tracer_sysprof_debugfs(struct dentry *d_tracer);
220 221
222struct trace_entry *tracing_get_trace_entry(struct trace_array *tr,
223 struct trace_array_cpu *data);
224void tracing_generic_entry_update(struct trace_entry *entry,
225 unsigned long flags);
226
221void ftrace(struct trace_array *tr, 227void ftrace(struct trace_array *tr,
222 struct trace_array_cpu *data, 228 struct trace_array_cpu *data,
223 unsigned long ip, 229 unsigned long ip,
@@ -291,15 +297,6 @@ extern unsigned long ftrace_update_tot_cnt;
291extern int DYN_FTRACE_TEST_NAME(void); 297extern int DYN_FTRACE_TEST_NAME(void);
292#endif 298#endif
293 299
294#ifdef CONFIG_MMIOTRACE
295extern void __trace_mmiotrace_rw(struct trace_array *tr,
296 struct trace_array_cpu *data,
297 struct mmiotrace_rw *rw);
298extern void __trace_mmiotrace_map(struct trace_array *tr,
299 struct trace_array_cpu *data,
300 struct mmiotrace_map *map);
301#endif
302
303#ifdef CONFIG_FTRACE_STARTUP_TEST 300#ifdef CONFIG_FTRACE_STARTUP_TEST
304#ifdef CONFIG_FTRACE 301#ifdef CONFIG_FTRACE
305extern int trace_selftest_startup_function(struct tracer *trace, 302extern int trace_selftest_startup_function(struct tracer *trace,