Commit 2632a20
tracing: Record trace_clock and recover when reboot
Record trace_clock information in the trace_scratch area and recover
the trace_clock when boot, so that reader can docode the timestamp
correctly.
Note that since most trace_clocks records the timestamp in nano-
seconds, this is not a bug. But some trace_clock, like counter and
tsc will record the counter value. Only for those trace_clock user
needs this information.
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/174720625803.1925039.1815089037443798944.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 155fd6c commit 2632a20
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6066 | 6066 | | |
6067 | 6067 | | |
6068 | 6068 | | |
| 6069 | + | |
6069 | 6070 | | |
6070 | 6071 | | |
6071 | 6072 | | |
| |||
6181 | 6182 | | |
6182 | 6183 | | |
6183 | 6184 | | |
| 6185 | + | |
6184 | 6186 | | |
6185 | 6187 | | |
6186 | 6188 | | |
| |||
7403 | 7405 | | |
7404 | 7406 | | |
7405 | 7407 | | |
| 7408 | + | |
| 7409 | + | |
| 7410 | + | |
| 7411 | + | |
| 7412 | + | |
| 7413 | + | |
7406 | 7414 | | |
7407 | 7415 | | |
7408 | 7416 | | |
| |||
9628 | 9636 | | |
9629 | 9637 | | |
9630 | 9638 | | |
| 9639 | + | |
| 9640 | + | |
| 9641 | + | |
| 9642 | + | |
| 9643 | + | |
| 9644 | + | |
| 9645 | + | |
| 9646 | + | |
| 9647 | + | |
9631 | 9648 | | |
9632 | 9649 | | |
9633 | 9650 | | |
| |||
0 commit comments