diff options
| author | Masami Hiramatsu (Google) <[email protected]> | 2025-05-22 15:54:52 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-05-29 12:24:07 +0000 |
| commit | 32dc0042528d385d83bf458e4cf3a49c5110afea (patch) | |
| tree | 926be55a34749a547827f299edd26f06852ce1a3 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | ring-buffer: Allow reserve_mem persistent ring buffers to be mmapped (diff) | |
| download | kernel-32dc0042528d385d83bf458e4cf3a49c5110afea.tar.gz kernel-32dc0042528d385d83bf458e4cf3a49c5110afea.zip | |
tracing: Reset last-boot buffers when reading out all cpu buffers
Reset the last-boot ring buffers when read() reads out all cpu
buffers through trace_pipe/trace_pipe_raw. This prevents ftrace to
unwind ring buffer read pointer next boot.
Note that this resets only when all per-cpu buffers are empty, and
read via read(2) syscall. For example, if you read only one of the
per-cpu trace_pipe, it does not reset it. Also, reading buffer by
splice(2) syscall does not reset because some data in the reader
(the last) page.
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/174792929202.496143.8184644221859580999.stgit@mhiramat.tok.corp.google.com
Suggested-by: Steven Rostedt <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
