aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 769dfd00fc85..ca624df73591 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -141,6 +141,10 @@ ftrace_event_write(struct file *file, const char __user *ubuf,
141 if (!cnt || cnt < 0) 141 if (!cnt || cnt < 0)
142 return 0; 142 return 0;
143 143
144 ret = tracing_update_buffers();
145 if (ret < 0)
146 return ret;
147
144 ret = get_user(ch, ubuf++); 148 ret = get_user(ch, ubuf++);
145 if (ret) 149 if (ret)
146 return ret; 150 return ret;
@@ -331,6 +335,10 @@ event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt,
331 if (ret < 0) 335 if (ret < 0)
332 return ret; 336 return ret;
333 337
338 ret = tracing_update_buffers();
339 if (ret < 0)
340 return ret;
341
334 switch (val) { 342 switch (val) {
335 case 0: 343 case 0:
336 case 1: 344 case 1: