mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] tracing: Make TRACE_ITER_STOP_ON_FREE stop the correct buffer
@ 2013-08-03  1:36 Alexander Z Lam
  2013-08-03  1:36 ` [PATCH 2/3] tracing: Fix reset of time stamps during trace_clock changes Alexander Z Lam
  2013-08-03  1:36 ` [PATCH 3/3] tracing: Make tracing_cpumask available for all instances Alexander Z Lam
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Z Lam @ 2013-08-03  1:36 UTC (permalink / raw)
  To: Steven Rostedt, linux-kernel
  Cc: Alexander Z Lam, David Sharp, Vaibhav Nagarnaik, Alexander Z Lam

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.

Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Cc: David Sharp <dhsharp@google.com>
Cc: Alexander Z Lam <lambchop468@gmail.com>
Signed-off-by: Alexander Z Lam <azl@google.com>
---
 kernel/trace/trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 882ec1d..9bfb889 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -4468,7 +4468,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);
 
-- 
1.8.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-03  1:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-03  1:36 [PATCH 1/3] tracing: Make TRACE_ITER_STOP_ON_FREE stop the correct buffer Alexander Z Lam
2013-08-03  1:36 ` [PATCH 2/3] tracing: Fix reset of time stamps during trace_clock changes Alexander Z Lam
2013-08-03  1:53   ` Steven Rostedt
2013-08-03  1:36 ` [PATCH 3/3] tracing: Make tracing_cpumask available for all instances Alexander Z Lam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®