Skip to content

Commit 19a0192

Browse files
rostedtJiri Slaby
authored andcommitted
tracing: Remove ftrace_stop/start() from reading the trace file
commit 099ed15 upstream. Disabling reading and writing to the trace file should not be able to disable all function tracing callbacks. There's other users today (like kprobes and perf). Reading a trace file should not stop those from happening. Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
1 parent cb116d6 commit 19a0192

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎kernel/trace/trace.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,6 @@ void tracing_start(void)
13231323

13241324
arch_spin_unlock(&ftrace_max_lock);
13251325

1326-
ftrace_start();
13271326
out:
13281327
raw_spin_unlock_irqrestore(&global_trace.start_lock, flags);
13291328
}
@@ -1370,7 +1369,6 @@ void tracing_stop(void)
13701369
struct ring_buffer *buffer;
13711370
unsigned long flags;
13721371

1373-
ftrace_stop();
13741372
raw_spin_lock_irqsave(&global_trace.start_lock, flags);
13751373
if (global_trace.stop_count++)
13761374
goto out;

0 commit comments

Comments
 (0)