lkml.org 
[lkml]   [2009]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2009-11-20 09:09    [W:0.049 / U:0.020 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site