lkml.org 
[lkml]   [2012]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[RFC][PATCH 0/4] tracing/perf: Use helper functions to help shrink kernel size
This patch set is another effort to bring down the size of trace events.

Helper functions are used to remove duplicate code that is created
for each event by the TRACE_EVENT() macros. With a config that enables
707 events in the core kernel, the size is brought down 91,774 bytes!


Steven Rostedt (4):
tracing: Move print code from macro to standalone function
tracing: Move event storage for array from macro to standalone function
tracing: Use helper functions in event assignment to shrink macro size
perf/events: Use helper functions in event assignment to shrink macro size

----
include/linux/ftrace_event.h | 40 +++++++++++++++--
include/trace/ftrace.h | 85 +++++++++---------------------------
kernel/trace/trace_event_perf.c | 26 +++++++++++
kernel/trace/trace_events.c | 6 ---
kernel/trace/trace_export.c | 12 ++----
kernel/trace/trace_output.c | 90 +++++++++++++++++++++++++++++++++++++++
6 files changed, 176 insertions(+), 83 deletions(-)


\
 
 \ /
  Last update: 2012-08-10 06:43    [W:0.107 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site