Skip to content

Commit 35d3778

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
scripts/tags.sh: Add magic for trace-events
Make tags find the trace-event definitions Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: WANG Cong <[email protected]> LKML-Reference: <1290591835.2072.438.camel@laptop> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 6c869e7 commit 35d3778

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/tags.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ exuberant()
125125
-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
126126
--extra=+f --c-kinds=-px \
127127
--regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \
128-
--regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/'
128+
--regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \
129+
--regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \
130+
--regex-c++='/^DEFINE_EVENT\(([^,)]*).*/trace_\1/'
129131

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

0 commit comments

Comments
 (0)