summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-06-14 22:44:07 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-06-14 22:48:45 -0400
commitcf30cf67d6c7592c670ec946d89fc15ee0deb0eb (patch)
treef86ca612b255ee8570e2fd6198e066ea8cf33fe0 /kernel/trace/trace.h
parent4f271a2a60c748599b30bb4dafff30d770439b96 (diff)
downloadop-kernel-dev-cf30cf67d6c7592c670ec946d89fc15ee0deb0eb.zip
op-kernel-dev-cf30cf67d6c7592c670ec946d89fc15ee0deb0eb.tar.gz
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>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 229f859..742f545 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -609,6 +609,7 @@ enum trace_iterator_flags {
TRACE_ITER_GRAPH_TIME = 0x80000,
TRACE_ITER_RECORD_CMD = 0x100000,
TRACE_ITER_OVERWRITE = 0x200000,
+ TRACE_ITER_STOP_ON_FREE = 0x400000,
};
/*
OpenPOWER on IntegriCloud