x86, ftrace: call trace->open() before stopping tracing; add trace->print_header()
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 25 Nov 2008 08:12:31 +0000 (09:12 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Nov 2008 16:31:13 +0000 (17:31 +0100)
commit8bba1bf5e2434c83f2fe8b1422604ace9bbe4cb8
tree3df07de04de7e3a838dbf544e6a98eadac37b027
parent6abb11aecd888d1da6276399380b7355f127c006
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>
kernel/trace/trace.c
kernel/trace/trace.h