Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

And unlike other tracers that trigger specific traces periodically,
nop triggers no traces by itself that can wake him.

Signed-off-by: Frederic Weisbecker <>
Cc: Steven Rostedt <>
LKML-Reference: <>
Signed-off-by: Ingo Molnar <>
  • Loading branch information...
commit 7e6ea92df3fd7cbe74e7985c6f3e40255c44b201 1 parent 07edf71
@fweisbec fweisbec authored Ingo Molnar committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  kernel/trace/trace_nop.c
1  kernel/trace/trace_nop.c
@@ -91,6 +91,7 @@ struct tracer nop_trace __read_mostly =
.name = "nop",
.init = nop_trace_init,
.reset = nop_trace_reset,
+ .wait_pipe = poll_wait_pipe,
.selftest = trace_selftest_startup_nop,
Please sign in to comment.
Something went wrong with that request. Please try again.