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

* Re: [PATCH] kbuild: add sys_* entries for syscalls in tags
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2009-01-25 11:18 UTC (permalink / raw)
  To: Rabin Vincent; +Cc: Sam Ravnborg, lkml

On Sun, Jan 25, 2009 at 03:35:54PM +0530, Rabin Vincent wrote:
> 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/'

You should patch emacs() as well.

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

* [PATCH v2] kbuild: add sys_* entries for syscalls in tags
  2009-01-25 11:18 ` Alexey Dobriyan
@ 2009-01-25 13:09   ` Rabin Vincent
  2009-02-15  9:27     ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Rabin Vincent @ 2009-01-25 13:09 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Sam Ravnborg, 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 use of the SYSCALL_DEFINE* macros.

This patch adds the appropriate option to ctags to make it see through
the macro.  Also, it adds the ENTRY() work already done for Exuberant
to Emacs too.

Signed-off-by: Rabin Vincent <rabin@rab.in>
---
This version of the patch makes the modifications for emacs too.

 scripts/tags.sh |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/scripts/tags.sh b/scripts/tags.sh
index fdbe78b..fe7c99d 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              \
@@ -117,7 +118,9 @@ exuberant()
 
 emacs()
 {
-	all_sources | xargs $1 -a
+	all_sources | xargs $1 -a                               \
+	--regex='/^ENTRY(\([^)]*\)).*/\1/'                      \
+	--regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/'
 
 	all_kconfigs | xargs $1 -a                              \
 	--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'
-- 
1.5.6.5


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

* Re: [PATCH v2] kbuild: add sys_* entries for syscalls in tags
  2009-01-25 13:09   ` [PATCH v2] " Rabin Vincent
@ 2009-02-15  9:27     ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2009-02-15  9:27 UTC (permalink / raw)
  To: Rabin Vincent; +Cc: Alexey Dobriyan, lkml

On Sun, Jan 25, 2009 at 06:39:12PM +0530, Rabin Vincent wrote:
> 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 use of the SYSCALL_DEFINE* macros.
> 
> This patch adds the appropriate option to ctags to make it see through
> the macro.  Also, it adds the ENTRY() work already done for Exuberant
> to Emacs too.
> 
> Signed-off-by: Rabin Vincent <rabin@rab.in>

Applied to kbuild-fixes.git.

	Sam

^ permalink raw reply	[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.