* [PATCH][Resend][Trivial] tags, powerpc: Update tags.sh to support _GLOBAL symbols
@ 2011-08-30 1:47 Ian Munsie
2011-08-31 14:32 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Ian Munsie @ 2011-08-30 1:47 UTC (permalink / raw)
To: linux-kernel, linux-kbuild, trivial, Andrew Morton
On PowerPC we use _GLOBAL throughout the assembly to define symbols, but
currently these symbols are missing from the tags generated with
ARCH=powerpc make tags. This patch modifies the tags.sh script to
recognise _GLOBAL(.*) so that these symbols will be in the tags.
This is almost (but not quite) PowerPC specific and this change should
not affect anyone else:
$ git grep -E '^_GLOBAL\(([^)]*)\).*' |sed 's/^\([^/]*\/[^/]*\)\/.*$/\1/'|uniq -c
627 arch/powerpc
2 arch/um
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
---
I've had no (online) response to this so far - hoping that this can be
picked up by someone.
scripts/tags.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 75c5d24f1..38f6617 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -129,7 +129,7 @@ exuberant()
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
--extra=+f --c-kinds=+px \
- --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \
+ --regex-asm='/^(ENTRY|_GLOBAL)\(([^)]*)\).*/\2/' \
--regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/' \
--regex-c++='/^TRACE_EVENT\(([^,)]*).*/trace_\1/' \
--regex-c++='/^DEFINE_EVENT\([^,)]*, *([^,)]*).*/trace_\1/'
@@ -151,7 +151,7 @@ exuberant()
emacs()
{
all_sources | xargs $1 -a \
- --regex='/^ENTRY(\([^)]*\)).*/\1/' \
+ --regex='/^(ENTRY|_GLOBAL)(\([^)]*\)).*/\2/' \
--regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/' \
--regex='/^TRACE_EVENT(\([^,)]*\).*/trace_\1/' \
--regex='/^DEFINE_EVENT([^,)]*, *\([^,)]*\).*/trace_\1/'
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][Resend][Trivial] tags, powerpc: Update tags.sh to support _GLOBAL symbols
2011-08-30 1:47 [PATCH][Resend][Trivial] tags, powerpc: Update tags.sh to support _GLOBAL symbols Ian Munsie
@ 2011-08-31 14:32 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2011-08-31 14:32 UTC (permalink / raw)
To: Ian Munsie; +Cc: linux-kernel, linux-kbuild, trivial, Andrew Morton
On Tue, Aug 30, 2011 at 11:47:58AM +1000, Ian Munsie wrote:
> On PowerPC we use _GLOBAL throughout the assembly to define symbols, but
> currently these symbols are missing from the tags generated with
> ARCH=powerpc make tags. This patch modifies the tags.sh script to
> recognise _GLOBAL(.*) so that these symbols will be in the tags.
>
> This is almost (but not quite) PowerPC specific and this change should
> not affect anyone else:
>
> $ git grep -E '^_GLOBAL\(([^)]*)\).*' |sed 's/^\([^/]*\/[^/]*\)\/.*$/\1/'|uniq -c
> 627 arch/powerpc
> 2 arch/um
>
> Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
> ---
> I've had no (online) response to this so far - hoping that this can be
> picked up by someone.
Applied to kbuild-2.6.git#misc now.
Thanks,
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-31 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 1:47 [PATCH][Resend][Trivial] tags, powerpc: Update tags.sh to support _GLOBAL symbols Ian Munsie
2011-08-31 14:32 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox