]> bbs.cooldavid.org Git - net-next-2.6.git/commit
tracing: Create class struct for events
authorSteven Rostedt <srostedt@redhat.com>
Tue, 20 Apr 2010 14:47:33 +0000 (10:47 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 14 May 2010 13:33:49 +0000 (09:33 -0400)
commit8f0820183056ad26dabc0202115848a92f1143fc
treec9e1cb9d41e37d5075704efbde3c97121820e0c5
parent23e117fa44429cc054cb27d5621d64e4ced91e52
tracing: Create class struct for events

This patch creates a ftrace_event_class struct that event structs point to.
This class struct will be made to hold information to modify the
events. Currently the class struct only holds the events system name.

This patch slightly increases the size, but this change lays the ground work
of other changes to make the footprint of tracepoints smaller.

With 82 standard tracepoints, and 618 system call tracepoints
(two tracepoints per syscall: enter and exit):

   text    data     bss     dec     hex filename
4913961 1088356  861512 6863829  68bbd5 vmlinux.orig
4914025 1088868  861512 6864405  68be15 vmlinux.class

This patch also cleans up some stale comments in ftrace.h.

v2: Fixed missing semi-colon in macro.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
include/linux/syscalls.h
include/trace/ftrace.h
kernel/trace/trace_events.c
kernel/trace/trace_events_filter.c
kernel/trace/trace_export.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_syscalls.c