Commit 0b9c581
tracing: Reset last_boot_info if ring buffer is reset
[ Upstream commit 804c4a2 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 127f948 commit 0b9c581
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4852 | 4852 | | |
4853 | 4853 | | |
4854 | 4854 | | |
| 4855 | + | |
| 4856 | + | |
4855 | 4857 | | |
4856 | 4858 | | |
4857 | 4859 | | |
| |||
4876 | 4878 | | |
4877 | 4879 | | |
4878 | 4880 | | |
| 4881 | + | |
| 4882 | + | |
4879 | 4883 | | |
4880 | 4884 | | |
4881 | 4885 | | |
| |||
5917 | 5921 | | |
5918 | 5922 | | |
5919 | 5923 | | |
| 5924 | + | |
5920 | 5925 | | |
5921 | 5926 | | |
5922 | 5927 | | |
| |||
7582 | 7587 | | |
7583 | 7588 | | |
7584 | 7589 | | |
| 7590 | + | |
7585 | 7591 | | |
7586 | 7592 | | |
7587 | 7593 | | |
| |||
0 commit comments