From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0059.outbound.protection.outlook.com [104.47.41.59]) by dpdk.org (Postfix) with ESMTP id 8D442FA39 for ; Sun, 4 Dec 2016 13:44:12 +0100 (CET) Received: from DM5PR03CA0016.namprd03.prod.outlook.com (10.175.104.26) by CY4PR03MB2472.namprd03.prod.outlook.com (10.168.165.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Sun, 4 Dec 2016 12:44:11 +0000 Received: from BL2FFO11FD048.protection.gbl (2a01:111:f400:7c09::157) by DM5PR03CA0016.outlook.office365.com (2603:10b6:3:118::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9 via Frontend Transport; Sun, 4 Dec 2016 12:44:11 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; 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 BL2FFO11FD048.mail.protection.outlook.com (10.173.161.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.734.4 via Frontend Transport; Sun, 4 Dec 2016 12:44:11 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:706; Count:10 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uB4ChXbG032240; Sun, 4 Dec 2016 05:44:08 -0700 From: Hemant Agrawal To: CC: , , , Hemant Agrawal Date: Sun, 4 Dec 2016 23:47:08 +0530 Message-ID: <1480875447-23680-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> References: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> X-IncomingHeaderCount: 10 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131253290514678439; (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)(7916002)(2980300002)(1109001)(1110001)(339900001)(336004)(199003)(189002)(68736007)(39410400001)(38730400001)(39400400001)(85426001)(39380400001)(81166006)(39450400002)(92566002)(77096006)(47776003)(8676002)(81156014)(8936002)(50226002)(110136003)(5660300001)(305945005)(86362001)(7846002)(356003)(5003940100001)(2906002)(4326007)(8666005)(50466002)(48376002)(104016004)(76176999)(50986999)(189998001)(97736004)(106466001)(2351001)(626004)(105606002)(6916009)(2950100002)(33646002)(36756003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2472; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD048; 1:iTALXLCKfmtJsr6RJbFwgDYNeQCk/Ux5KspgLlaPf7ZWHkFu9ePAexX0oRF3ufAttHzSsK6pJbclzz3kBGhCAh/baCH3C5jr7P8WR3Qi4jjMr1xzTyaQKUeqYfJO1WyaZRwZ8asi8p7IF6w2YhImihqSgokLd8q0DYYhz0mo5nzZodgj9HCW+IPDr+D8A0HBWrAxgUQFwb1cZi92lCD4oI48qOkMeuX4oklPHRtvChBJTcG80ak13u/xyPaFVNDm/SmZrWiKcm17e5FwfTbOdK9MxjcaNgX2qG+ii/fOihKq2bLs8AQYa8P0v/GgpNKl7YqkMjjsmncdxFsxMVgUuu21QrENpavCXpChy0pKqNUkt+cEYtHN7aJrsxAtIOlGn+tNCY3SEzKts/fSvMCthH4umr7XfekBVOjPhj9UBOprb5PqgsWDjrrgNiOwt02z7vdgW3TeeyF9WCeNw2XDJzZ7TLgP5VYyZiVBkE+SlOPt/WuCe3WbuMjWP3H7hPqgpz8UYC/r83qBBS063jO60jPQqP9ax136agCrH8xWYE6E8OEfwbzAawDXAxKhXhJCU54aNLXr30Ac9Tif1y59ex8REP3joeFgFPo6kFOcpN+5UmhvVSrOwi8Fz9dF/MTrNCLA9m5T2Sfs6GLzhfejtBIV17gzucWmdIuBsB0RHmL+84eridJvJB6ELJ+Hi4171EXar5ydKY7NtWpFqBSEpgpziR1QE80CgrB/RuaeBk4BccCc9zwpcMYAZDPTzW6jkOUsmckyEqq7YLahPzS5Dg== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0242d831-9e34-4668-214a-08d41c433f2f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR03MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 3:J+U1BzYlnhOY8ImgZwdzCHE1d6iqbBKlyDKs3GjqinxwWqleZX8Uspa1pkOqaIelqBP3iPIQKviPANN1KhptkObbBiBHgt7sH0PNdGP/OcDtLvY9g3fqJ9yjzQJIZ6oARdx7VJ/4qYLU9B0lvxvz2v5vpt6IaB9sb/YRh5XKxlB/j9YCqVyXT5tcL+65/0Gvm80HB6ls+2H/6DTzMDwnj3C2pqwarQcovsBDCByjYsH/IKKlUsPsdH6Xk9XBbvB9mjVqssQHohrrnOYTVrw/s4GGZmw/IYdEyg41gdi2s3Si9Px0ncRUfgm74pJob4PvuJRtlyk4IqOF4+qhYZEFJkVG6ltPCcKoFWM/cL1exhXaHcm4egaLmM1sd9vGr8J9 X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 25:65HbHZTmTztclEbdn4P5gTm1jQEgy8rW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JJzVFA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13017025)(13023025)(13015025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559025)(20161123556025)(20161123563025); SRVR:CY4PR03MB2472; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 4:DBY6F1jxx2atvcsYFHE4lF2JVcNymmWZJ39RVlTu/2w27U/EpW/Qztm1RJBtv+xrjX8Z3CTXCoOsFUi2Xbfy1OX+glW+ipCUiQzmntLBkoWNLS5h+3SINl+eU1mkCE9Oux1dVmQlGWvWiAJ3fWIhaiJmL87SKYQjx19EUwsSqLz6dJUvcB8KTImkfyoWr58HJtMgZxumoUn+T9X32gPiLcjhhsBY9Bdx8HWYWOo62MuZBLXLRaRzmwTNMqSwn0c9TPM6XKIT9T38Uq04lBE4pfZ+Gpel7Y9BClzYbZtgSUHGYD69yrrcZHTnmZ/eXYNxhL5j7GkW05+0Cu9FwnSQMpemgqxZ9V7bZnWhmvNdj6RUo68P5bnc4hvLrspWJHbgP/Lxi0ya3yFeooJkuOkEADqBF/hdC98qVRQh3iURFFicnfKP7D5e1qOmPimbytoQXVsLGCTLAnONIc5MLb9Qe5+TxMSXe4Y6Cirm+2s7gxK9MMcO/J4yA+6jrqZlDxWHZap0zzuzKDoo6PmoeE31SqBGqU/cuDUgO9uBd5bMoWjcvfY8dXVIktyVcXuzR9uYyZWsksgsTs0ZXIMh9IKcEA8+PB4aF87hAaiMbhXuPRwJ2P1tNfDPVHx5dvEcbM9Z+k5BimhUWsTEpUaPZS2qCqKJnD4aIe9GuZOLPxIdxtuDOgD7PutUnYV7nUymbWltU1YvJNI3WxQtpKEPSgMmfBzpSoH0LoBEKdl+U0muSYV/upHlPx9vwWL/xDk3Zc9h X-Forefront-PRVS: 014617085B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2472; 23:O5bnPBthiCCpqvj8jwg7+SWRgy69qGyABmMK+sJp5?= =?us-ascii?Q?Fu6iF6y3YmfUTNyXTVwXsLXu6h2AweVXMquAYZ4u7CQOCja8FTZIGWvhQ68g?= =?us-ascii?Q?YUs7DRCApoWM2BQ1NmD1uuZ+jqK9V4BRsTg351OtWIijYaNy37joAdgd7AYa?= =?us-ascii?Q?Hjmbdst/JtCdz6P4BKZI6VfkjyyTSFxUs4D4mT9Y5xl2P5+58EtSGfQEggZ5?= =?us-ascii?Q?ZiZWefLI9jCNQTLytWOfNPv20YRMTdtqs6YRGGdOgiovejPFwvtafeTqd5sl?= =?us-ascii?Q?8xlABPVxll0EnOyDcbg994KdXmBtv6C00Hjd/GvKJavL89RfsnG+y8CWlPge?= =?us-ascii?Q?wltpiTbcdBJzBRqFNkMgfmC6nYj+0DijOvFbZMIV97Q00ahKEOFErciOezRE?= =?us-ascii?Q?cprF66AA6tpN8hNVGMRo+miAmRcm279Q/DFEsHH8zUM7+m9dPg8GBXa3NgzA?= =?us-ascii?Q?YiHq/rmjnJYvQtn+JJEevx2UygvdtWz7H7OnG2zjpFrtPAGpGIuiMP0oqnwo?= =?us-ascii?Q?EycgoFM1pR/RPbmKIvXoqUWU0hZrXearXE+JK7cdI47fi4GZi/6DySvqlGqM?= =?us-ascii?Q?5Qk5my889MpNMfaxqKdPvjHI0fFHmueab78fiRS5GbP3Wru15ilfb9IBZayj?= =?us-ascii?Q?g51hMAtbJGKjQEN0A2b2TJbJluNBw08tKFl5bOrrdW9IWpWkO3hYH9Xyzmbl?= =?us-ascii?Q?AhP9g7S1Fv5CdUaJisblcMpK+ZGgLWPH4ONs7Z5UcQC8MflP8oF2qAj53uwx?= =?us-ascii?Q?mVDNoJvfNwr4Zz4vr9iARv02OF/Q9Qz1Q4mCnX0vP4Qlw1tYHyOTQmUwatWa?= =?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ErrOCogVYC27dCFSrRZmpZTjCdBDjEGCfOyc/GcktPtsYb9GQvV4qFgsyfEkRa/jU+mGaa+cHWg1nwNfQ8UD3wGjG; 24:cUtCCu8DwR7eNrNKI2Gg+N7CqN+1LWRokHuD7CWVeFCAb1ykZbJHQadEKcqJqgQ5cQpEgM73mb6U1fAN3b4YYTwAgUqfRuKaB2oKRIJcbKY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 7:fQCNMHl5EaG1pAsq36d8KuN0gljSmoMtil++UZWopU3s0owW3OF+jar/xcQtT2b2l38M3Igj7g5OOabRckeFXcYxiEZmx1MjrBCKcQ0zmIQqfpGowt3bznxmsAoRbpTX9z4RnMCn7IVacXETi+y3XljAI7MequjkzKZ7FoeqXTWjkvEVc9PHtLEPnshkvEwDCvRGKfoIHLeL5bCzmCroTK/9nr0ZkQ8sIIKaucSY1JF21isSZKYdQuvWRq85ndmF7qaGP3YqOeJHn075nLjw5DCvnR6DMustaQoB56EG3QEMwG8ttc39bh+7Vf7K6lS5IYLkd5rYkvMXeGW9LlX03gWvM2zXkmc1uFe3Ce9HfIKRb4QB1+QNBrDyscexvxp8vE/F1/2QqOgh4iIwFH0uf0XmS6Xn76omTbxjcnIYdxcscHxMRkNEAt81Q9kXAE69A1qh2o6d+4s+MDlVyyKI9g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2016 12:44:11.2806 (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: CY4PR03MB2472 Subject: [dpdk-dev] [PATCH 13/32] net/dpaa2: add debug log macros 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, 04 Dec 2016 12:44:13 -0000 Signed-off-by: Hemant Agrawal --- config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 + drivers/net/dpaa2/Makefile | 5 ++ drivers/net/dpaa2/dpaa2_logs.h | 77 +++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 drivers/net/dpaa2/dpaa2_logs.h diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc index 00f207e..5ff884b 100644 --- a/config/defconfig_arm64-dpaa2-linuxapp-gcc +++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc @@ -45,3 +45,5 @@ CONFIG_RTE_MAX_NUMA_NODES=1 # Compile software PMD backed by NXP DPAA2 files # CONFIG_RTE_LIBRTE_DPAA2_PMD=y +CONFIG_RTE_LIBRTE_DPAA2_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_DPAA2_DEBUG_DRIVER=n diff --git a/drivers/net/dpaa2/Makefile b/drivers/net/dpaa2/Makefile index ab17143..3032708 100644 --- a/drivers/net/dpaa2/Makefile +++ b/drivers/net/dpaa2/Makefile @@ -35,8 +35,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)/lib/librte_eal/common/ diff --git a/drivers/net/dpaa2/dpaa2_logs.h b/drivers/net/dpaa2/dpaa2_logs.h new file mode 100644 index 0000000..956a940 --- /dev/null +++ b/drivers/net/dpaa2/dpaa2_logs.h @@ -0,0 +1,77 @@ +/*- + * BSD LICENSE + * + * Copyright (c) 2015-2016 Freescale Semiconductor, Inc. All rights reserved. + * Copyright (c) 2016 NXP. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Freescale Semiconductor, Inc nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _DPAA2_LOGS_H_ +#define _DPAA2_LOGS_H_ + +#define PMD_INIT_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args) + +#ifdef RTE_LIBRTE_DPAA2_DEBUG_INIT +#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") +#else +#define PMD_INIT_FUNC_TRACE() do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_DEBUG_RX +#define PMD_RX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_RX_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_DEBUG_TX +#define PMD_TX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_TX_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_DEBUG_TX_FREE +#define PMD_TX_FREE_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_TX_FREE_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_DEBUG_DRIVER +#define PMD_DRV_LOG_RAW(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args) +#else +#define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0) +#endif + +#define PMD_DRV_LOG(level, fmt, args...) \ + PMD_DRV_LOG_RAW(level, fmt "\n", ## args) + +#endif /* _DPAA2_LOGS_H_ */ -- 1.9.1