scripts/tags.sh: Fix ctags for DEFINE_EVENT()
authorSteven Rostedt <srostedt@redhat.com>
Thu, 19 May 2011 18:41:17 +0000 (14:41 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 25 May 2011 23:56:28 +0000 (19:56 -0400)
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

index bd6185d529cff980e8516429abdc9f3ca2646391..33b53cab5dbf99ec18b610ab56d188801f9d84a9 100755 (executable)
@@ -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              \