All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: add sys_* entries for syscalls in tags
@ 2009-01-25 10:05 Rabin Vincent
  2009-01-25 11:18 ` Alexey Dobriyan
  0 siblings, 1 reply; 4+ messages in thread
From: Rabin Vincent @ 2009-01-25 10:05 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: lkml

Currently, it is no longer possible to use the tags file to jump to
system call function definitions with sys_foo because the definitions
are obscured by the use of the SYSCALL_DEFINE* macros.

This patch adds the appropriate option to ctags to make it see through
the macro.

Signed-off-by: Rabin Vincent <rabin@rab.in>
---
 scripts/tags.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index fdbe78b..0d58f48 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -99,7 +99,8 @@ exuberant()
 	-I ____cacheline_internodealigned_in_smp                \
 	-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL                      \
 	--extra=+f --c-kinds=+px                                \
-	--regex-asm='/^ENTRY\(([^)]*)\).*/\1/'
+	--regex-asm='/^ENTRY\(([^)]*)\).*/\1/'                  \
+	--regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/'
 
 	all_kconfigs | xargs $1 -a                              \
 	--langdef=kconfig --language-force=kconfig              \
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-15  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-25 10:05 [PATCH] kbuild: add sys_* entries for syscalls in tags Rabin Vincent
2009-01-25 11:18 ` Alexey Dobriyan
2009-01-25 13:09   ` [PATCH v2] " Rabin Vincent
2009-02-15  9:27     ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.