[RFC][PATCH 0/4] tracing/perf: Use helper functions to help shrink kernel size

From: Steven Rostedt
Date: Thu Feb 06 2014 - 13:11:51 EST



I posted this a while ago (August 2012), and it seemed to have positive
feedback. But I forgot about it and it never went any further.

http://lkml.kernel.org/r/20120810034302.758092203@xxxxxxxxxxx

It works to move the tracepoint code out of the macros and into reusable
functions that can save a whopping 73K from the kernel memory (with just the
modules I used compiled in).

There was some changes in mainline since I last posted this that helped
lower the tracepoint footprint, and that makes the first patch not as much
of an approvement that it was in the past.

Anyway, hopefully this can get into 3.15.

-- Steve


Steven Rostedt (4):
tracing: Move raw output 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 | 46 +++++++++++++++++++++--
include/trace/ftrace.h | 75 ++++++++++++-------------------------
kernel/trace/trace_event_perf.c | 51 +++++++++++++++++++++++++
kernel/trace/trace_events.c | 6 ---
kernel/trace/trace_export.c | 12 ++----
kernel/trace/trace_output.c | 83 +++++++++++++++++++++++++++++++++++++++++
6 files changed, 203 insertions(+), 70 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/