X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=scripts%2Ftags.sh;h=1a0c44d7c4a75308ca6addf915a6951cf30a603d;hb=6299fee7b84ac7b4429b4e2787b99470a89cd5f5;hp=4a34ec591e8c05f224f4900028f0e25f99e9eeba;hpb=2e6cb8b0dc602ba4aa23d1ec7e3524a7268f59d9;p=safe%2Fjmp%2Flinux-2.6 diff --git a/scripts/tags.sh b/scripts/tags.sh index 4a34ec5..1a0c44d 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -89,7 +89,13 @@ all_defconfigs() docscope() { - (echo \-k; echo \-q; all_sources) > cscope.files + # always use absolute paths for cscope, as recommended by cscope + # upstream + case "$tree" in + /*) ;; + *) tree=$PWD/$tree ;; + esac + (cd /; echo \-k; echo \-q; all_sources) > cscope.files cscope -b -f cscope.out } @@ -101,7 +107,8 @@ exuberant() -I ____cacheline_aligned_in_smp \ -I ____cacheline_internodealigned_in_smp \ -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \ - --extra=+f --c-kinds=+px \ + -I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \ + --extra=+f --c-kinds=-px \ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \ --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/'