Commit 50d6828e898590fc5d038810334695380baa1c78
Committed by
Steven Rostedt
1 parent
0d098a7d1e
Exists in
master
and in
4 other branches
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 <a.p.zijlstra@chello.nl> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/tags.sh
... | ... | @@ -132,7 +132,7 @@ |
132 | 132 | --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \ |
133 | 133 | --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \ |
134 | 134 | --regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \ |
135 | - --regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_/' | |
135 | + --regex-c++='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_/' | |
136 | 136 | |
137 | 137 | all_kconfigs | xargs $1 -a \ |
138 | 138 | --langdef=kconfig --language-force=kconfig \ |