diff options
author | Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> | 2009-02-09 01:15:56 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-09 12:24:34 -0500 |
commit | 3c56819b14b00dd449bd776303e61f8532fad09f (patch) | |
tree | 5a0617aa39fa441673382cf69d873b1906146e7e /kernel/trace/trace.h | |
parent | b91facc367366b3f71375f337eb5997ec9ab4e69 (diff) |
tracing: splice support for tracing_pipe
Added and implemented tracing_pipe_fops->splice_read(). This allows
userspace programs to get tracing data more efficiently.
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 7b0518adf6d7..dbff0207b213 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -353,6 +353,12 @@ struct tracer { | |||
353 | ssize_t (*read)(struct trace_iterator *iter, | 353 | ssize_t (*read)(struct trace_iterator *iter, |
354 | struct file *filp, char __user *ubuf, | 354 | struct file *filp, char __user *ubuf, |
355 | size_t cnt, loff_t *ppos); | 355 | size_t cnt, loff_t *ppos); |
356 | ssize_t (*splice_read)(struct trace_iterator *iter, | ||
357 | struct file *filp, | ||
358 | loff_t *ppos, | ||
359 | struct pipe_inode_info *pipe, | ||
360 | size_t len, | ||
361 | unsigned int flags); | ||
356 | #ifdef CONFIG_FTRACE_STARTUP_TEST | 362 | #ifdef CONFIG_FTRACE_STARTUP_TEST |
357 | int (*selftest)(struct tracer *trace, | 363 | int (*selftest)(struct tracer *trace, |
358 | struct trace_array *tr); | 364 | struct trace_array *tr); |