From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0066.outbound.protection.outlook.com [104.47.42.66]) by dpdk.org (Postfix) with ESMTP id 3BB6D1DB1 for ; Sun, 9 Apr 2017 10:09:27 +0200 (CEST) Received: from BN6PR03CA0053.namprd03.prod.outlook.com (10.173.137.15) by BLUPR03MB279.namprd03.prod.outlook.com (10.255.213.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Sun, 9 Apr 2017 08:09:25 +0000 Received: from BN1BFFO11FD022.protection.gbl (2a01:111:f400:7c10::1:142) by BN6PR03CA0053.outlook.office365.com (2603:10b6:404:4c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Sun, 9 Apr 2017 08:09:25 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD022.mail.protection.outlook.com (10.58.144.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Sun, 9 Apr 2017 08:09:24 +0000 Received: from DTS-02.ap.freescale.net (DTS-02.ap.freescale.net [10.232.132.223]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v3989Aog015502; Sun, 9 Apr 2017 01:09:21 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Sun, 9 Apr 2017 13:41:04 +0530 Message-ID: <1491725483-6619-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> References: <1490362538-20854-1-git-send-email-hemant.agrawal@nxp.com> <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131361989651265627; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39450400003)(39410400002)(39840400002)(39380400002)(39850400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(4326008)(77096006)(50466002)(104016004)(36756003)(2950100002)(6916009)(85426001)(6666003)(38730400002)(110136004)(356003)(54906002)(53936002)(5660300001)(305945005)(8936002)(47776003)(50226002)(33646002)(50986999)(76176999)(189998001)(81166006)(8656002)(105606002)(106466001)(2906002)(5003940100001)(48376002)(86362001)(2351001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB279; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD022; 1:GvPfgZE/ENxthn1EzXochaDIMx0ZLN3pxFYe/shMoM+at6r6We0aWczT9zaVn/G6mBfu5O6Qi0GuToZC8m7toXPyaVf0GYPXt6163hR78DKbZu9/VZFAXuZJ96cSVAYJxyB6cuFzKIttTK0gX/Br9Q9mVj9QmH0E7cbg/JX1HkQYVH2fI2uaybZbebvERdppVkU4GhQ0oaGKbjRuYoeLHe3B+tX3Uzr5pbOsY0vblRF/QzUg9XFPkwMfIvOKbsaQRd4CBKISpfp51zsfqyRuvaNTsGP+Tn+QfuzDVS1Hq++gNZf919XijJgEmWNdJ0+11QHEHxC0Iah+zJkbiP0JhoFJEY0kGL8v7KiJQK2snYDRTWgChd0cQ5vr8uA127YAC1hNu54GCbbtmg34pXuvjgAryuGmxngneXPdFElPL69/XdTr2Ivf0fjS/19UCSkJyS8o+No416FBxVV7PT+5H0o4gbu04gqp5Gn36ODUF767EUCLbo6sdfxry0EJiIY4qq5jTOV+O9v6vMgY6EYxNnMbG/hP2jATWgw7xLQqCVctDr/YFBhnpFYTJZsxxN5LPjQ5Ora5BXOIGAmUW2pMQOKNvXWjf1VMWi/M+z+DSky45KT6Dfy1o/D8G8Ve/7szw0pTwDp/xRdg6SoFoS5JU3DwNMbczv506Ob4tT+6iso= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 6cb6c193-a323-4016-f85b-08d47f1fbc9d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BLUPR03MB279; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 3:Ne+3H93KSdgKusbk3xkoqiMbH+1L2ZTi1zpcdjDs+wSkXtuwTX4L9ybYjp/a9mXoUOSRc2IAhl98vJuO/eHXBxJlHG9O/VPmENg8MMTKVb4T3meqCm7rDsKRRSKvxNZAa2QuZ4+IyPNX3SDK8TWdVxamCwKo9i4WYwvAkSOjoMVPqQhJIj0UVt4BOHDUu1DxjhLLakNrggJ0VUgZ4iZC0V77ZJZ/IzJeahiG7GqFWlCtpsC6DRU5fKRSO6HOzU2VS62oDc4q7lvQfYmAvCgU67Lnk5+HoOtHjMpLxPOtEA+8a7aCbRS7F8OzwqfccjibRaMIYg2NqPNGN0RBfA/cw7KnMzBbGjkNaXRlcBzI2r1ggw+0xNnlOZQDKb2KQXLsiRcnVhqVtwD1fWTslzoUyYHK3rQ+vIyvCTQgGkrdxANj6mbA4g20hWo8Er5kRn4P; 25:Km4QmuiFcRQINMJBCjlSeMdrSoBQDz6E4eQRDf4o5fcVPP1XPJ5jiGShaRcpcXjG3dDObt6m0A00SMeWfc7OFVcvAdWok7d2w76mh4rEmNShvLoPlHCfhy/oQ/1lZCtKpwAfHxumu48yG+FuGbBb3DbiM1ebNyF6MaOIxnz2tNRYgznKEikY3HQstguKrSj8JGY41a/tegaLT6VNXwX4laQQcDxQL+Z/A/3ISseCYG18TPHhHuFlrO3HLwmc/pWn/W/ZZQ1hDhuZmCDgrf3Uhcy7Mnomcw4KuWTkqbGiTagG/xgeKXt88qzVSsh1OepndqRn+DWaHV34wKd1NysHDDw2fWFRAytTe68upreqmDwYNh4ZXPut/aXeHTuU2tZ8O3b8AdF4fVcwdoFTwwyKT8ic3B6BpP7ZoKVR2HOTbR9YD+6UZ6f/d4b6hvukRQ4Pk9MCtBDGNjdKpeI6Jn6+Ew== X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 31:ynGdAFnj1gz+1ENCZRxmk/gbppxQ2ZE3JHMNOFcFVzpzmiZta9bM2OqtM8owGHBS4nK93id07i6IjavpMPdoTDKlIhk1cCiqzxgTDDPnsge4UWDrGTJjNZ1FFYncmJVrDdb9GXaTd+z/AFrU2bxj9Owncpbeyy3sqwNpLzUqDj5KoBiarOXbTyd5B7rZFDTA3CHDnICLbIaAV2Li1aqoQbPPYwY7JPnnuqE13qbQ+3S8HB9s/q8bG7xObXkTcvqn5eebBKQxd0LCMavm0s2FYg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13018025)(13024025)(13023025)(8121501046)(13015025)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123556025)(20161123565025)(20161123561025); SRVR:BLUPR03MB279; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB279; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 4:M2PN9KsZL7K5kwS+E8iqrqiyK3FDm6fVM1qc9KnxIqPz+kzus80ypl/orac7XU/dCet/hv86CNR9c9GqNcz86v3LESno7DMRTnQ68mnLPE1bAmMVF7ixJits0wCLr2NUrkRhIfA69MoKsegO7qzcpK7vtdMoA6/W45UKfRZeXzM4hciK1X72PXq7yg+H+Puw21Ty4sMO5iSLHHMIgUo9envn1100+C/b0cIgxBKys9Zdv44sKp7Jjazm++25qgvGhd+qg0gdgvCex5jSrgaRAcgB09YHH6TXet5wLLiJ3sRk90NyNxQugQbFnFLGryqKJdQIhcGyGJw+hR2G+uTjWHNnf1im7rWgwSxJEwGYpeWnShDA5l2neF+MLgzrKBVs+W8vJSbhLPXEeVpzpiJFJMZ3k51EN5ZBpQJah47kBCMLU7MWaDfPixmu53D6+in1c126baCw0bPxSqxzycMM9hjRm46PA4uqVm+MQmRZ68PYdLtb6ydqKEKFzK8mOChhFfsoYRyV1+YSj1abPufSkyV0WeB3cZj6fMav3QEp72pFSzHATkYbP34iDCT3gp9RYlrkDHHUXdk6eOQxsAwk5CSu1V8DCCtIiRG3XUHKZ7cGOKBwKiU8a5LdkGq/wbqXPdFl7mESDzCZby0RGSjegGZifuvc2+qphZG8X0qabACQdMhhAGzksJZqLbwl7+l7hzvojCZIDPR5fMGr8R+M1SSH8SaFEY9Fqf/Sl94rdcw7ToSl7HTVj/ulIfEHwJSBAQHtYptV+D8FtBNSzB/twKmyfjE5USHM9g59sNX5h5HLuTPVfZgM7r2mEIXIRG9zOIjlNGmHu729wXNhAYV2uPkBbJZeQksOohTUjSwRVx3k0utRAdUBe3/xMRoQ9FmHPTiHRRQeVGlIxXCE5jfTVw== X-Forefront-PRVS: 02723F29C4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB279; 23:GRZ2fM0ZkUhxijblWkYkFN/l9KLUbGejAoBUwm1rib?= =?us-ascii?Q?9QvKm+QUTRHmVgl0oSOejFfReW8p8/KR441Y+/iJTMI28ysJ44/+XuijP777?= =?us-ascii?Q?6dBqmI50pi9IhugEoCap1rOXvzWu2/0qA/dxoUS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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 7:hd1dABwqJLZYykLLyg2UqxqULAtY4Fy1WLZpG6/IdjXmKAA1FoA5ErMz2NEov9TQi8yKV8MoRLA4oBPNDelJ7nm7JIZJ4LrBo6/jTxQ72DFyyqqnrvFIhlSI25D+Sdhq3IPe1gUYTnbJIyDwhHMwR70vIEK8wckbvdd/W9zxmMYxKdK5qPNmugAvOHdGK7EROFZaD7bZee5nnKpeIbcc/lwAoJk4R2mto9cTg7PoR+D5a36L7Fe87RwnE416Y+G5Hr3yGBPWpNkQnt8cwAX2pUYHMAfvECmuDbCbqzkErB8aA7CEJvGG5KeBfzGne6GPepokFgAdxaF/F3w46NnWHg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2017 08:09:24.9393 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB279 Subject: [dpdk-dev] [PATCH v11 03/22] net/dpaa2: add debug log 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: Sun, 09 Apr 2017 08:09:28 -0000 Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/Makefile | 5 +++++ drivers/net/dpaa2/dpaa2_ethdev.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/Makefile b/drivers/net/dpaa2/Makefile index c91e743..86db137 100644 --- a/drivers/net/dpaa2/Makefile +++ b/drivers/net/dpaa2/Makefile @@ -36,8 +36,13 @@ include $(RTE_SDK)/mk/rte.vars.mk # LIB = librte_pmd_dpaa2.a +ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT),y) +CFLAGS += -O0 -g +CFLAGS += "-Wno-error" +else CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) +endif CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2 CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 939c56c..dc3865f 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -45,6 +45,7 @@ #include #include +#include #include #include "dpaa2_ethdev.h" @@ -53,6 +54,8 @@ static struct rte_dpaa2_driver rte_dpaa2_pmd; static int dpaa2_dev_init(struct rte_eth_dev *eth_dev) { + PMD_INIT_FUNC_TRACE(); + /* For secondary processes, the primary has done all the work */ if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; @@ -65,6 +68,8 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) static int dpaa2_dev_uninit(struct rte_eth_dev *eth_dev __rte_unused) { + PMD_INIT_FUNC_TRACE(); + if (rte_eal_process_type() != RTE_PROC_PRIMARY) return -EPERM; @@ -92,8 +97,8 @@ rte_dpaa2_probe(struct rte_dpaa2_driver *dpaa2_drv __rte_unused, sizeof(struct dpaa2_dev_priv), RTE_CACHE_LINE_SIZE); if (eth_dev->data->dev_private == NULL) { - RTE_LOG(CRIT, PMD, "Cannot allocate memzone for" - " private port data\n"); + PMD_INIT_LOG(CRIT, "Cannot allocate memzone for" + " private port data\n"); rte_eth_dev_release_port(eth_dev); return -ENOMEM; } -- 2.1.4