From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0080.outbound.protection.outlook.com [104.47.36.80]) by dpdk.org (Postfix) with ESMTP id 91C1EDE5 for ; Tue, 17 Jan 2017 09:42:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=N5Nd7wdL9ALHtBaUwc6gD3YqG87xWBn4I+sRxMsdgAk=; b=KRo/G4/n8c4ClsBcrJci+B8XkP/Gc7SNcHM+nekouZt1DwnFSQ6RmtA7/s6Bz5lJBtaFskGPUj5sGQm0ghiEVUWMHrnH/uTO7GT4b7Up82zJxKv1+naxpbAs3qXBiWbjhEGL3AaTYb4IvBvXTXiXJ90nLBuFqDNsNchd3L1OsoI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 08:42:18 +0000 From: Jerin Jacob To: CC: , , Jerin Jacob Date: Tue, 17 Jan 2017 14:11:47 +0530 Message-ID: <1484642507-15952-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1480205562-32745-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1480205562-32745-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0108.INDPRD01.PROD.OUTLOOK.COM (10.174.56.152) To BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) X-MS-Office365-Filtering-Correlation-Id: d9791083-ce67-4ef0-335b-08d43eb4c036 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:UvoAkOhSEgFIB/nQ3fh1EdkjjUJ2PttlQ6mWIGtquGTv5XX1YI9BzgRFxkxeDujp0qK5RfAMLjuMcBnG3N2IbWK7xm6pXwm3md6Gj4qQ1Ib9PnM52npirQ2OzwIRZug+luq1HSSYCnQRoYhWxwljwdF7qWjILvMsDy72uUdDWUTkR7s427tEbniSuf03828FIRnMX7tjoa0azhzDvGQcQ6XIwrNtIfCNfxdyJdk8QVrGguyDfKN/Mfye/WCRChLNCZcOTRU3nhzgJ2N6cZ8MxQ==; 25:mEQFPkkZtbg8MWRaIrbl/zzVd1SSgebpDGhKF0G6qLp2BZwr4C5OckyhA4PtMfxRVzFR3z5Ns8aooEhk0jtWhC36RhAmY1NfvSHNe2ZCDH9BMq4N/ZbrGi1biUXgtP5EI9LCEnQfEQiHdR6Jii/MyJkyFFT8akVOE/LoCHZsVpNmh9o6+QrsSELAhQui4SurFjLfyxoFRI9Oj/+a/f8JCyvZ/8ODxfgX+5XgEpeqnws7whRJMqfWsTbBlywMy9sI0sxgRV/S/0AMAlX45zc45a0X0XO/xmyOlD92o0unFD0SU4JG/y8wP3gpID9+nY5UWnjrdMnKhnmPK9XaiR4UQjZzDFq2i97oZreMi1BxqxWDYGNa+h8zjbEnlo0twMp8nn5D0V7k8uxAN9ffabaP3Iemt0Ig+hgoPP6IVsWMMlWSkokZC4X2qBjq8YSeesz8BfaBW98HtiwqYLdmjnFwZw== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 31:QxUerdkvugI12UkD5cPHP5yCMGZSzYEoFoDzZ7zfdNzn9HN3EUPmOldYkOcQfpjy+XM6dDjFllFLXTNCQyqDxvDSmDhYFgriu4iqIUtAEwe5IQF9FudAuoAb7+FX28B5jdC3XYg3rHQpQu5fDisGcIuUPCm8PZV+Hw36ER0otZrQxMP8aC/aztax9MMEATkutaqVJ6Cn9CBRTqaeKoqkxxhRW0X56pX3r1CN52+8AQNtLC5iqa9fvxT8QmLP22s/ApZqF8aCcA7hph3kSMMonQ==; 20:AQf31H/Ol1hHjHo6WYGLdz9uXS/vMxKXQlagVSP1GkFAhfpDXzeXN38diuaVh8dJzUbVqesSBt14k3XwD51vGeAiHW73i8iAdABfxpyo5qImqVi1UQFefKJsrEN/2kIMUqaz51i5qadMZhO+HbuM8UfAkQw9hYzbBauVIetGIH/W+8r/uURvCxhhzCLLyAEFkn/kKHZIvAk7+lgoR57ahu+W7bjZg6ZPAilXm6taHw9IsDdQ20KiiJdtCuYFh/+urexg1drdGCdrBmlbkFREdTzzR0wTIVXNiSaKd/n6m66RUzb5LQSDvCRm6LrqgU9Lr7IPloMw2Ab9RU073BBzdTV1neoJzq/ldFzL6DhnBpOiBd/2QF+DryD1IbArcOvxfUZlkueQbW86dSRCfB8GTSN1BITAS7L4ysqouDwzn+/i3Nnive3SdJUOKmRkqbSFut8P8FOMfqHoBc9jNLmdUw8AVWFsNH703tXb0oc+TMKmjclSj598CbSZ+P6s/gn9aECdDQXiJ8lsKn0MPZxWMak+QLm5yPXrxGS2Smqpar7IUTsuIigP4JBBWw7KJy3hIM2tGh7pFtmuZKbqusYKzOkhuwn7hrk3lB6HGNUZNMw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY1PR0701MB1721; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 4:b0e2Dp+LZxt+76nfpmw5i/dOVYKoeJTfGfXaYLyi5r9QUrVjFaMsjnLH7h99Sb3Rc2BQGjSpA1XdjAA2NWmrxfhA/xI1s1bfGA/L+PG5eKQPmJXFvsvf4viTDvT96dDIbynVt11LhG3yMS9y1CLaSaMluRLqakvuFVq5zLtzL2RQiKrdApksgRxUdjQm8cz8mtyeldA/oT3hwTYx9OnuG6mqM9SSqTtDfUaj5omhI1S4mNXU2IpYx2ORQ2NDhpRdGYWuwtjjSGEzrcadc3TZsw26fk8pwudfkYqwXeNT+qTBgJeLf4tOByonb04hcEyMS434qVrJ9s3HTUAUYrcG8A4D0r2R/lEJm+kdTpYxnLAEAZXHF4N7dU41B4W356XrYRGjbFT93rKO1sYRWI0eI8RX+WZLFLvnC/55tKoRTQWG50321dPFpIN6/QyDWF3sB/yN9tIYZ6ac21duv+5pAdzEi4KKf1P+pkSt7FYhYhFfQ+0slEp+0MflhCs4zRVmB3nN74CuiMTaogOJxrrVmWMJtSzYMIeu1S/ajyQ+yABJVZ8SQjAfMBJ5U8Xn9NoXqOm9b0sLKmNjsAladQ/Vk7M665DzVVmMAi+zCgeH87hJk9pk9v33gywG17/42KRg X-Forefront-PRVS: 01901B3451 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(189002)(199003)(4001430100002)(50466002)(5009440100003)(5660300001)(105586002)(33646002)(3846002)(6666003)(6116002)(305945005)(2950100002)(106356001)(36756003)(110136003)(30001)(6916009)(7736002)(6512007)(5003940100001)(42882006)(48376002)(76176999)(69596002)(42186005)(66066001)(54906002)(101416001)(92566002)(2351001)(97736004)(4326007)(50986999)(47776003)(189998001)(107886002)(25786008)(68736007)(53416004)(76506005)(50226002)(6486002)(8676002)(81166006)(38730400001)(81156014)(2906002)(6506006)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1721; H:localhost.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =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+Y5RekA9N4zE7heul5Bc9IuPsl5QWl+NnF6wRLbrzyyuUHx5HKsBLEsclb2X/Xathfw7bg9DPETP7tNooNZthohSO5BLS1yJTydtJlu8XzdkFzXDCA==; 24:j7tQjg/TGR2c2biciwMmiQv1+OplfSpaspr8QLudN/HzKS8JEfrsAAY4oalp4J0ci/dH+LvjmH4OCoRuTz0VuvI4bnSoBCYO2Bs7amwmBdg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 7:Lz4cYBxH1764VZHV8eiqqVEHmTxdppxTEgCFGrk+QGeE0rtPpNhwGImUypdMeBmyZJpr3RLBIcIbBbS044L0OtEnecLMDGWtYzkZehV4DcF4VwsJy3oh83N7rY2azLgu2r6KKS2DsPkIDEtp5MdZLCnhBi4XvyPU/0O1ZAWSvelT/mOnOu/JbCvFgbsz93V+Faseo2h2AfwgpNEvUWoU6i3Rfcgb3z989sGARrXp3MqTiLnURzvLXHtRCwHdhHjD9JlK9BkMyaXaw0bah3lwQzojghhxHGMvb9Fzpm5kInWPNf1Acg7ngHIt294NBWM7i6pp2GIMM0BLzMTJIwPy4f2fwPG37JJ5Qb7ibN6+1wechdlTFYnO1gmPUsWTVXCkyN6UWtP4vTzFbRRi0LyzV5HmaSd/s99RK405Soz+V9m/NodoTbL0871z1d00plLXONZJBpczwrd+WWW6+/eqXA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 08:42:18.4527 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: [dpdk-dev] [PATCH v2] tools: add tags and cscope index file generation support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 08:42:24 -0000 This script generates cscope, gtags, and tags index files based on EAL environment. (architecture and OS(linux/bsd)) Selection of the architecture and OS environment is based on dpdk configuration target(T=) example usage: make tags T=x86_64-native-linuxapp-gcc make cscope T=x86_64-native-linuxapp-gcc make gtags T=x86_64-native-linuxapp-gcc Signed-off-by: Jerin Jacob Reviewed-by: Yuanhan Liu Reviewed-by: Ferruh Yigit --- v2: 1) Moved tag.sh to devtools from scripts 2) Rebased to master --- .gitignore | 8 ++ devtools/tags.sh | 251 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ mk/rte.sdkroot.mk | 4 + 3 files changed, 263 insertions(+) create mode 100755 devtools/tags.sh diff --git a/.gitignore b/.gitignore index a722abe..76bcae2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,9 @@ doc/guides/nics/overview_table.txt +cscope.out.po +cscope.out.in +cscope.out +cscope.files +GTAGS +GPATH +GRTAGS +tags diff --git a/devtools/tags.sh b/devtools/tags.sh new file mode 100755 index 0000000..82c1a2a --- /dev/null +++ b/devtools/tags.sh @@ -0,0 +1,251 @@ +#!/bin/bash +# Generate tags or gtags or cscope files +# Usage tags.sh T= [VERBOSE=1] +# set -x + +verbose=false +linuxapp=false +bsdapp=false +x86_64=false +arm=false +arm64=false +ia_32=false +ppc_64=false +tile=false + +if [ "$VERBOSE" = "1" ]; then + verbose=true +fi + +#ignore version control files +ignore="( -name .svn -o -name CVS -o -name .hg -o -name .git ) -prune -o" + +source_dirs="app buildtools drivers examples lib" + +skip_bsd="( -name bsdapp ) -prune -o" +skip_linux="( -name linuxapp ) -prune -o" +skip_arch="( -name arch ) -prune -o" +skip_sse="( -name *_sse*.[chS] ) -prune -o" +skip_avx="( -name *_avx*.[chS] ) -prune -o" +skip_neon="( -name *_neon*.[chS] ) -prune -o" +skip_altivec="( -name *_altivec*.[chS] ) -prune -o" +skip_arm64="( -name *arm64*.[chS] ) -prune -o" +skip_x86="( -name *x86*.[chS] ) -prune -o" +skip_32b_files="( -name *_32.h ) -prune -o" +skip_64b_files="( -name *_64.h ) -prune -o" + +skiplist="${skip_bsd} ${skip_linux} ${skip_arch} ${skip_sse} ${skip_avx} \ + ${skip_neon} ${skip_altivec} ${skip_x86} ${skip_arm64}" + +find_sources() +{ + find $1 $ignore $3 -name $2 -not -type l -print +} + +common_sources() +{ + find_sources "${source_dirs}" '*.[chS]' "$skiplist" +} + +linuxapp_sources() +{ + find_sources "lib/librte_eal/linuxapp" '*.[chS]' +} + +bsdapp_sources() +{ + find_sources "lib/librte_eal/bsdapp" '*.[chS]' +} + +arm_common() +{ + find_sources "lib/librte_eal/common/arch/arm" '*.[chS]' + find_sources "${source_dirs}" '*neon*.[chS]' +} + +arm_sources() +{ + arm_common + find_sources "lib/librte_eal/common/include/arch/arm" '*.[chS]' \ + "$skip_64b_files" +} + +arm64_sources() +{ + arm_common + find_sources "lib/librte_eal/common/include/arch/arm" '*.[chS]' \ + "$skip_32b_files" + find_sources "${source_dirs}" '*arm64.[chS]' +} + +ia_common() +{ + find_sources "lib/librte_eal/common/arch/x86" '*.[chS]' + + find_sources "examples/performance-thread/common/arch/x86" '*.[chS]' + find_sources "${source_dirs}" '*_sse*.[chS]' + find_sources "${source_dirs}" '*_avx*.[chS]' + find_sources "${source_dirs}" '*x86.[chS]' +} + +i686_sources() +{ + ia_common + find_sources "lib/librte_eal/common/include/arch/x86" '*.[chS]' \ + "$skip_64b_files" +} + +x86_64_sources() +{ + ia_common + find_sources "lib/librte_eal/common/include/arch/x86" '*.[chS]' \ + "$skip_32b_files" +} + +ppc64_sources() +{ + find_sources "lib/librte_eal/common/arch/ppc_64" '*.[chS]' + find_sources "lib/librte_eal/common/include/arch/ppc_64" '*.[chS]' + find_sources "${source_dirs}" '*altivec*.[chS]' +} + +tile_sources() +{ + find_sources "lib/librte_eal/common/arch/tile" '*.[chS]' + find_sources "lib/librte_eal/common/include/arch/tile" '*.[chS]' +} + +config_file() +{ + if [ -f $RTE_OUTPUT/include/rte_config.h ]; then + ls $RTE_OUTPUT/include/rte_config.h + fi +} + +usage() +{ + if [ "$1" = 'tags' ] ; then + echo "Generate tags file for editors" + fi + if [ "$1" = 'cscope' ] ; then + echo "Generate cscope index" + fi + if [ "$1" = 'gtags' ] ; then + echo "Generate GNU GLOBAL index" + fi + echo "Usage: make tags|cscope|gtags T= [VERBOSE=1]" + echo "Valid targets are:" + make showconfigs | sed 's,^,\t,' +} + +check_valid_config() +{ + cfgfound=false + allconfigs=`make showconfigs` + for cfg in $allconfigs + do + if [ "$cfg" = "$1" ] ; then + cfgfound=true + fi + done + $cfgfound || echo "Invalid config: $1" + $cfgfound || usage $2 + $cfgfound || exit 0 +} + +if [ -n "$T" ]; then + check_valid_config $T $1 + + if [ `echo $T | grep -c "linuxapp-" ` -gt 0 ]; then + linuxapp=true + fi + + if [ `echo $T | grep -c "bsdapp-" ` -gt 0 ]; then + bsdapp=true + fi + + if [ `echo $T | grep -c "x86_64-" ` -gt 0 ]; then + x86_64=true + fi + + if [ `echo $T | grep -c "i686-" ` -gt 0 ]; then + ia_32=true + fi + + if [ `echo $T | grep -c "x32-" ` -gt 0 ]; then + ia_32=true + fi + + if [ `echo $T | grep -c "arm-" ` -gt 0 ]; then + arm=true + fi + + if [ `echo $T | grep -c "arm64-" ` -gt 0 ]; then + arm64=true + fi + + if [ `echo $T | grep -c "ppc_64-" ` -gt 0 ]; then + ppc_64=true + fi + + if [ `echo $T | grep -c "tile-" ` -gt 0 ]; then + tile=true + fi + + $verbose && echo "linuxapp: $linuxapp" + $verbose && echo "bsdapp: $bsdapp" + $verbose && echo "ia_32: $ia_32" + $verbose && echo "x86_64: $x86_64" + $verbose && echo "arm: $arm" + $verbose && echo "arm64: $arm64" + $verbose && echo "ppc_64: $ppc_64" + $verbose && echo "tile: $tile" + $verbose && echo "build: $RTE_OUTPUT" +else + usage $1 + exit +fi + +all_sources() +{ + common_sources + $linuxapp && linuxapp_sources + $bsdapp && bsdapp_sources + $x86_64 && x86_64_sources + $ia_32 && i686_sources + $arm && arm_sources + $arm64 && arm64_sources + $ppc_64 && ppc64_sources + $tile && tile_sources + config_file +} + +docscope() +{ + all_sources > cscope.files + cscope -q -b -f cscope.out +} + +dogtags() +{ + all_sources | gtags -i -f - +} + +doctags() +{ + all_sources | xargs ctags -a +} + +case "$1" in + "cscope") + docscope + ;; + + "gtags") + dogtags + ;; + "tags") + rm -f tags + doctags + ;; +esac diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index 04ad523..5802644 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -92,6 +92,10 @@ default: all config showconfigs showversion showversionum: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ +.PHONY: cscope gtags tags +cscope gtags tags: + $(Q)$(RTE_SDK)/devtools/tags.sh $@ + .PHONY: test fast_test ring_test mempool_test perf_test coverage test fast_test ring_test mempool_test perf_test coverage: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdktest.mk $@ -- 2.5.5