Commit 804c4a2
tracing: Reset last_boot_info if ring buffer is reset
Commit 32dc004 ("tracing: Reset last-boot buffers when reading
out all cpu buffers") resets the last_boot_info when user read out
all data via trace_pipe* files. But it is not reset when user
resets the buffer from other files. (e.g. write `trace` file)
Reset it when the corresponding ring buffer is reset too.
Cc: stable@vger.kernel.org
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/177071302364.2293046.17895165659153977720.stgit@mhiramat.tok.corp.google.com
Fixes: 32dc004 ("tracing: Reset last-boot buffers when reading out all cpu buffers")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent f844282 commit 804c4a2
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4127 | 4127 | | |
4128 | 4128 | | |
4129 | 4129 | | |
| 4130 | + | |
| 4131 | + | |
4130 | 4132 | | |
4131 | 4133 | | |
4132 | 4134 | | |
| |||
4151 | 4153 | | |
4152 | 4154 | | |
4153 | 4155 | | |
| 4156 | + | |
| 4157 | + | |
4154 | 4158 | | |
4155 | 4159 | | |
4156 | 4160 | | |
| |||
5215 | 5219 | | |
5216 | 5220 | | |
5217 | 5221 | | |
| 5222 | + | |
5218 | 5223 | | |
5219 | 5224 | | |
5220 | 5225 | | |
| |||
7028 | 7033 | | |
7029 | 7034 | | |
7030 | 7035 | | |
| 7036 | + | |
7031 | 7037 | | |
7032 | 7038 | | |
7033 | 7039 | | |
| |||
0 commit comments