From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 78EAEA0597; Fri, 17 Apr 2020 23:58:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D00A11EB6C; Fri, 17 Apr 2020 23:58:00 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 3529A1DB4F for ; Fri, 17 Apr 2020 23:57:58 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215757euoutp019acbb2f00bfe3721d592cb658131f44d~GujoUzG-X0105301053euoutp01G for ; Fri, 17 Apr 2020 21:57:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200417215757euoutp019acbb2f00bfe3721d592cb658131f44d~GujoUzG-X0105301053euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160677; bh=OV6VjyuYY861ZBAyWKnBm0J20dnZucakrq2ADxwAd4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L84IMhbct08i7NcuRNqVFHnICVgLjofEiSAmTQLh7EdJ9b3GMoaU89XyYy45jyhUN E8CrM0wtTaqHSvyz4h0MWq/Q4pGGRPEV2E5VFL2FswxEs+0KjANMx73AQtn8c0hqQ6 ZfVx7AxLEqSbho49RSgzQ2gSMQ22ETXuVyNeSZ30= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200417215756eucas1p281e91ffda62f36bfb5e72653af6a047c~GujnunF352665826658eucas1p2J; Fri, 17 Apr 2020 21:57:56 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id CD.5E.60698.4662A9E5; Fri, 17 Apr 2020 22:57:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200417215756eucas1p107941824d555cdc91899d529d3c4ee67~GujnHR3tz0162301623eucas1p1r; Fri, 17 Apr 2020 21:57:56 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200417215756eusmtrp1d7eb1007c13a95418b75c0e3d45176fa~GujnGxDKz0397603976eusmtrp1o; Fri, 17 Apr 2020 21:57:56 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-a9-5e9a2664c0fe Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 2D.52.07950.3662A9E5; Fri, 17 Apr 2020 22:57:55 +0100 (BST) Received: from localhost.localdomain (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200417215755eusmtip2e87bf327b7aec6511a7d634e0783250d~GujmqtdNW0325203252eusmtip2k; Fri, 17 Apr 2020 21:57:55 +0000 (GMT) From: Lukasz Wojciechowski To: Thomas Monjalon Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:23 +0200 Message-Id: <20200417215739.23180-2-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsWy7djPc7oparPiDK69V7Z492k7k8WnBydY HJg8fi1Yyupx7OY09gCmKC6blNSczLLUIn27BK6MQz/nsxes5qzoWtLI3sB4j72LkZNDQsBE 4sj6FYxdjFwcQgIrGCW+bWhlBkkICXxhlFiy0BEi8ZlRov3qfkaYjrlrv7BAJJYzSqzdsp0Z rmp7+082kCo2AVuJIzO/soLYIgKaEre/zwLrZh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uDL3EKMEB7OSCO9BN6AQb0piZVVqUX58UWlOavEhRlOgoyYyS4km5wMjIK8k 3tDU0NzC0tDc2NzYzEJJnLdD4GCMkEB6YklqdmpqQWoRTB8TB6dUA+N2/89/mUo29QXVmcZu Tc0w6zqiwtllYVyS+Gn1uoWBz79eSs548/HUoQnHLr+JzNOriotyfpxZnHO6uHDlr4NHfua9 qvk38fs3i+XT7MO6sq/wlzg+iz18bMF1mxaxZ8/0GdYdjN3BcWaG9ulDK+xvXF6z8KNNckOg kt7D/JNpmyKPqK45aKyixFKckWioxVxUnAgAbds6z0gCAAA= X-CMS-MailID: 20200417215756eucas1p107941824d555cdc91899d529d3c4ee67 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215756eucas1p107941824d555cdc91899d529d3c4ee67 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215756eucas1p107941824d555cdc91899d529d3c4ee67 References: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v1 01/17] config: introduce global debug flag 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" There already is a meson core option "debug". To enable this option add -Ddebug=true to the meson command during setup or configuration of the build environment. By enabling this flag the globaly defined macro RTE_DEBUG becomes defined. It should be used for enabling debug code in all dpdk project components. Using this flag allows to make additional checks or tests and provide additional logs even in performance sensitive parts of code. The flag is disabled by default. Suggested-by: Bruce Richardson Signed-off-by: Lukasz Wojciechowski --- config/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/meson.build b/config/meson.build index 58421342b..04909f922 100644 --- a/config/meson.build +++ b/config/meson.build @@ -176,6 +176,10 @@ endif # add -include rte_config to cflags add_project_arguments('-include', 'rte_config.h', language: 'c') +if get_option('debug') + dpdk_conf.set('RTE_DEBUG', 1) +endif + # enable extra warnings and disable any unwanted warnings warning_flags = [ # -Wall is added by meson by default, so add -Wextra only -- 2.17.1