Commit f377912
committed
tracing: Have trace_printk functions use flags instead of using global_trace
The trace.c file has become a dumping ground for all tracing code and has
become quite large. In order to move the trace_printk functions out of it
these functions can not access global_trace directly, as that is something
that needs to stay static in trace.c.
Instead of testing the trace_array tr pointer to &global_trace, test the
tr->flags to see if TRACE_ARRAY_FL_GLOBAL set.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20260208032450.491116245@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent 93c88d0 commit f377912
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
1074 | | - | |
| 1074 | + | |
| 1075 | + | |
1075 | 1076 | | |
1076 | 1077 | | |
1077 | 1078 | | |
| |||
3386 | 3387 | | |
3387 | 3388 | | |
3388 | 3389 | | |
3389 | | - | |
| 3390 | + | |
3390 | 3391 | | |
3391 | 3392 | | |
3392 | 3393 | | |
| |||
3422 | 3423 | | |
3423 | 3424 | | |
3424 | 3425 | | |
3425 | | - | |
| 3426 | + | |
3426 | 3427 | | |
3427 | 3428 | | |
3428 | 3429 | | |
| |||
3449 | 3450 | | |
3450 | 3451 | | |
3451 | 3452 | | |
3452 | | - | |
| 3453 | + | |
3453 | 3454 | | |
3454 | 3455 | | |
3455 | 3456 | | |
| |||
0 commit comments