aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-06 00:11:38 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-06 00:11:42 -0400
commited011b22ce567eabefa9ea571d3721c10ecd0553 (patch)
treec7aee6684613075c772388a99a9137014549434e /kernel/trace/trace.c
parent85bac32c4a52c592b857f2c360cc5ec93a097d70 (diff)
parente07cccf4046978df10f2e13fe2b99b2f9b3a65db (diff)
Merge commit 'v2.6.31-rc9' into tracing/core
Merge reason: move from -rc5 to -rc9. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 6df9861fde6b..5c75deeefe30 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3901,17 +3901,9 @@ trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt,
3901 if (ret < 0) 3901 if (ret < 0)
3902 return ret; 3902 return ret;
3903 3903
3904 switch (val) { 3904 if (val != 0 && val != 1)
3905 case 0:
3906 trace_flags &= ~(1 << index);
3907 break;
3908 case 1:
3909 trace_flags |= 1 << index;
3910 break;
3911
3912 default:
3913 return -EINVAL; 3905 return -EINVAL;
3914 } 3906 set_tracer_flags(1 << index, val);
3915 3907
3916 *ppos += cnt; 3908 *ppos += cnt;
3917 3909