* Add entry.S function name to tag file
@ 2006-01-18 4:58 Aneesh Kumar
2006-01-19 2:40 ` Zhang Le
2006-01-19 3:52 ` Zhang Le
0 siblings, 2 replies; 3+ messages in thread
From: Aneesh Kumar @ 2006-01-18 4:58 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 141 bytes --]
How about a patch like the one attached below. I am not sure whether i
got the regular expression correct. But it works for me.
-aneesh
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Makefile.diff --]
[-- Type: text/x-patch; name="Makefile.diff", Size: 575 bytes --]
diff --git a/Makefile b/Makefile
index 252a659..6c8479e 100644
--- a/Makefile
+++ b/Makefile
@@ -1272,7 +1272,7 @@ define cmd_tags
CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \
echo "-I __initdata,__exitdata,__acquires,__releases \
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
- --extra=+f --c-kinds=+px"`; \
+ --extra=+f --c-kinds=+px --regex-asm=/ENTRY\(([^)]*)\).*/\1/f/"`; \
$(all-sources) | xargs ctags $$CTAGSF -a
endef
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Add entry.S function name to tag file
2006-01-18 4:58 Add entry.S function name to tag file Aneesh Kumar
@ 2006-01-19 2:40 ` Zhang Le
2006-01-19 3:52 ` Zhang Le
1 sibling, 0 replies; 3+ messages in thread
From: Zhang Le @ 2006-01-19 2:40 UTC (permalink / raw)
To: Aneesh Kumar; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aneesh Kumar wrote:
> How about a patch like the one attached below. I am not sure
> whether i got the regular expression correct. But it works for me.
>
> -aneesh
>
> ----------------------------------------------------------------------
>
>
> diff --git a/Makefile b/Makefile index 252a659..6c8479e 100644 ---
> a/Makefile +++ b/Makefile @@ -1272,7 +1272,7 @@ define cmd_tags
> CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \
> echo "-I __initdata,__exitdata,__acquires,__releases \ -I
> EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \ -
> --extra=+f --c-kinds=+px"`; \ +
> --extra=+f --c-kinds=+px --regex-asm=/ENTRY\(([^)]*)\).*/\1/f/"`;
> \
what's the meaning of "f"
kind-spec?
But `exuberant-ctags --list-kinds` here shows ASM don't have "f" kind
> $(all-sources) | xargs ctags $$CTAGSF -a endef
>
- --
Zhang Le, Robert
Linux Engineer/Trainer
Institute of Thiz Technology Limited
Address: Unit 1004, 10/F, Tower B,
Hunghom Commercial Centre, 37 Ma Tau Wai Road,
To Kwa Wan, Kowloon, Hong Kong
Telephone: (852) 2735 2725
Mobile:(852) 9845 4336
Fax: (852) 2111 0702
URL: http://www.thizgroup.com
Public key: gpg --keyserver pgp.mit.edu --recv-keys 1E4E2973
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDzvwQvFHICB5OKXMRAun5AJ9R4JxmJHpWDSeMfeWK0uFZrii1IwCgkqPS
PK1yVn5CBm69k5prJXIpllU=
=fMv5
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Add entry.S function name to tag file
2006-01-18 4:58 Add entry.S function name to tag file Aneesh Kumar
2006-01-19 2:40 ` Zhang Le
@ 2006-01-19 3:52 ` Zhang Le
1 sibling, 0 replies; 3+ messages in thread
From: Zhang Le @ 2006-01-19 3:52 UTC (permalink / raw)
To: Aneesh Kumar; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aneesh Kumar wrote:
> How about a patch like the one attached below. I am not sure whether i
> got the regular expression correct. But it works for me.
>
> -aneesh
>
> ----------------------------------------------------------------------
>
> diff --git a/Makefile b/Makefile
> index 252a659..6c8479e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1272,7 +1272,7 @@ define cmd_tags
> CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \
> echo "-I __initdata,__exitdata,__acquires,__releases \
> -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
> - --extra=+f --c-kinds=+px"`; \
> + --extra=+f --c-kinds=+px
--regex-asm=/ENTRY\(([^)]*)\).*/\1/f/"`; \
> $(all-sources) | xargs ctags $$CTAGSF -a
> endef
>
In fact, ENTRY()'s are not functions
they are just label's
some are functions
some are variables
no need to add "f" here
the following is just OK
- --regex-asm=/ENTRY\(([^)]*)\).*/\1/"
the only difference between tags file generated from these two
different option
is like this
- -alignment_check arch/i386/kernel/entry.S
/^ENTRY(alignment_check)$/;" r
+alignment_check arch/i386/kernel/entry.S
/^ENTRY(alignment_check)$/;" f
- --
Zhang Le, Robert
Linux Engineer/Trainer
Institute of Thiz Technology Limited
Address: Unit 1004, 10/F, Tower B,
Hunghom Commercial Centre, 37 Ma Tau Wai Road,
To Kwa Wan, Kowloon, Hong Kong
Telephone: (852) 2735 2725
Mobile:(852) 9845 4336
Fax: (852) 2111 0702
URL: http://www.thizgroup.com
Public key: gpg --keyserver pgp.mit.edu --recv-keys 1E4E2973
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDzw0ZvFHICB5OKXMRAsyGAJ0TeXETc5OxTaovom9YHxzQkcbpyACeLJ58
Ztl/ug1VR4JoNM8nzIwTwyk=
=zQwU
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-19 3:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-18 4:58 Add entry.S function name to tag file Aneesh Kumar
2006-01-19 2:40 ` Zhang Le
2006-01-19 3:52 ` Zhang Le
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).