[PATCH 13/15] small_traces: Add config option to shrink trace events.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Sharp
Date: Friday, December 3, 2010 - 5:13 pm

This option will remove several fields from trace events to reduce the
payload size. Under heavy load, events can be produced faster than they
can possibly be written to disk or sent on the network. Shrinking the
payload size will enable fitting more traces in the ring buffer, which
therefore enables tracing for longer periods, at the cost of losing some
relatively unimportant details.

Google-Bug-Id: 3224547

Signed-off-by: David Sharp <dhsharp@google.com>
---
 kernel/trace/Kconfig |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index ea37e2f..9c24fe5 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -403,6 +403,18 @@ config FUNCTION_PROFILER
 
 	  If in doubt, say N.
 
+config SMALL_TRACES
+	bool "Shrink trace events"
+	default n
+	help
+	  Minimize the size of trace events. Omits fields from trace event
+	  header like preempt_count, and lock_depth. Chooses smaller
+	  alternative event structures. Shrinking the payload size enables
+	  fitting more traces in the ring buffer, which enables tracing for
+	  longer periods when the buffer can not be read as fast as it is
+	  filled, at the cost of losing some details.
+
+
 config FTRACE_MCOUNT_RECORD
 	def_bool y
 	depends on DYNAMIC_FTRACE
-- 
1.7.3.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch 00/15] Reduce tracing payload size., David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 04/15] ftrace: pack event structures., David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 10/15] ftrace: fix event alignment: jbd2:*, David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 11/15] ftrace: fix event alignment: ext4:*, David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 13/15] small_traces: Add config option to shrink tr ..., David Sharp, (Fri Dec 3, 5:13 pm)
Re: [PATCH 10/15] ftrace: fix event alignment: jbd2:*, Steven Rostedt, (Fri Dec 3, 6:52 pm)
Re: [PATCH 11/15] ftrace: fix event alignment: ext4:*, Steven Rostedt, (Fri Dec 3, 6:53 pm)
Re: [Patch 00/15] Reduce tracing payload size., Andi Kleen, (Mon Dec 6, 6:22 am)
Re: [Patch 00/15] Reduce tracing payload size., Ted Ts'o, (Mon Dec 6, 6:56 am)
Re: [Patch 00/15] Reduce tracing payload size., Andi Kleen, (Mon Dec 6, 7:58 am)
Re: [Patch 00/15] Reduce tracing payload size., Steven Rostedt, (Mon Dec 6, 9:17 am)
Re: [Patch 00/15] Reduce tracing payload size., Miguel Ojeda, (Mon Dec 6, 9:31 am)
Re: [Patch 00/15] Reduce tracing payload size., Andi Kleen, (Mon Dec 6, 9:41 am)
[PATCH] tracing: Add an 'overwrite' trace_option., David Sharp, (Wed Dec 8, 2:46 pm)
Re: [PATCH 08/15] ftrace: fix event alignment: mce:mce_record, Frederic Weisbecker, (Thu Dec 9, 6:33 am)
Re: [PATCH 13/15] small_traces: Add config option to shrin ..., Frederic Weisbecker, (Thu Dec 9, 7:55 am)
Re: [PATCH 13/15] small_traces: Add config option to shrin ..., Frederic Weisbecker, (Thu Dec 9, 8:28 am)
Re: [PATCH] tracing: Add an 'overwrite' trace_option., David Sharp, (Mon Dec 13, 5:39 pm)