aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-11 14:33:00 -0400
committerSteven Rostedt <srostedt@redhat.com>2009-03-11 22:15:24 -0400
commit1852fcce181faa237c010a3dbedb473cf9d4555f (patch)
tree863cd12b573fd36436e7fb042f9bd96a73a9f725 /kernel/trace/trace.h
parent73c5162aa362a543793f4a957c6c536dcbaa89ce (diff)
tracing: expand the ring buffers when an event is activated
To save memory, the tracer ring buffers are set to a minimum. The activating of a trace expands the ring buffer size. This patch adds this expanding, when an event is activated. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index c5e1d8865fe4..336324d717f8 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -737,6 +737,9 @@ static inline void trace_branch_disable(void)
737} 737}
738#endif /* CONFIG_BRANCH_TRACER */ 738#endif /* CONFIG_BRANCH_TRACER */
739 739
740/* set ring buffers to default size if not already done so */
741int tracing_update_buffers(void);
742
740/* trace event type bit fields, not numeric */ 743/* trace event type bit fields, not numeric */
741enum { 744enum {
742 TRACE_EVENT_TYPE_PRINTF = 1, 745 TRACE_EVENT_TYPE_PRINTF = 1,