From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0079.outbound.protection.outlook.com [104.47.37.79]) by dpdk.org (Postfix) with ESMTP id 1C08A69C5 for ; Tue, 11 Apr 2017 15:50:02 +0200 (CEST) Received: from CY1PR03CA0035.namprd03.prod.outlook.com (10.174.128.45) by BY1PR0301MB1286.namprd03.prod.outlook.com (10.161.206.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 13:50:00 +0000 Received: from BN1AFFO11FD048.protection.gbl (2a01:111:f400:7c10::116) by CY1PR03CA0035.outlook.office365.com (2603:10b6:600::45) 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; Tue, 11 Apr 2017 13:50:00 +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 BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 13:49:59 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v3BDnjFq000706; Tue, 11 Apr 2017 06:49:56 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Tue, 11 Apr 2017 19:19:19 +0530 Message-ID: <1491918578-4902-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491918578-4902-1-git-send-email-hemant.agrawal@nxp.com> References: <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> <1491918578-4902-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131363921999917673; (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)(39410400002)(39850400002)(39380400002)(39450400003)(39860400002)(39840400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(105606002)(106466001)(50466002)(8936002)(86362001)(33646002)(48376002)(5003940100001)(4326008)(356003)(54906002)(77096006)(97736004)(189998001)(85426001)(2351001)(2906002)(50226002)(6666003)(2950100002)(305945005)(5660300001)(8676002)(6916009)(81166006)(8656002)(110136004)(38730400002)(47776003)(50986999)(76176999)(104016004)(53936002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0301MB1286; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD048; 1:M2lUu8kaddAuTG84d59Mx/kVoEAqnHH5ayoTZpVxWj6WkD3D7Jc1qHstiK9c9q6xbbFozp3+rsRgsvc2YSbjO6bbCj8eZ1IGZ8LsaKcha4+USa3z2G0ARUwwFz/yZcguiEOv70PwRHFC/yZ5anROXiC30oy1pf/BTEwfVOMbwzje7dsnqEEOwpEiVzlmWmmXe627Ggr5+RlZ2skJRx/c/UIykMNPi7pnjAl2hppghqJsMPMh68VjMzcI1FF9cPav9+wCmampkgBCJZw08CY7n/D3gsIbf+/pVN7+FLxO+n6pRYFFL1a+MMLh+KNeUWe6k9ZnPtIdI7t0+rGakbrxVlafbjq6jYCiwvz7dr4j7N+LjsSsDTOFY10WHUDajgvoI8DOzm5fIkCk9MuSRkdNSksF4lmrib2CJjFHN04hdq8jqVPUyhoyWXIE+vmm7bUU9T8t8euDWdiIVtsu3H9CQAqIAbu5BH+ODgO0GVlmG80crBIOFesU1Mu/D4UNXNC+obp8Mv/lmypjLlzZPOC/u5wiKIoGqBRBM0ymnz1Zq9D2d2fkDz5pGUYeTGUttsQieKELzh/Yp8RXr40Mqrc2/g1lqfMoPlfoij7SEe9kxSXKm8hgywdzeKW88Y5H6mBdi3Ljr4m8I/yaCyUKcQ77IqvqgWpxK4A09vM6+ASPcwo= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: bd652c0d-dd1a-4a2c-110b-08d480e1a590 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255120)(201703131430075)(201703131517081); SRVR:BY1PR0301MB1286; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1286; 3:xegxMycQJ6TvWBtbaTpHXuAbLCEFbMLuRLelXOERGlX7EF7+TAv0scmtpCc/3t+4aVZE2IYFxyncAgn0Nlu7Xxuax1NetO8GeZrzCN6XCZUGYRMrj2R/4Cl38QwfamJdhEAxNxvdD3q3u5ps4BLC4Z0NOU7rA+Xt6sPy5gcqrPwz6XnkbRJccD4x/S2xjReh1XHbK7IqpWI2fDG5BPVYCo3Zhsuu+4XBpigfZJGy84SWgfB/qIcfO3RWQNOhme5pxa7GgYUqYw/Dn38+AbaWzubLStxveMDxAcP52V3LiNyW+vLkMUhS8wXng4y+kOWVwgVDsxGfzl3iQuFXpVD3efze0b1s88gD8267e7StFRE202bf2w9PiK8rpCST6rJFCPVyz/AWQHWQNfEetp3bJavNNZRkMYXWwQ+TTFlTUG6EmXexlpttdhmn+NH13xeWay83854FkrYa3Ha0Q8u39g== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1286; 25:cNFO0Ev4Q1vpK1+nJZuc23mntmyfR3U2ohZCfUz9Zgp/P5CX06+CjpXvQbqwSs/2B1QIqOSyjGWi5aahYDW7KSotyUaeOKZI2dlMLK5yWXyNF2wqFjRmR2SnhAzY5nIq+X627Jt4RJ1ZhisdATzK/mZcRzHRZVH5thli2qPoTHGzc28uhqNUVLhMC5/CmzcgaPQ/k14CzTExKWzUxmEG9v1VoUlcDkoZo42kW6XM2I8zv6wjkapdZ67aC01PdA+tkhj3loDgCNHSCE1DKi5MO9OlgsbTdFqkq3LOAgc9iGeCbMn/+iUat3RSCOfntgJMG6/5B9jj96TQuXKmxfdUPQoYO+gC6tpYek7wvK7MTKDypkpWFKTmD/WDrGz8F4wUyCNdmI7kSOfePRVuHPzDwhTH9DgoJYwU/ObnNDlKEH4wiansBVg+Zw/hlR9a+lkfd+wc6K0KK6gszo2UkjAyLQ==; 31:Sb/XbshmM3ZpAXzDS/ZtadSI703HNXV92I6NcbV96Xl/dWCWRmqjpu28UVAM3p2kiXeylbUbQnK7NcXHDij69NyzmDr8afupjBXGKH8QnGWe0fwO/O++7dATXiHwul4VxSsN2WsDVHBUU6pET814ky10eILN6dWrwi9CCuLC2kkjh6TfBfbn94/eH+q0U4FlJy9n8KNIcLYWh2sTH3bcw5msIcSO9pMEEe5+hFI+cRYk92a0YjeulvjB+cZl03Br2RyMZjxF1q0WTUeh6ce4nw== 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)(8121501046)(5005006)(13015025)(13024025)(13017025)(13023025)(13018025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259075)(20161123561025)(20161123556025); SRVR:BY1PR0301MB1286; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR0301MB1286; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1286; 4:FMnDDi6cQYjJlo5cEVp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OSqr5P81djvRmaUqyiFh2p; 24:KXCDsppph5Ux/OljgAR/+0o0l+9RYkbck8yMjrvSRtQLDG1H+ycL4eA6AygqvANhmpxkbegiim58RWmpCWdVpcR0dCeOD2mBehsaG8W4Dqo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1286; 7:c0E2cYXgAUfCnfIvG4A8OkDn04UUsyw7ZbZU7lQjG7AQMJSo3eQ1hg9+e8nLqOL1c+SWXtP6YcNyE3XmyrKR0hOFMGjjSTBohaVoZCXizv8jmz+WyhP/DQ80M+oWHokuNblnEC8Ngw/M/8dRK0xHr6qHe2TIasuZq+Oij0JVf/ukxr5R/Uf2WNvE9xK21AUTGj2M/eonE/PBCd5pZz/t+RUeyBpYO6h3YKMMBK8/YdbqsQ/QGisprIjzTbuwdMj0JzFs0gOKX+eXyMmKPQ/OOBsCRiFogGtXaqF8hJiOsAf0QFMRQZ8OZZyw+1nhSCVtRcejCJQcNUqG5avJN1WEyw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 13:49:59.8045 (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: BY1PR0301MB1286 Subject: [dpdk-dev] [PATCH v12 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: Tue, 11 Apr 2017 13:50:03 -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 829d1b9..0b3dd67 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; @@ -92,8 +97,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