Messages in this thread | | | Date | Fri, 20 Nov 2009 16:06:45 +0800 | From | Li Zefan <> | Subject | Re: [PATCH 2/4] [PATCH 2/4] tracing: Create new TRACE_EVENT_TEMPLATE |
| |
Steven Rostedt wrote: > From: Steven Rostedt <srostedt@redhat.com> > > There are some places in the kernel that define several tracepoints and > they are all identical besides the name. The code to enable, disable and > record is created for every trace point even if most of the code is > identical. > > This patch adds TRACE_EVENT_TEMPLATE that lets the developer create > a template TRACE_EVENT and create trace points with DEFINE_EVENT, which > is based off of a given template. Each trace point used by this > will share most of the code, and bring down the size of the kernel > when there are several duplicate events. >
Great!
There are quite many places that this template can be used.
If you haven't planed to convert other TRACE_EVENTs, I'll take it.
More over, I'll cook another patch to annotate some functions as __init, so shrink the kernel size further.
| |