diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-12-01 22:20:19 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-03 21:01:55 -0500 |
commit | 2cadf9135eb3b6d84b6427314be827ddd443c308 (patch) | |
tree | 919e201f615b8de6d0263ded5693bad326196671 /kernel/trace/trace.h | |
parent | 474d32b68d6d842f3e710e9ae9fe2568c53339f8 (diff) |
tracing: add binary buffer files for use with splice
Impact: new feature
This patch creates a directory of files that correspond to the
per CPU ring buffers. These are binary files and are made to
be used with splice. This is the fastest way to extract data from
the ftrace ring buffers.
Thanks to Jiaying Zhang for pushing me to get this code fixed,
and to Eduard - Gabriel Munteanu for his splice code that helped
me debug my code.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index e606633fb498..561bb5c5d988 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -217,6 +217,7 @@ enum trace_flag_type { | |||
217 | */ | 217 | */ |
218 | struct trace_array_cpu { | 218 | struct trace_array_cpu { |
219 | atomic_t disabled; | 219 | atomic_t disabled; |
220 | void *buffer_page; /* ring buffer spare */ | ||
220 | 221 | ||
221 | /* these fields get copied into max-trace: */ | 222 | /* these fields get copied into max-trace: */ |
222 | unsigned long trace_idx; | 223 | unsigned long trace_idx; |