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 203BEA0597; Fri, 17 Apr 2020 23:58:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 233881DB5B; Fri, 17 Apr 2020 23:57:59 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id A20751DB4F for ; Fri, 17 Apr 2020 23:57:57 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200417215756euoutp0221f2459c509dec545d4b952bc781d7cc~GujnxTgH50278302783euoutp02S for ; Fri, 17 Apr 2020 21:57:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200417215756euoutp0221f2459c509dec545d4b952bc781d7cc~GujnxTgH50278302783euoutp02S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587160676; bh=BJ67A0o6kxuGqAYLaVJICgJJhWkuCTWMI2BSyhqWawk=; h=From:To:Cc:Subject:Date:References:From; b=Kg8X13LnfP9CyfqfX6ZhdcmMwwjhl2IfyfQ0GDvHdSzx+kDSVN839yxlYR6QSJwl6 ut39vB8iUsOpkGlhjh+stL2F6OSvIBxzUCFvd7QItqjEluOaGgqsg3EvrLDHQPWSgJ Jt1SwdcTb6scyVIPQ8mlheB8Y5GBET9EKYWtOOgU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200417215756eucas1p2f0d96e29e1c3b8dac76d5530941ffcfe~Gujnoi_Af1656816568eucas1p2k for ; Fri, 17 Apr 2020 21:57:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id AD.5E.60698.4662A9E5; Fri, 17 Apr 2020 22:57:56 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200417215755eucas1p25660167c57c26ef04a82a8bb981e07b5~Gujmfd3U32668526685eucas1p2J for ; Fri, 17 Apr 2020 21:57:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200417215755eusmtrp276ef3d345769e70e48e491b8c0289130~Gujme_dVl2952229522eusmtrp2e for ; Fri, 17 Apr 2020 21:57:55 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-a8-5e9a26644f05 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id CB.94.08375.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 20200417215755eusmtip2bda1285c6aaba607bf471b3930a0eaee~GujmNQF_n0325203252eusmtip2j for ; Fri, 17 Apr 2020 21:57:54 +0000 (GMT) From: Lukasz Wojciechowski To: Cc: dev@dpdk.org Date: Fri, 17 Apr 2020 23:57:22 +0200 Message-Id: <20200417215739.23180-1-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFIsWRmVeSWpSXmKPExsWy7djP87oparPiDG5NkrF492k7kwOjx68F S1kDGKO4bFJSczLLUov07RK4Mv5df8pesFazYs2u6ewNjNdkuhg5OSQETCRa/txh7GLk4hAS WMEosfzAfSYIp51Jouv+AiinjUni1dM/LF2MHGAt+85lgXQLCSxnlFjyPhDCBqp5vIQbxGYT sJU4MvMrK4gtIsAisfL7dxYQm1lAQOLxvWdgcWEBU4nVv68wg9gsAqoSG492soKM5xVwlZh7 sBriOHmJ1RsOMIO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6mDg4pRoYbQObFql/Ddi53NW72OnlV/8DLVKXW/YYzqs8v+Cp6p0dCXkCj/bUF+0w niWTlfl9S9os+5vfhQOufOmwbFbxb9Kc+JvTykf+SMgXybu3bs54Ezn7friDw78m4WrPU//V p8rs7Tqiee/dIc1fx6KXKylPPLyo6fazxI+sd7cUHd3zyrD/T62DrRJLcUaioRZzUXEiAHJw PekkAgAA X-CMS-MailID: 20200417215755eucas1p25660167c57c26ef04a82a8bb981e07b5 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200417215755eucas1p25660167c57c26ef04a82a8bb981e07b5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200417215755eucas1p25660167c57c26ef04a82a8bb981e07b5 References: Subject: [dpdk-dev] [PATCH v1 00/17] 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" This set of patches introduces a global debug flag for dpdk. This will allow easy switch to debug build configuration using a single flag. In the debug mode a RTE_DEBUG macro is defined to 1 and can be used to place a debug code inside #ifdef #endif clauses. 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 build system a built-in meson "debug" flag to switch to debug build. The set of patches introduces the global debug flag and replaces library debug flags. It is split to many small patches for easier review as it affects almost all libraries. Before merge it can be squash into larger patches (if preferred by maintainers). As a next step I plan to prepare patches for drivers as well. Lukasz Wojciechowski (17): config: introduce global debug flag config: remove unused config flags ethdev: replace library debug flag with global one eventdev: replace library debug flag with global one fib: replace library debug flag with global one cmdline: replace library debug flag with global one hash: replace library debug flag with global one ip_frag: replace library debug flag with global one lpm: replace library debug flag with global one mbuf: replace library debug flag with global one mempool: replace library debug flag with global one power: replace library debug flag with global one rcu: replace library debug flag with global one timer: replace library debug flag with global one vhost: replace library debug flag with global one eal: replace library debug flag with global one sched: replace library debug flag with global one app/test/test_lpm.c | 2 +- app/test/test_malloc.c | 4 ++-- app/test/test_mbuf.c | 2 +- app/test/test_timer_secondary.c | 2 +- config/common_base | 19 ------------------ config/meson.build | 4 ++++ .../prog_guide/env_abstraction_layer.rst | 5 +++-- .../prog_guide/ip_fragment_reassembly_lib.rst | 4 ++-- doc/guides/prog_guide/mbuf_lib.rst | 2 +- doc/guides/prog_guide/mempool_lib.rst | 7 ++++--- doc/guides/prog_guide/rcu_lib.rst | 8 ++++---- drivers/net/atlantic/atl_rxtx.c | 2 +- drivers/net/e1000/em_rxtx.c | 2 +- drivers/net/e1000/igb_rxtx.c | 2 +- drivers/net/ena/ena_ethdev.c | 2 +- drivers/net/enic/enic_rxtx.c | 2 +- drivers/net/fm10k/fm10k_rxtx.c | 2 +- drivers/net/hinic/hinic_pmd_tx.c | 2 +- drivers/net/hns3/hns3_rxtx.c | 2 +- drivers/net/i40e/i40e_rxtx.c | 2 +- drivers/net/iavf/iavf_rxtx.c | 2 +- drivers/net/ice/ice_rxtx.c | 2 +- drivers/net/ixgbe/ixgbe_rxtx.c | 2 +- drivers/net/qede/qede_rxtx.c | 4 ++-- drivers/net/softnic/rte_eth_softnic.c | 2 +- drivers/net/softnic/rte_eth_softnic_thread.c | 2 +- drivers/net/virtio/virtio_rxtx.c | 2 +- drivers/net/vmxnet3/vmxnet3_rxtx.c | 2 +- lib/librte_cmdline/cmdline_cirbuf.h | 2 +- lib/librte_cmdline/cmdline_parse.c | 2 +- lib/librte_cmdline/cmdline_parse_num.c | 2 +- lib/librte_eal/common/malloc_elem.c | 2 +- lib/librte_eal/common/malloc_elem.h | 4 ++-- lib/librte_eal/common/rte_malloc.c | 2 +- lib/librte_ethdev/rte_ethdev.h | 16 +++++++-------- .../rte_event_eth_tx_adapter.h | 2 +- lib/librte_eventdev/rte_event_timer_adapter.c | 6 +++--- lib/librte_eventdev/rte_event_timer_adapter.h | 6 +++--- lib/librte_eventdev/rte_eventdev.h | 4 ++-- lib/librte_eventdev/rte_eventdev_pmd.h | 2 +- lib/librte_fib/rte_fib.c | 2 +- lib/librte_fib/rte_fib6.c | 2 +- lib/librte_hash/rte_cuckoo_hash.h | 4 ++-- lib/librte_ip_frag/ip_frag_common.h | 4 ++-- lib/librte_lpm/rte_lpm.c | 2 +- lib/librte_lpm/rte_lpm.h | 2 +- lib/librte_mbuf/rte_mbuf.h | 6 +++--- lib/librte_mempool/rte_mempool.c | 16 +++++++-------- lib/librte_mempool/rte_mempool.h | 20 +++++++++---------- lib/librte_net/rte_net.h | 4 ++-- lib/librte_power/power_acpi_cpufreq.c | 2 +- lib/librte_power/power_pstate_cpufreq.c | 2 +- lib/librte_rcu/rte_rcu_qsbr.h | 16 +++++++-------- lib/librte_sched/rte_sched.c | 10 +++++----- lib/librte_timer/rte_timer.c | 12 +++++------ lib/librte_timer/rte_timer.h | 2 +- lib/librte_vhost/vhost.h | 2 +- lib/librte_vhost/vhost_crypto.c | 2 +- lib/librte_vhost/vhost_user.c | 2 +- 59 files changed, 122 insertions(+), 135 deletions(-) -- 2.17.1