lkml.org 
[lkml]   [2011]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 03/12] scripts/tags.sh: Fix ctags for DEFINE_EVENT()
    From: Steven Rostedt <srostedt@redhat.com>

    The regex to handle DEFINE_EVENT() should not be the same as
    the TRACE_EVENT() as the first parameter in DEFINE_EVENT is the
    template name, not the event name. We need the second parameter
    as that is what the trace_... will use.

    Tested-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    scripts/tags.sh | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/scripts/tags.sh b/scripts/tags.sh
    index bd6185d..33b53ca 100755
    --- a/scripts/tags.sh
    +++ b/scripts/tags.sh
    @@ -132,7 +132,7 @@ exuberant()
    --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \
    --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \
    --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \
    - --regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_\1/'
    + --regex-c++='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_\1/'

    all_kconfigs | xargs $1 -a \
    --langdef=kconfig --language-force=kconfig \
    --
    1.7.4.4



    \
     
     \ /
      Last update: 2011-05-26 17:35    [W:0.026 / U:152.404 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site