Skip to content

Commit 2768c1e

Browse files
committed
tracing: Use trace_iterator_reset() in tracing_read_pipe()
Currently tracing_read_pipe() open codes trace_iterator_reset(). Just have it use trace_iterator_reset() instead. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent dba8796 commit 2768c1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6731,10 +6731,9 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
67316731
cnt = PAGE_SIZE - 1;
67326732

67336733
/* reset all but tr, trace, and overruns */
6734-
memset_startat(iter, 0, seq);
6734+
trace_iterator_reset(iter);
67356735
cpumask_clear(iter->started);
67366736
trace_seq_init(&iter->seq);
6737-
iter->pos = -1;
67386737

67396738
trace_event_read_lock();
67406739
trace_access_lock(iter->cpu_file);

0 commit comments

Comments
 (0)