tracing: Make TRACE_ITER_STOP_ON_FREE stop the correct buffer
authorAlexander Z Lam <azl@google.com>
Sat, 3 Aug 2013 01:36:15 +0000 (18:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:07 +0000 (22:59 -0700)
commite25d45868ca209a7d13772ed313a99ea0f9194d6
tree1bad7be26c0c00c614f98319f9de00c4a91c2d0a
parent2d7ddf0a8fa2cffded6b8785f16e0c08c66f5007
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 <azl@google.com>
Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Cc: David Sharp <dhsharp@google.com>
Cc: Alexander Z Lam <lambchop468@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c