Skip to content

Commit 4d7a2fa

Browse files
Steven Rostedtrostedt
authored andcommitted
scripts/tags.sh: Add magic for trace-events for etags too
Seems that Peter Zijlstra treats us emacs users as second class citizens and the commit: commit 1566412 Author: Peter Zijlstra <peterz@infradead.org> scripts/tags.sh: Add magic for trace-events only updated ctags (for vim) and did not do the work to let us lowly emacs users benefit from such a change. Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 50d6828 commit 4d7a2fa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/tags.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ emacs()
152152
{
153153
all_sources | xargs $1 -a \
154154
--regex='/^ENTRY(\([^)]*\)).*/\1/' \
155-
--regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/'
155+
--regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/' \
156+
--regex='/^TRACE_EVENT(\([^,)]*\).*/trace_\1/' \
157+
--regex='/^DEFINE_EVENT([^,)]*, *\([^,)]*\).*/trace_\1/'
156158

157159
all_kconfigs | xargs $1 -a \
158160
--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'

0 commit comments

Comments
 (0)