diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-12-02 04:20:19 +0100 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-04 03:01:55 +0100 |
commit | 2cadf9135eb3b6d84b6427314be827ddd443c308 (patch) | |
tree | 919e201f615b8de6d0263ded5693bad326196671 /kernel/trace/trace.h | |
parent | ring-buffer: make ring_buffer_read_page read from start on partial page (diff) | |
download | linux-2cadf9135eb3b6d84b6427314be827ddd443c308.tar.xz linux-2cadf9135eb3b6d84b6427314be827ddd443c308.zip |
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 { */ struct trace_array_cpu { atomic_t disabled; + void *buffer_page; /* ring buffer spare */ /* these fields get copied into max-trace: */ unsigned long trace_idx; |