Commit 486fbcb
tracing: Skip update_last_data() if cleared and remove active check for save_mod()
If the last boot data is already cleared, there is no reason to update it
again. Skip if the TRACE_ARRAY_FL_LAST_BOOT is cleared.
Also, for calling save_mod() when module loading, we don't need to check
the trace is active or not because any module address can be on the
stacktrace.
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/174165660328.1173316.15529357882704817499.stgit@devnote2
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 5dbeb56 commit 486fbcb
1 file changed
+8
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6040 | 6040 | | |
6041 | 6041 | | |
6042 | 6042 | | |
| 6043 | + | |
| 6044 | + | |
| 6045 | + | |
| 6046 | + | |
| 6047 | + | |
| 6048 | + | |
6043 | 6049 | | |
6044 | 6050 | | |
6045 | 6051 | | |
| |||
6052 | 6058 | | |
6053 | 6059 | | |
6054 | 6060 | | |
6055 | | - | |
6056 | | - | |
6057 | | - | |
6058 | 6061 | | |
6059 | 6062 | | |
6060 | 6063 | | |
| |||
6077 | 6080 | | |
6078 | 6081 | | |
6079 | 6082 | | |
6080 | | - | |
6081 | 6083 | | |
6082 | 6084 | | |
6083 | 6085 | | |
| |||
10103 | 10105 | | |
10104 | 10106 | | |
10105 | 10107 | | |
10106 | | - | |
10107 | | - | |
10108 | | - | |
10109 | | - | |
10110 | | - | |
10111 | | - | |
10112 | | - | |
10113 | | - | |
10114 | | - | |
10115 | 10108 | | |
10116 | 10109 | | |
10117 | 10110 | | |
| |||
10120 | 10113 | | |
10121 | 10114 | | |
10122 | 10115 | | |
10123 | | - | |
10124 | | - | |
10125 | | - | |
10126 | | - | |
10127 | | - | |
| 10116 | + | |
| 10117 | + | |
10128 | 10118 | | |
10129 | 10119 | | |
10130 | 10120 | | |
| |||
0 commit comments