|
@@ -3454,7 +3454,7 @@ static int tracing_wait_pipe(struct file *filp)
|
|
|
return -EINTR;
|
|
|
|
|
|
/*
|
|
|
- * We block until we read something and tracing is enabled.
|
|
|
+ * We block until we read something and tracing is disabled.
|
|
|
* We still block if tracing is disabled, but we have never
|
|
|
* read anything. This allows a user to cat this file, and
|
|
|
* then enable tracing. But after we have read something,
|
|
@@ -3462,7 +3462,7 @@ static int tracing_wait_pipe(struct file *filp)
|
|
|
*
|
|
|
* iter->pos will be 0 if we haven't read anything.
|
|
|
*/
|
|
|
- if (tracing_is_enabled() && iter->pos)
|
|
|
+ if (!tracing_is_enabled() && iter->pos)
|
|
|
break;
|
|
|
}
|
|
|
|