aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2008-11-25 03:12:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-25 11:31:13 -0500
commit8bba1bf5e2434c83f2fe8b1422604ace9bbe4cb8 (patch)
tree3df07de04de7e3a838dbf544e6a98eadac37b027 /kernel/trace/trace.h
parent6abb11aecd888d1da6276399380b7355f127c006 (diff)
x86, ftrace: call trace->open() before stopping tracing; add trace->print_header()
Add a callback to allow an ftrace plug-in to write its own header. Move the call to trace->open() up a few lines. The changes are required by the BTS ftrace plug-in. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 28c15c2ebc22..717f9f045c6f 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -311,6 +311,7 @@ struct tracer {
311 int (*selftest)(struct tracer *trace, 311 int (*selftest)(struct tracer *trace,
312 struct trace_array *tr); 312 struct trace_array *tr);
313#endif 313#endif
314 void (*print_header)(struct seq_file *m);
314 enum print_line_t (*print_line)(struct trace_iterator *iter); 315 enum print_line_t (*print_line)(struct trace_iterator *iter);
315 /* If you handled the flag setting, return 0 */ 316 /* If you handled the flag setting, return 0 */
316 int (*set_flag)(u32 old_flags, u32 bit, int set); 317 int (*set_flag)(u32 old_flags, u32 bit, int set);