From: Alexander Z Lam Date: Sat, 3 Aug 2013 01:36:15 +0000 (-0700) Subject: tracing: Make TRACE_ITER_STOP_ON_FREE stop the correct buffer X-Git-Tag: firefly_0821_release~6453^2~1108 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e25d45868ca209a7d13772ed313a99ea0f9194d6;p=firefly-linux-kernel-4.4.55.git tracing: Make TRACE_ITER_STOP_ON_FREE stop the correct buffer commit 711e124379e0f889e40e2f01d7f5d61936d3cd23 upstream. Releasing the free_buffer file in an instance causes the global buffer to be stopped when TRACE_ITER_STOP_ON_FREE is enabled. Operate on the correct buffer. Link: http://lkml.kernel.org/r/1375493777-17261-1-git-send-email-azl@google.com Signed-off-by: Alexander Z Lam Cc: Vaibhav Nagarnaik Cc: David Sharp Cc: Alexander Z Lam Signed-off-by: Steven Rostedt Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2a250a2aa028..1226a98c9bef 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -4438,7 +4438,7 @@ tracing_free_buffer_release(struct inode *inode, struct file *filp) /* disable tracing ? */ if (trace_flags & TRACE_ITER_STOP_ON_FREE) - tracing_off(); + tracer_tracing_off(tr); /* resize the ring buffer to 0 */ tracing_resize_ring_buffer(tr, 0, RING_BUFFER_ALL_CPUS);