[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090125111856.GA3268@x200.localdomain>
Date: Sun, 25 Jan 2009 14:18:56 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: Rabin Vincent <rabin@....in>
Cc: Sam Ravnborg <sam@...nborg.org>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kbuild: add sys_* entries for syscalls in tags
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@....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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists