tracing: Add disable_on_free option
authorSteven Rostedt <srostedt@redhat.com>
Wed, 15 Jun 2011 02:44:07 +0000 (22:44 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 15 Jun 2011 02:48:45 +0000 (22:48 -0400)
commitcf30cf67d6c7592c670ec946d89fc15ee0deb0eb
treef86ca612b255ee8570e2fd6198e066ea8cf33fe0
parent4f271a2a60c748599b30bb4dafff30d770439b96
tracing: Add disable_on_free option

Add a trace option to disable tracing on free. When this option is
set, a write into the free_buffer file will not only shrink the
ring buffer down to zero, but it will also disable tracing.

Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h