projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dba8796
)
tracing: Use trace_iterator_reset() in tracing_read_pipe()
author
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Sat, 11 Dec 2021 01:26:16 +0000
(20:26 -0500)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Sat, 11 Dec 2021 14:34:32 +0000
(09:34 -0500)
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>
kernel/trace/trace.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index
588de6d
..
547d826
100644
(file)
--- 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);