Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347745
b: refs/heads/master
c: 923e02e
h: refs/heads/master
i:
  347743: 8d49cf3
v: v3
  • Loading branch information
Joonsoo Kim authored and Michal Marek committed Dec 11, 2012
1 parent ab2f258 commit 2d615e1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 596585090a6d7f0a62b4e5864ad8cedf1af964d1
refs/heads/master: 923e02ecf3f8db19d52176723fefa0ffe6e9a3cd
37 changes: 31 additions & 6 deletions trunk/scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,32 @@ all_sources()
find_other_sources '*.[chS]'
}

all_compiled_sources()
{
for i in $(all_sources); do
case "$i" in
*.[cS])
j=${i/\.[cS]/\.o}
if [ -e $j ]; then
echo $i
fi
;;
*)
echo $i
;;
esac
done
}

all_target_sources()
{
if [ -n "$COMPILED_SOURCE" ]; then
all_compiled_sources
else
all_sources
fi
}

all_kconfigs()
{
for arch in $ALLSOURCE_ARCHS; do
Expand All @@ -111,18 +137,18 @@ all_defconfigs()

docscope()
{
(echo \-k; echo \-q; all_sources) > cscope.files
(echo \-k; echo \-q; all_target_sources) > cscope.files
cscope -b -f cscope.out
}

dogtags()
{
all_sources | gtags -i -f -
all_target_sources | gtags -i -f -
}

exuberant()
{
all_sources | xargs $1 -a \
all_target_sources | xargs $1 -a \
-I __initdata,__exitdata,__acquires,__releases \
-I __read_mostly,____cacheline_aligned \
-I ____cacheline_aligned_in_smp \
Expand Down Expand Up @@ -174,7 +200,7 @@ exuberant()

emacs()
{
all_sources | xargs $1 -a \
all_target_sources | xargs $1 -a \
--regex='/^(ENTRY|_GLOBAL)(\([^)]*\)).*/\2/' \
--regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/' \
--regex='/^TRACE_EVENT(\([^,)]*\).*/trace_\1/' \
Expand Down Expand Up @@ -221,11 +247,10 @@ xtags()
elif $1 --version 2>&1 | grep -iq emacs; then
emacs $1
else
all_sources | xargs $1 -a
all_target_sources | xargs $1 -a
fi
}


# Support um (which uses SUBARCH)
if [ "${ARCH}" = "um" ]; then
if [ "$SUBARCH" = "i386" ]; then
Expand Down

0 comments on commit 2d615e1

Please sign in to comment.