We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8214652 commit 38dbe0bCopy full SHA for 38dbe0b
kernel/trace/trace.c
@@ -5030,6 +5030,7 @@ __ftrace_dump(bool disable_tracing, enum ftrace_dump_mode oops_dump_mode)
5030
if (disable_tracing)
5031
ftrace_kill();
5032
5033
+ /* Simulate the iterator */
5034
trace_init_global_iter(&iter);
5035
5036
for_each_tracing_cpu(cpu) {
@@ -5041,10 +5042,6 @@ __ftrace_dump(bool disable_tracing, enum ftrace_dump_mode oops_dump_mode)
5041
5042
/* don't look at user memory in panic mode */
5043
trace_flags &= ~TRACE_ITER_SYM_USEROBJ;
5044
- /* Simulate the iterator */
5045
- iter.tr = &global_trace;
5046
- iter.trace = current_trace;
5047
-
5048
switch (oops_dump_mode) {
5049
case DUMP_ALL:
5050
iter.cpu_file = TRACE_PIPE_ALL_CPU;
0 commit comments