Skip to content

RFC tracing/perf: Use helper functions to help shrink kernel size

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tracing: Move print code from macro to standalone functioninclude/linux/ftrace_event.h include/trace/ftrace.h kernel/trace/trace_output.c+51 -190 replies
2/4tracing: Move event storage for array from macro to standalone functioninclude/linux/ftrace_event.h include/trace/ftrace.h kernel/trace/trace_events.c +2 more+32 -260 replies
3/4tracing: Use helper functions in event assignment to shrink macro sizeinclude/linux/ftrace_event.h include/trace/ftrace.h kernel/trace/trace_output.c+46 -150 replies
4/4perf/events: Use helper functions in event assignment to shrink macro sizeinclude/linux/ftrace_event.h include/trace/ftrace.h kernel/trace/trace_event_perf.c+47 -235 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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(-)