From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0071.outbound.protection.outlook.com [104.47.41.71]) by dpdk.org (Postfix) with ESMTP id 0939269C6 for ; Sun, 9 Apr 2017 09:48:45 +0200 (CEST) Received: from BN6PR03CA0011.namprd03.prod.outlook.com (10.168.230.149) by BY2PR03MB393.namprd03.prod.outlook.com (10.141.141.12) 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 07:48:43 +0000 Received: from BN1BFFO11FD013.protection.gbl (2a01:111:f400:7c10::1:197) by BN6PR03CA0011.outlook.office365.com (2603:10b6:404:23::21) 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 07:48:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.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 BN1BFFO11FD013.mail.protection.outlook.com (10.58.144.76) 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 07:48:42 +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 v397mBLT024015; Sun, 9 Apr 2017 00:48:39 -0700 From: Hemant Agrawal To: , CC: , , Date: Sun, 9 Apr 2017 13:20:13 +0530 Message-ID: <1491724224-6319-11-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491724224-6319-1-git-send-email-hemant.agrawal@nxp.com> References: <1489754838-1455-1-git-send-email-hemant.agrawal@nxp.com> <1491724224-6319-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131361977227930297; (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)(39840400002)(39850400002)(39860400002)(39410400002)(39400400002)(39450400003)(2980300002)(1110001)(1109001)(3190300001)(339900001)(189002)(199003)(9170700003)(5660300001)(33646002)(356003)(2906002)(36756003)(8936002)(50226002)(8676002)(105606002)(106466001)(85426001)(38730400002)(104016004)(189998001)(81166006)(77096006)(4326008)(2950100002)(6666003)(47776003)(54906002)(53936002)(86362001)(305945005)(5003940100001)(50466002)(48376002)(8656002)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB393; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD013; 1:8pd8cab5/YEZaQXPBUydWbWcY/lS7nYTb1IwJg/vqvWFPqmvUH/7hiRBSQ3g3BouY4P+9Bot3zWpMC11nhNm6D4lRANtJRq3ALVVH9hG2Up8hj4vaxWYGddC3EqkhpUPE7DjxpCTj8e/KxwIhRLmEHKvFIl6rvZtE+g3/Ul20XFFzJv5POx3wKrDe3OT7bDMW2BwoU2K/0RM2D57qhnsnCYDzeqREm7z6d0SETEVVnZtPe0Zm2mX+1jNrLo72dEpivM/inhA7oozR1Ms5S8+nHUVsWPfJJPH+ubxBhVNx+Tx32vz8tZWJOOa0iV4ahHEGfXEynrKrvp+INxlg//nj+Qskw/Js0wJszvYmC+g9SIxiCFMHR/dPetUi0Nw4Rq4Ixe06Dbq918uTVBHPlmlr36h/h+xf0ZTqNlxzCy2FrxoMY30ZoqCKmsTpWImiXL1+wNn3cuFfdoyNfz6hwc3Zz2Edblb24H7gvCmL33X0qZ0yzwvTz74102FefKIhVM3b8BXqSN3FeYcetZFiC+fV47rFvVyIaLU20juorE1KKwc3zo853+bslpMI2MjA8DnAvAMhNv3jweHzgllPkH0M0a4fP3JB7EfhpR347xWxJs4T2Q47syD4C3Z0YzzvuhtE8wUovV613m6NDmOMOg+anPs4ukeCadTgPkrjuiFuZmDymDBfrz00Jl0HId6DOZ1 MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 43e22be6-6ebb-4327-895a-08d47f1cd81e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR03MB393; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB393; 3:XAuP/uSm9HVk7liQ7nkNbS1IMBG1nv/JKtS+xFblPtUjCTXu8VI+aLjWPuXuDPSUcmCt2qhQINnlE958jRYIftbt3sP/8IWvo7ziCI6/vfG1Buh31ReIwYQOZji9Q16WDp/7onT2jr7OC/o/m/E5dpZTf54Vt5EHM/ndVCV04iN7w4CJ1QAXCaJ3jfs8LrY09i6YxIPdcl2rBZeKQyjpejDDEZuca2wScGzD3mJ9mMh/ogdgGihoEuaxIyDFXg2aEDUkfY3sUO/IPyUW4Zu2K2R5eW+DYe15t7yTNhHMq6YBxBvyrVtegSjpkUIdvhTg9i7yFJTzCqsPyiDwkXb/7ahReS1/b/Hs+i98nvN2VVVodf89WkSlcIxZgioBBa8k8N5AYG0ZvlFYr6gm9vNE6ie4i8kCcPrEmTXgE2KBsTQ/iqy7QQnBBITJ46zvb/kV; 25:NzvEYhokeFuD2N9TS6a7DFAlyrCa0YLMuf9n2N2UrL5lpDxVwhwHcj5MCCt9lC7OiH8/I47xZ75ib3QMMsdtrzYR1DQJGa8HQzKM5hnAbUH3oLS5QMVcxXpNjTXuXaoCY1oiNl2CF/LVU8eoj++YRR77uullslc2JK9Ufm8zHMbdOQLra3OCmqBwV47l9OEk4hkCKp5diYPJwJp1tGGM8bYpW0g1Ue5E6bjwizNUi4WykoXvYIEcZ4h4Pnm3gQyTSxs/X+O7xReapgdg4Ih0i/87sRvwwNgA5p63UXlLYH+cDNIVKDrGzx09iW4UmjWzqOKViSfOzk+iSCrIrfriY0lBjQZdjbiMJ6oP3IXx3H+Vx2rnzHa5HIkKIKLdcc0BoL/dGMdJ+4DDM//wOl9z/Y0IfIDaGtj5UaPkHKkkWcfGVXbh2JTzJ81ehnPKa1aYEOvrXBWDqFWT192VP2p+xQ== X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB393; 31:HFRSI6l5n+QVeSPmf8iaXUUpGy35qAoEBvx0PMNogzjIetFTUW53P4G30C7D3a/6CnLEozx490GBba+P+n1WjvvWO48okWw3x53MiLaVhu9b/Sb7wUcCeiEyLyVWZ+I5Mzff2ApVMSg+swUMGCNY5LYr+MZs678g+TUx/NhR6/X3AvLrGAFoDiWsadOfXEcHIRqgjgve3/DuNKNdssq8LesSSntjY8JV7QicwxuQHuM3v8+ugWyMZD1q4pzJuc04mHCvDo9LYrIYbsz5ZBh17srjPFrOaNrwKKYqLXIfzyo= 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)(13017025)(13015025)(13018025)(13024025)(13023025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123561025)(20161123565025); SRVR:BY2PR03MB393; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB393; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB393; 4:f7n5ziN8pkIt93jqcW2axLRyJP5qWB7+bcJNOh0XK4WyIHWi8XO/I9l+ta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DiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB393; 7:Ao5CrwG0lyjAXjGKOFZRD5FQeEij8YugmX2WH2qU+xaSomcnXqPIBvAAYsZN7eELH4gkYIM24QJ0f4Xn5uU0DKISkI/KP2YHTjsBfMjL0I4SSZSSuvOdjKRgKrYPm54R0xcsWAAVoFC+pD1d5eAeAmp3WR15mX3sBP4epj3k+NaZ8Zs9ViUcSgpsPCc6ieNFZbTSXs41yCHf/B+/mlnOrG98t8AMqKz5F39bs0qV9PgNjsh4DDO8JOniF4LDTOwZYA8NxenGbaMDQiaLQh6Zf0QSp24scfYGr0JgvSGqMzcOfATiiuB/b0Cy2lEcU2NTtqxME/WELc5J8TJDpMyVDw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2017 07:48:42.5902 (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: BY2PR03MB393 Subject: [dpdk-dev] [PATCH v3 10/21] bus/fslmc: 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 07:48:47 -0000 Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_logs.h | 76 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 drivers/bus/fslmc/fslmc_logs.h diff --git a/drivers/bus/fslmc/fslmc_logs.h b/drivers/bus/fslmc/fslmc_logs.h new file mode 100644 index 0000000..a890e6c --- /dev/null +++ b/drivers/bus/fslmc/fslmc_logs.h @@ -0,0 +1,76 @@ +/*- + * BSD LICENSE + * + * 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 NXP 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 _FSLMC_LOGS_H_ +#define _FSLMC_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 /* _FSLMC_LOGS_H_ */ -- 2.1.4