Skip to content

Commit 5bd4990

Browse files
dhowellsaxboe
authored andcommitted
trace: Convert trace/seq to use copy_splice_read()
For the splice from the trace seq buffer, just use copy_splice_read(). In the future, something better can probably be done by gifting pages from seq->buf into the pipe, but that would require changing seq->buf into a vmap over an array of pages. Signed-off-by: David Howells <[email protected]> cc: Christoph Hellwig <[email protected]> cc: Al Viro <[email protected]> cc: Jens Axboe <[email protected]> cc: Steven Rostedt <[email protected]> cc: Masami Hiramatsu <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 6ef48ec commit 5bd4990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5171,7 +5171,7 @@ static const struct file_operations tracing_fops = {
51715171
.open = tracing_open,
51725172
.read = seq_read,
51735173
.read_iter = seq_read_iter,
5174-
.splice_read = generic_file_splice_read,
5174+
.splice_read = copy_splice_read,
51755175
.write = tracing_write_stub,
51765176
.llseek = tracing_lseek,
51775177
.release = tracing_release,

0 commit comments

Comments
 (0)