Skip to content

Commit 7e6ea92

Browse files
fweisbecIngo Molnar
authored andcommitted
tracing/ftrace: make nop-tracer use polling wait for events on pipe
Impact: display events when they arrive Now that the events don't use wake_up() anymore, we need the nop tracer to poll waiting for events on the pipe. Especially because nop is useful to look at orphan traces types (traces types that don't rely on specific tracers) because it doesn't produce traces itself. And unlike other tracers that trigger specific traces periodically, nop triggers no traces by itself that can wake him. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <1237759847-21025-5-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 07edf71 commit 7e6ea92

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/trace/trace_nop.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ struct tracer nop_trace __read_mostly =
9191
.name = "nop",
9292
.init = nop_trace_init,
9393
.reset = nop_trace_reset,
94+
.wait_pipe = poll_wait_pipe,
9495
#ifdef CONFIG_FTRACE_SELFTEST
9596
.selftest = trace_selftest_startup_nop,
9697
#endif

0 commit comments

Comments
 (0)