From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0054.outbound.protection.outlook.com [104.47.42.54]) by dpdk.org (Postfix) with ESMTP id 4717469C6 for ; Wed, 15 Feb 2017 20:06:36 +0100 (CET) Received: from BN6PR03CA0010.namprd03.prod.outlook.com (10.168.230.148) by DM2PR0301MB0735.namprd03.prod.outlook.com (10.160.97.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 15 Feb 2017 19:06:33 +0000 Received: from BY2FFO11OLC007.protection.gbl (2a01:111:f400:7c0c::158) by BN6PR03CA0010.outlook.office365.com (2603:10b6:404:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Wed, 15 Feb 2017 19:06:33 +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;caviumnetworks.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 BY2FFO11OLC007.mail.protection.outlook.com (10.1.14.254) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.904.16 via Frontend Transport; Wed, 15 Feb 2017 19:06:33 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v1FJ5fLk020023; Wed, 15 Feb 2017 12:06:30 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Thu, 16 Feb 2017 06:09:15 +0530 Message-ID: <1487205586-6785-17-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487205586-6785-1-git-send-email-hemant.agrawal@nxp.com> References: <1485172803-17288-1-git-send-email-hemant.agrawal@nxp.com> <1487205586-6785-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131316591934910303; (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)(7916002)(39380400002)(39860400002)(39850400002)(39450400003)(39840400002)(39400400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(33646002)(110136004)(85426001)(626004)(389900002)(38730400002)(47776003)(92566002)(2906002)(4326007)(5660300001)(86362001)(5003940100001)(50466002)(8676002)(81166006)(81156014)(48376002)(8936002)(2351001)(189998001)(105606002)(50226002)(104016004)(76176999)(6666003)(50986999)(106466001)(68736007)(356003)(53936002)(305945005)(8656002)(54906002)(36756003)(2950100002)(6916009)(77096006)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0735; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC007; 1:xbSNiYs5YcadQPM6E2b4QWrw2n7mAuXxh+r3l8feNB7mjrqcTd/xhURzgD6fbmyHVy0VsOcuGBqEnA4ZKc7dkr5jsOVwxgTE6kF11WZTB2nhl2MU4P/xq9MCIfj4mTesem65lddi5FpKcGBEBqmXEJ6BYWNpA7NwLOcRGclrsoBHFnKQHLLDp68Y7hrwfYH/0g3VOEL8JcT3D3Bydwu1ZTme/rWXO87jm7pEr5wnd6jJFvowjxL026eyNEROUkcZJz7BLdTfZc9jKrHYqUgKm5mTZNVXTmgzZ+ycjwtrateBed1r8hauruppMgnM8EqCBAiBq/zimGzeYKs9xxwSkLqspY6Sy1jrURjcH/05ADGp3IPCnMQzaogBSRJsfIyoC9OZBPH54kx4PsJGLMPgxEPxJTE7FvtUlCRjjZPnsT3FyyRDqXOqI0DW+iX74ZMbzRNjsDfThnt1SAtfFwOMd1HMg8uJhOpEY95GMIAxKfxI2hiS0omdgb/bJoW15cxUMtOEiYNkHzxMMGDzDeGpudAiK5QoO9cWDd6/uVqmqrUCZ9rho2YlGzwCCh1GWUpIOElhz/CdjSENAoR/40iSpmKgmwgZN9LcwFq8yEPp0O6oyDoSiBMUc0xs38Po2LPvXcyHsV/K/qQvENR/w0EaaA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7ba4874b-0795-4731-2f5f-08d455d5c1dc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM2PR0301MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 3:kOYKSliehLi1iUelgeDZUPdSRhu0muBoz0GPQ9MNeYaFXCnit8cMWNIb0fBobDAU1Dm/tq1iXTE6vaAC/7HxGKGoStp0IAozqzaijcWKnu3AL8fx++4aO7CRYRYtkrX4jWqQrpQF0L+qPReBkhcraSEddf4a99AnbReH1tA/NfcoLb7Br4awozSs5EpTTO5rFRL82Uz0WveXid7GZ0+tFZ3Mverzh84QFjdZ3vs0qPQZWHFeljUQiwm9g5hw/NEqU9fpFa84ToVJgQV/CnZiGNtpI6eADQ2GdkFeEDjGZpBljxoqbcPZTi6uCiwpSonFcdY4vNiRCBsRXRfxwtcqP3f1eRnvV4zSabxgw7W6a8q5mujfbKqfjLJ8GAejzuXD; 25:x9fv+N7usQsuUsgqQFRYUoVuTFZ0SDuwMg47qc+XTKQwCOd3/f0162QQ5zoFU4f4HvFi1ioWxwGssDMMCs2VeAnH98ArGOrXUWiD+4HZ4bmDywy0EItguHsDUy4Ur4z9ASp6LB+++zN3I62MbMyHKlmNwnodwTq9aPeHEHR53CnB9+GiQNCOXkCFD13YGrlSIYeX6UYkAw/tid8jQ8haa9/TnmRDXxnmxCpyS3643sxnlXTHGB9YpsLtDJMNslhLHASdxDBztQRoSi6mNt/kYhq4jb1n44MTxRUgivM/zSB3oflkzoYIWnnzjMq1Oakt+Jec+IOaxysjs5gRdfyPAvjTlwea3cSXS2eauG7mkBIczxrMuUMdKtcw/rpe+MFTGzoXTbWaZ15GgS/yHa/COCFIO4lOO0MtCfTCsxFcjuvL3H45INBO0UVRYhf8Au5stisnmAhhoZLvhOr4tG/ypA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 31:yclYsgtjU6y0soYGfhSJjKhvozTlkIp+gixZhyI+OuKnjZEkgrnlg1rptrQSnUOR0eYcOWdlNz3vU0cJGssgd1NWwpc6PoC+YvMbAN1gc8uH4CaD3M0DJu+Nn1RPCMWZHLaTG184ST1aFl+X7Zc84HR4dweD8zyi/wtN6sRhBo1Vy63FeuEnq0CV3VXH2DCfYYVOMTixRi2d2AAH4zHL5I/+wyqeDhZz+kq28lm3De/RdHpWd/zMBqtHFBO/rxtn5SoY7fZBCWF+El2tIwF1Tw== 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)(13018025)(5005006)(13023025)(13024025)(13017025)(13015025)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123565025)(20161123563025)(20161123561025)(20161123559025); SRVR:DM2PR0301MB0735; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 4:Sx+d1GH8hZ1S2AqIVAUQ1bjT7G5nc29sQl2+yWstdLCBoHN0OS0N6a58aHqY8Sur1/HHBJ6A8n8ULwgE7bk70aEDDQ3Mpn5jKNEPiQfLW9Phd4VeOo+ohge5+YdQozYQxb9Cj/7Dp0VB1j1LvVN0ktufHz9H9pY5viE1ukd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kGMHuFEyUZrveeywfwoInlJlpvG4dZ?= =?us-ascii?Q?4hNaVcC8uFNmx0LOHp16Z0ogJ4W2dIE6e0M1rTKMqLO9mBwtBym6Abtv9jNS?= =?us-ascii?Q?J2G0a8lzGQGUt3tYyC9M7WrPQE/cy/Io618k+546luUGR?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 6:IhUHCJVTyISuK/UH9tzjodwADVlKP97lRnFiHcrdryeMOE9Vk6yW0lmPzMeUJGvppfdUpyvMHfbbQO1hiCClhSV6tIQ7n6OYZElWDmJkPfJmJLYAjjudqZkBN+jNszpNeFOiyUunkR0oOher31Y9m3Ti0iIAD1AaSIPuW9hc7IyASwL/e3ryq15z6q+KKPIkzz7THU2teWTQQ7BaDwbnlY19yugdSgjCw/tWUqrHZNnk0anuDD4InkyZEgYmQ78SCuGxE4FBUOEl6pdGRa1pxrFQY2/ABhC7fssDkoEULtUT7ujhDsuvOtdCJ3bcGnPLzEF5+5gA/oTc4RlF2OZAH8IAwyFPE7lqstet0GZ8BuXxjFyNr4tSMcvm2gIKzgGAIyeHXUIDtzXERu/CZIYem8iXi16Iu4VUX9EQT5mrYC8=; 5:1t0fJ/ouA9rDkQ1AqMsmUgczd95TuEzIj7syre/lMIj9PH2BjdGZ8VyKjW6oZYqS204ljIeoMY8XAvUcVubOShmDm0Ort2Eepk8hyZohasTHZNCeN2BTocrKO8LvwwfweMzJBQo+OZjSSx9C/M/m3eRTiojUo3/lvZ9srecPBHPEs/2P9J61rMFMbyVtHf2P; 24:qlvJk0lUWbqpKOvtJeK7YEE+YyEOPwSSHXFrZIp7xim+UD47KXnQmPkpJEgytvzsD4law/nCo9d7B1Km6YR/hlvgD7g2PJbQftJ2fzU3Y4s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0735; 7:NAy3zPOfvXrTQZZCzsGziZzO7Sv5BCaool/O9vVceA/PYCqpIvYC/AMv+z+CrWrq4RVRC9odjAlGihPxj4jzY2wEnZwr1ku8t2Zn39FUGDUoKHILd+3ufzea8817DBpC3jypRpKIR0SK2g9UDIa4r+bcYbSTR0sYx4n/pfW0pbbTKcZ4DZRyshwhHXUzKbma4M2BBSZcLxCciyRcfQZt2diSC1149xWmBRKwKspjoqqhj0RnYPQVQ16+3s5itAY2IJ+IGVINuvlhh7OgTIzi6wwMMbsn3CLO31det8We8mkAXZjQiWDGq6K5z9HW0aT8bRuyGoT4CSInzE6sxJARnQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2017 19:06:33.0854 (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: DM2PR0301MB0735 Subject: [dpdk-dev] [PATCHv7 16/47] 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: Wed, 15 Feb 2017 19:06:37 -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 c6a2764..966377a 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