From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0076.outbound.protection.outlook.com [104.47.34.76]) by dpdk.org (Postfix) with ESMTP id 257491B014 for ; Fri, 15 Dec 2017 13:59:43 +0100 (CET) Received: from CY1PR03CA0020.namprd03.prod.outlook.com (10.174.128.30) by MWHPR03MB2703.namprd03.prod.outlook.com (10.168.207.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Fri, 15 Dec 2017 12:59:42 +0000 Received: from BL2FFO11FD029.protection.gbl (2a01:111:f400:7c09::156) by CY1PR03CA0020.outlook.office365.com (2603:10b6:600::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Fri, 15 Dec 2017 12:59:42 +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; 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 BL2FFO11FD029.mail.protection.outlook.com (10.173.160.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Fri, 15 Dec 2017 12:59:33 +0000 Received: from sunil-OptiPlex-790.ap.freescale.net (sunil-OptiPlex-790.ap.freescale.net [10.232.132.53]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBFCxZpM020705; Fri, 15 Dec 2017 05:59:40 -0700 From: Sunil Kumar Kori To: CC: , Date: Fri, 15 Dec 2017 18:29:29 +0530 Message-ID: <20171215125933.14302-3-sunil.kori@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171215125933.14302-1-sunil.kori@nxp.com> References: <20171215125933.14302-1-sunil.kori@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131578163733585811; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(7966004)(39380400002)(346002)(39860400002)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(97736004)(50466002)(6666003)(6916009)(2950100002)(8936002)(48376002)(77096006)(5660300001)(86362001)(8656006)(81166006)(81156014)(8676002)(68736007)(356003)(76176011)(51416003)(53936002)(4326008)(104016004)(59450400001)(36756003)(47776003)(1076002)(50226002)(2351001)(54906003)(498600001)(85426001)(316002)(105606002)(106466001)(16586007)(2906002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2703; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD029; 1:FMOyJ0l9NZ5/swglQIKdURDD3wIAMs0FZd/tTE08gk3QXOJx5YolFav8H6rpJ+tWwiL3fyMbeC/KnWB0NYh4lGtLyLqf8oJc+wbeQjIQjHA5X8T28IzJjcKKF/nfX4V7 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 351f736b-6ef7-4a19-df93-08d543bbb000 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:MWHPR03MB2703; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2703; 3:f4DgFpY3X+KYJycqkU7OBrcjRtv08xl9zJj56kUxTG+Y23A5erwjYxYVLQo2hXKfVCf964m46ear6omPLXtWUJivmGVpYHIMyhEN5H/Qz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oEwI1YiKYa2P2E+xREERgQcEuq/QNFocoUk9N+9/JD7N4n/68h+eoh1QPYv0fsD2T+iBi3kt5omAAMQytzVipRVl4UjFsj8SUvtsIqW/wmDwVHmxa1WdeYOqdjwLnyearDMOqCTM3MjW9JpAyltntFWKK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123565025)(20161123561025)(20161123556025)(20161123559100)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011); SRVR:MWHPR03MB2703; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2703; X-Forefront-PRVS: 05220145DE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2703; 23:erY00ek/dvNMG/b2O3V81/z+lSk5xEc0WWDMWNWBk?= =?us-ascii?Q?cMjLPtULWWDGLIpEGzz9DBBlT8JkXJAemG0NKCIQGxcVMbvyus7T2cD6nnFC?= =?us-ascii?Q?9h5B747c4KF+qWPaSvsVLQSYy5tlHBgQAUKuzIqtwxYPH6DXDQTXdTk59UFv?= =?us-ascii?Q?VDY5W4KReg916JQsJQZeqvjZclNA8PjXQeyID/8NM3sQjPLCgkxi0gasJewU?= =?us-ascii?Q?c3fCz7MdGTWhQiv+xI4if4KhgqGEVRjF1oxrWoK+WFbbcv01FaCNtB94e0g4?= =?us-ascii?Q?OeUeQIWd9l4n8K0jQzsO5x5icSr55Lsnr+u3Cey3gfV0qOv5DSopxxOZejCx?= =?us-ascii?Q?10971WXctf+LdzPIHf+AYkUrRZSB/CYV9iuoVrSca0yatBnsG3WZo+xv90ve?= =?us-ascii?Q?UUSzuDSjnzyTFA6BXlAfM/iF0oiCXy3/IVmNLO76EGL2/OgPbVa4ABsvd6uG?= =?us-ascii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kmJKbcljIwIMAPlunS72rqaDfq0cYa3rvdhmx6kEdcnRx8EzwNX5eDQyLWEgtimbk0RzEIxEQ7LLZSfALVJoMVs+TXumDz/f5gjS3uN0co4QIyBxIYg8dsQP8Tv98RWw/6+UJP96B2bCFY86b25OvIgMICrUDu480/dKLByoALYraPGvFo=; 5:4e3chuLu64bvK7OHVqO7H4j1znsTYVwh/hub7khfEwoOG6t7K72xSqjPejJRHUCSH1bS0LntZjoC/w8wCDoPoIebhiOZhxiznS282oRmeghOJTM9xAW+x+N4UjF/ddOm8zVj0nb9awdmhSxodZtZZdBsPez4Qyt+9ySDhVxMXkY=; 24:3Ah+WV11cKTtdLc4/Y/qGl2bE5lxUClSXDO5Iqdfj/1YBJUDv3XKAAT9IoNL2aWyM/JBLqUv2h+731pXU9SWdm8zzrHInBghnKtuahD2CkQ=; 7:j9nMVi41S0+zgSRX+EdFKz0t7iQqxkqgWkPdScW63AARIvcOJOLyiwCBsjKZKfiFl3BqRTRL6tNesFqkZUwFUF0JgzHLmPT5WqHXdNX0wCfAY6SzfbOL7HzlSA/oGqyMXnRathc27rJ4wQjwjd0UxAN1nbzu2nlLOpcWCf6eq5mwumwZK31WvypZtQGzdPV+inzHwqOyfVHzwl5srUmOXLE32WQZJCdfAJLmpgcEdlj7xbdWBRDrkY6OqkwGgNTi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2017 12:59:33.2025 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 351f736b-6ef7-4a19-df93-08d543bbb000 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: MWHPR03MB2703 Subject: [dpdk-dev] [PATCH 2/6] bus/dpaa: add dpaa eventdev dynamic 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, 15 Dec 2017 12:59:43 -0000 Signed-off-by: Sunil Kumar Kori --- drivers/bus/dpaa/dpaa_bus.c | 5 +++++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 1 + drivers/bus/dpaa/rte_dpaa_logs.h | 16 ++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 01b332a..60a1ad5 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -70,6 +70,7 @@ int dpaa_logtype_bus; int dpaa_logtype_mempool; int dpaa_logtype_pmd; +int dpaa_logtype_eventdev; struct rte_dpaa_bus rte_dpaa_bus; struct netcfg_info *dpaa_netcfg; @@ -562,4 +563,8 @@ dpaa_init_log(void) dpaa_logtype_pmd = rte_log_register("pmd.dpaa"); if (dpaa_logtype_pmd >= 0) rte_log_set_level(dpaa_logtype_pmd, RTE_LOG_NOTICE); + + dpaa_logtype_eventdev = rte_log_register("eventdev.dpaa"); + if (dpaa_logtype_eventdev >= 0) + rte_log_set_level(dpaa_logtype_eventdev, RTE_LOG_NOTICE); } diff --git a/drivers/bus/dpaa/rte_bus_dpaa_version.map b/drivers/bus/dpaa/rte_bus_dpaa_version.map index afc40bc..93cd118 100644 --- a/drivers/bus/dpaa/rte_bus_dpaa_version.map +++ b/drivers/bus/dpaa/rte_bus_dpaa_version.map @@ -68,6 +68,7 @@ DPDK_17.11 { DPDK_18.02 { global: + dpaa_logtype_eventdev; dpaa_svr_family; per_lcore_held_bufs; qm_channel_pool1; diff --git a/drivers/bus/dpaa/rte_dpaa_logs.h b/drivers/bus/dpaa/rte_dpaa_logs.h index 037c96b..f36aac1 100644 --- a/drivers/bus/dpaa/rte_dpaa_logs.h +++ b/drivers/bus/dpaa/rte_dpaa_logs.h @@ -38,6 +38,7 @@ extern int dpaa_logtype_bus; extern int dpaa_logtype_mempool; extern int dpaa_logtype_pmd; +extern int dpaa_logtype_eventdev; #define DPAA_BUS_LOG(level, fmt, args...) \ rte_log(RTE_LOG_ ## level, dpaa_logtype_bus, "%s(): " fmt "\n", \ @@ -100,6 +101,21 @@ extern int dpaa_logtype_pmd; #define DPAA_PMD_WARN(fmt, args...) \ DPAA_PMD_LOG(WARNING, fmt, ## args) +#define DPAA_EVENTDEV_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, dpaa_logtype_eventdev, "%s(): " fmt "\n", \ + __func__, ##args) + +#define EVENTDEV_INIT_FUNC_TRACE() DPAA_EVENTDEV_LOG(DEBUG, " >>") + +#define DPAA_EVENTDEV_DEBUG(fmt, args...) \ + DPAA_EVENTDEV_LOG(DEBUG, fmt, ## args) +#define DPAA_EVENTDEV_ERR(fmt, args...) \ + DPAA_EVENTDEV_LOG(ERR, fmt, ## args) +#define DPAA_EVENTDEV_INFO(fmt, args...) \ + DPAA_EVENTDEV_LOG(INFO, fmt, ## args) +#define DPAA_EVENTDEV_WARN(fmt, args...) \ + DPAA_EVENTDEV_LOG(WARNING, fmt, ## args) + /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA_DP_LOG(level, fmt, args...) \ RTE_LOG_DP(level, PMD, fmt, ## args) -- 2.9.3