tracing: Convert some sched trace events to DEFINE_EVENT and _PRINT
authorSteven Rostedt <srostedt@redhat.com>
Thu, 19 Nov 2009 01:48:08 +0000 (20:48 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 24 Nov 2009 23:24:00 +0000 (18:24 -0500)
commit75ec29ab848a7e92a41aaafaeb33d1afbc839be4
treed9bf6d12a60ddfe7cab9fb6ca370b0436ffe4649
parente5bc9721684e9412f3e0465222f317c362a8ab47
tracing: Convert some sched trace events to DEFINE_EVENT and _PRINT

Converting some of the scheduler trace events to use the
TRACE_EVENT_TEMPLATE, DEFINE_EVENT and DEFINE_EVENT_PRINT helped to
save some space:

$ size kernel/sched.o-*
   text    data     bss     dec     hex filename
  79299    6776    2520   88595   15a13 kernel/sched.o-notrace
 101941   11896    2584  116421   1c6c5 kernel/sched.o-templ
 104779   11896    2584  119259   1d1db kernel/sched.o-trace

sched.o-notrace is without any tracepoints compiled
sched.o-templ is with this patch
sched.o-trace is the tracepoints before this patch

The trace events converted to DEFINE_EVENT:

sched_wakeup, sched_wakeup_new, sched_process_free, sched_process_exit,
and sched_stat_wait.

The trace events converted to DEFINE_EVENT_PRINT:

sched_stat_sleep and sched_stat_iowait.

Note, since the TRACE_EVENT_TEMPLATE always uses a print, the
sched_stat_wait print format is defined in the template and this
template is used by sched_stat_sleep and sched_stat_iowait. But the
later two override the print format.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/trace/events/sched.h