From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by dpdk.org (Postfix) with ESMTP id 6D8C4D592 for ; Fri, 3 Mar 2017 08:13:54 +0100 (CET) Received: from DM5PR03CA0034.namprd03.prod.outlook.com (10.174.189.151) by BN6PR03MB2945.namprd03.prod.outlook.com (10.175.126.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 07:13:52 +0000 Received: from BY2FFO11FD014.protection.gbl (2a01:111:f400:7c0c::110) by DM5PR03CA0034.outlook.office365.com (2603:10b6:4:3b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.3 via Frontend Transport; Fri, 3 Mar 2017 07:13:52 +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 BY2FFO11FD014.mail.protection.outlook.com (10.1.14.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.933.11 via Frontend Transport; Fri, 3 Mar 2017 07:13:52 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v237D50H005035; Fri, 3 Mar 2017 00:13:49 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Fri, 3 Mar 2017 18:16:31 +0530 Message-ID: <1488545223-25739-15-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488545223-25739-1-git-send-email-hemant.agrawal@nxp.com> References: <1487205586-6785-1-git-send-email-hemant.agrawal@nxp.com> <1488545223-25739-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131329988323372296; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(7916002)(336005)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(33646002)(38730400002)(8656002)(110136004)(4326008)(626004)(36756003)(92566002)(53936002)(5660300001)(305945005)(6666003)(2950100002)(6916009)(189998001)(356003)(54906002)(2906002)(48376002)(50466002)(2351001)(50226002)(81166006)(8676002)(104016004)(8936002)(47776003)(5003940100001)(76176999)(86362001)(50986999)(106466001)(105606002)(85426001)(77096006)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2945; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD014; 1:/SoHlmPHHkERmIVHEjDobfdDqaLeWZfEUdp3PkOom6DyW1IgWYtOnGK9HwbvPX3MhjUMHr+yd0mhTsovXramgpUdtTFSld+PGHIp/5gA/WknDr0f6FFMzNqFdUlwnvss7v8trNgk96HGknztnakXZimok2ceNhjbp4m3RkVd+u3XANZqLx5AFK4MDfWIUyXWwzTeyY9B1YpGyWWhM3AkMUte3dBEouzN44SKNsoBsiGu/GjHzBZKtAixCY0cKUip37vTOowcIimm+xSx7W0+zSD1ODDcv0ruzl9xK2w2jfaMJzf/W9T7AYDJMdrqUVNpAHB6oPyUrrnBfa+I3NspkgPSsOsHTyGX1NlGOKVnQV85E8PI2rJz7brGO3hcJyFeAgHkQ30n+WH+TlL+5PfSn/vsMvLeYZY6dKSCIll4jVPZYN3HBkoAH/No71g69TF9jAm4+ju2+AHnvtOIiyS7ujoHdFmrQcThKBEOuM9gr+8nYtihaW42kmCjEQ1uFonzbSHh7lzlVlHJfhPuOCFh5XLRB1cVtKh3XFD7tytTqjiLxbjdP0G9Kkf4j2gsarCRdY5MVAcNLjqfQR3uol5x6RsODQZKJXEmQ6OmY6qHZOE3aS3p+gbuefouLuJxl0+YRGDGBHlomFsNEBL1PalWKQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0c257696-83dc-44d3-ed08-08d46204d8d5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2945; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 3:3FYKYqS9fwGfTgKq95cMScFNs4bNnTiJX+kysBO8UkzTv8w3UyvZwwNNxBZ5U+Cg2RER022ULzW6VAk3hKFuBaytP9MVguwjTaQztBWwBL+JcIdE3fUNVETmuDNFQHeDLY0ewErImCSCR+PGpcZHhB+fqlTG8CUmWUJdIK+g/34DPdYbTX+eFZ6E2Gz6drH45lJSL2d3IQPJ3CQ5w7EAfDh8tV4/RrGw3q3FDVsPpYMNvyC5n/KoSyHhiWdhmnrI2UFt0jT+tWtllRx1Zp0tHmFPyFscYb595Gs5lTS3GqV/MbyghbrDzHn9jRPlc9U+Y5jdALY9RlNfdvNvRKT0Ft92zz5qyrowrH/PrKEpEkCncM88K6XYRhVjoAvSkv1E; 25:GhfD5ydpk8ExmTQnkllirJ0YIwnOvXV9lC/6Ekk4CGZeGSBCGzPOEmLo97qVTkDU8rgcep73SW/J91cmO2a9nUaOOJkxoJ6n1oMn+Zr6oxWS++tMbTZK+zCAZlZmi5kRH90R+we1Tfq3ZeZEfcMRaxi0AP1IQ+LvIlXpFJYFhoa+Ix9ogGEd+PU5cQnseuy63P9yCdmJ4WRvBT5lAG6TaYASxtmKE1kRpCes628qrGXdYpKg7LObhRwb8YQy6wh19Hq1YAAcTm6ZhOeJcfN9yOyEwB4r/mG19njykoiETZP9E4pngoHglgEfVVc2DHINtXuVrVheybZH5ASprZgWeqAu/tuQ/FLR7eZXUPHuC5iGDbzNM66uMNWHz0YIhnUdzF/ZsrY8pEAGirMeG436sABkzP1aElHO9fvgcKoC9pshGPArIHO6jNaB6jQ+ysoaU2jcM42DolgQDfXvXbMcPA== X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 31:mscXVn7wOKFxNc2cyW4qsbPbUCRGYms3Puw1Pi2g0B1YLd8dIAlFplstwpi2oMztivF/Mx+HebTqSW72cw5szNL4KcrqmeW+fSunkb92/A9Vm536z+OPsFUl2kLLUvOsTFGfz+kaRd7aRMKFM+R/BpBcDK8b3V8bi/f2e8PPoc8dNzPXOd8AMD1tt13PTJ+vgbYBzggZd3VLOWMyN77DXCTvusEbA3biMK6JQF+TssSMMvv4FHWJB5Vba5lsD2Y4fseypssZkfhAwcFf09H5oXiibatIXG1b8J7HBUURCWg= 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)(8121501046)(5005006)(13017025)(13015025)(13024025)(13018025)(13023025)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025); SRVR:BN6PR03MB2945; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2945; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 4:TlX3WSI+fK67AtXiem81L+NP1gxWTWNDtZgsEiLLjUhasrArMPLxERcRHBSPXgalxIMcLbfTIuWcaoxPytzzTVh+SsyOMJQ2Ugyh2cjzr4+/jf76+zTvtUFKS9Sx4k9zRmuWrVwIDaDI3SYyHIsvQjL9ESZbTHdzBWTr3yU5PERFtTW9qbjCwAOABXqvIS7e7gUj4Bx6vxwh8yxIlI/6aSsd28wu50SneCvPlOxt4opQ0lexxDqdRUsRe/T7XoYLQ82i+gMkhlnls++qMkkM1tgwDcBo8/0pbyVkG/35WFDD+cpHPn5pq0FDgFTpNO8lYgvrGuGrsDwMHm6kd37SCXhfQik+mwr3q153oCfj8cC9hjd+EHmO6kruDVl3FpHyuVwkqACEkP7BeqQLOXnc338d3grHG/moukiSnsq4I+P0CMQfVfd9HMRXFpa7rEeLYqIdmurt26Y4d9dLC6hkN0RrlnnDTm0WmkZwL52PHU7bc2kA/vL4DDrR58sVbE/1jQkwghM8aUZtqaXY/jV/atQQ2JYxG+36Wmm6mkgSSkebPxu2L1xod+/0BGb2807oYefzSoBko0rBJyfZj3cPctNBs0LsP0EaBWe+cG57o58MdBLI72lQh+QIhK3X7wu1RGkdqTno1EJQWL7pikQvwEyHr88khzQlZB4JavGGLUbqRWnVMR5s66mMEFzLX9LD7hxVtvqGo7AzpLqz/dNhtXj9zudnprTH1CH085+pEqu7dFsb3Hv8uajRYv0P6UmI X-Forefront-PRVS: 0235CBE7D0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2945; 23:jYuoIT8/vH3p4jdT4Mhh3jcU954a+mjLPydv4zSB0?= =?us-ascii?Q?Qi+CDKzJ12pndxP/tDIXE6nR4kK/H076iUZe0rkdIccG0U7ty5Yz4/4TWvYh?= =?us-ascii?Q?GcsyqmYZdALaMZ0QSDVjb1tL1pLupUp69dXBSvCeBZCldSv+/qucgkLhlDzK?= =?us-ascii?Q?V/iak8hXUpgonKMj1KEUemhLNr+B/CwpEzU+Smr7gVdApxJ0w0jzf8PjPgvr?= =?us-ascii?Q?igIG0xak+Si2FlViKQwnqn+4OXDXHdHKfKk921PdiUXBA8aVYPgT1Q9oaaKs?= =?us-ascii?Q?9LPKUJONrWgKwiYixrU1F0lHz6IOVmF4ThIRbpOo6CiA8UAWzYNYtjIl+IMy?= =?us-ascii?Q?oS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XmmSGw2+zw?= =?us-ascii?Q?mIP8LLvJJ1n0B3bUdVBqvdKQjVVwKAuwAf291sfhS3pJnMWOITqSjvEUxa/+?= =?us-ascii?Q?O1XioxvsA0v62p4BeFbXmpdQ7zf48tbGYRfACJBkXECeqcvWxTeJ3GbSynJq?= =?us-ascii?Q?sxofrEQ6cBailNu1mR2Y/2ziTc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 6:rzorkNl7zBD8DHAGJxzcS+2CnqItoOuwjZ3o6s8TBFaphV8DgBuzlixfFrKbFRDv1QjjyJF0yDXENljg/l6ZEL8blKlTlxYL1OI5f1vXo0DZeAquRFKSdrSzX5HHfjQ4Lph9uPu0Kk2zN5u6kst2RJ+vMCTGi5PdGKmpuxLahyVEN4yY53YT51DemAr5qunrBNbZRHqmW9kKJMPsMTAFj0Gnpd+UYIODUBzzpWFPMcbGmFLXqxTtFUrNuEjugxMWjvQar3haydHif1rDlQOIUBHRc8egKad4SSkBQqaQDiudEm82PfNAizk/NPLo3z2So8NRbaioQEBa9fW4QjS6TPhPKl70QuG9Y8wMtzoh/3NqS7wjgBPVjs3d7K1xL7kwM58sOmy1iEwk+afSwZNoOiuYSCLcQa9aqEXKL7PbhrY=; 5:taLA3WNXtCq97TuGm/Ivj0cOhSB8VlEZhzZU3TLfqqAAA1FzOjM/qbRrNrsmsj7JVvFJvg0IqO30482egmCeHa1lyHc7MIRF1OaB1RAU96qFRVfAs2y1cStwWLEL8yiNG9xRFHdOyXOEfSE8ZSnc0kzZJi7qR7jbPnApX6I1xR0sfdvKEuwRGgmsoGqfrLFW; 24:HL00QrVLkJQVxfuT068W+rhIS6i76bm4UYb2k87TO0HdsBB85Ss9rvWTSVUvnsUI+zvKkkdhgiuauiY1uu2vuGNQzhS8PVv99WaGwXHTCKo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 7:niqFvvT4cojZm1acIrRySMCP6LUdV3sgYSuItiiVGTa4/c5J9oCvV8dS/+ye3GfmwEmdQuSGCCK1zSeMGD0KkMRgxBShdhgrHAefUUETJIpuUAw80fR2zQaByshcrCKBQ19Fm9p3kG9XpO2eRQ5F6dBer8aMTNgpf7zoULdSgc5dxDndJZjLkYAnL7KS814xfPA+0QH10rRwuOesZ9anfxfFqb7nSc2P3A3OkmfU+OA4/0mIqMuC53QdgnSfZLVFw6VgpoKChjLBLJRLxJ3DcCPqnG818F5rYJY0UUG+azTFg6qoat89Qcvd5i4N+Lz53F0j09d1PUtvz6RdUT7v2g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 07:13:52.1500 (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: BN6PR03MB2945 Subject: [dpdk-dev] [PATCHv8 14/46] 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: Fri, 03 Mar 2017 07:13:55 -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 4f5dbf7..3e3c8d1 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 bdef362..ead6a2c 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 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 @@ 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; @@ -95,8 +100,8 @@ 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; } -- 1.9.1