projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17d969
)
ftrace: allow trace_pipe to block on all reads
author
Steven Rostedt
<rostedt@goodmis.org>
Mon, 12 May 2008 19:20:58 +0000
(21:20 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 23 May 2008 19:46:39 +0000
(21:46 +0200)
We expect things like "cat" to block on reads to trace_pipe. That's what
trace_pipe is for.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index 9197782d15c9dd4abc7b6ddd561d3a919fc69465..fd4ecc292005a0aff041fc7966729af80b47dfdd 100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-2231,8
+2231,6
@@
tracing_read_pipe(struct file *filp, char __user *ubuf,
start = 0;
while (trace_empty(iter)) {
- if (!(trace_flags & TRACE_ITER_BLOCK))
- return -EWOULDBLOCK;
/*
* This is a make-shift waitqueue. The reason we don't use
* an actual wait queue is because: