diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-12-11 02:26:16 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-12-11 15:34:32 +0100 |
commit | 2768c1e7f9d7b82f9e129efe3677c783bc77b8f9 (patch) | |
tree | 552a59d0a33187481d0870567a05512e58581361 /kernel/trace/trace.c | |
parent | tracing: Use memset_startat helper in trace_iterator_reset() (diff) | |
download | linux-2768c1e7f9d7b82f9e129efe3677c783bc77b8f9.tar.xz linux-2768c1e7f9d7b82f9e129efe3677c783bc77b8f9.zip |
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/20211210202616.64d432d2@gandalf.local.home
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/trace/trace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 588de6df473f..547d82628c2e 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -6731,10 +6731,9 @@ waitagain: cnt = PAGE_SIZE - 1; /* reset all but tr, trace, and overruns */ - memset_startat(iter, 0, seq); + trace_iterator_reset(iter); cpumask_clear(iter->started); trace_seq_init(&iter->seq); - iter->pos = -1; trace_event_read_lock(); trace_access_lock(iter->cpu_file); |