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: MMI-PSA29.97-13-9~18912^2~61^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50d6828e898590fc5d038810334695380baa1c78;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 bd6185d529cf..33b53cab5dbf 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 \