lkml.org 
[lkml]   [2010]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 13/15] small_traces: Add config option to shrink trace events.
Date
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


\
 
 \ /
  Last update: 2010-12-04 01:17    [W:0.239 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site