From: Steven Rostedt Date: Thu, 19 May 2011 18:41:17 +0000 (-0400) Subject: scripts/tags.sh: Fix ctags for DEFINE_EVENT() X-Git-Tag: v3.0-rc1~25^2~6^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50d6828e898590fc5d038810334695380baa1c78;p=profile%2Fivi%2Fkernel-x86-ivi.git scripts/tags.sh: Fix ctags for DEFINE_EVENT() 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 Signed-off-by: Steven Rostedt --- 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 \