From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0054.outbound.protection.outlook.com [104.47.36.54]) by dpdk.org (Postfix) with ESMTP id DFF5C12001 for ; Tue, 16 Jan 2018 12:43:12 +0100 (CET) Received: from BN6PR03CA0064.namprd03.prod.outlook.com (10.173.137.26) by CY4PR03MB2696.namprd03.prod.outlook.com (10.173.43.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 11:43:11 +0000 Received: from BN1AFFO11FD009.protection.gbl (2a01:111:f400:7c10::109) by BN6PR03CA0064.outlook.office365.com (2603:10b6:404:4c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Tue, 16 Jan 2018 11:43:11 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.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 BN1AFFO11FD009.mail.protection.outlook.com (10.58.52.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Tue, 16 Jan 2018 11:43:11 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0GBgtjN014705; Tue, 16 Jan 2018 04:43:08 -0700 From: Nipun Gupta To: CC: , , Date: Tue, 16 Jan 2018 23:27:56 +0530 Message-ID: <1516125485-28919-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516125485-28919-1-git-send-email-nipun.gupta@nxp.com> References: <20171215130828.14218-1-sunil.kori@nxp.com> <1516125485-28919-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131605765916339383; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39380400002)(39860400002)(376002)(346002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(6666003)(105606002)(2906002)(36756003)(8936002)(50466002)(48376002)(2950100002)(76176011)(6916009)(59450400001)(16586007)(54906003)(51416003)(97736004)(498600001)(305945005)(5660300001)(53936002)(316002)(81166006)(356003)(4326008)(2351001)(81156014)(104016004)(86362001)(8676002)(85426001)(8656006)(68736007)(50226002)(47776003)(106466001)(26005)(77096006)(296002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2696; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD009; 1:K3F3eiiGlhYTrsdOeUDkyAshKZX6IuMjqHEPy34SWrjRAgV0WElMhWDK3JsfiIoxOCM3hAOHPX0uKh+G2/gvpu6rwHeIPo0OxRmM1aay+ZKl6Y6UEmIXzijYs1oWWers MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3708e5ba-0254-4c06-2cb7-08d55cd6524d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:CY4PR03MB2696; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 3:3yMNSr1DQVI6HsS75t+VUhdzB6lirMUynr3Ovv8CShVjmNp4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ecW04EySWyRZcC8zDIxxGOgNYvNzXL3emDjyR28J2xr1NLrDp+OFrxpFvGfO7XXZ4CUmTNNM3JgzB8NWUkaTfDBqaSnCHLgzsiNNcFgN0CZeaCYwFnnDNgMsp+pt59oZaoja1mjae3iM4B/vwZudf9I62vAapNgz5P5+YRxpmdUl2/jT/YVxsrQllYYWgpKtZ1DNAgYQqhqvSVWcjkyIdUvS 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)(93006095)(93001095)(10201501046)(3231023)(944501161)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(20161123565025)(20161123561025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703151042153)(20161123559100)(201708071742011); SRVR:CY4PR03MB2696; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY4PR03MB2696; X-Forefront-PRVS: 0554B1F54F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2696; 23:D3UqiZYERcVrxca80N9+RQ5jseJacuHdEzVqRryB7?= =?us-ascii?Q?PEEzyI0JbphoSFHEvX1bsvPMuK9LU5/mbrAux1Of7fpUj9vUja1fTzDjH1a2?= =?us-ascii?Q?txDvyoi10lpj5GvDugh9kLWcT4e/NRAkRPNoQ2+RkFkkr3TPJE6U22FfV0P8?= =?us-ascii?Q?2rbi9Al8X7tMMhpEeFAZPzuYVyip5njfkFpkKAVc1UIm0MCI9DjvyqKfZxQ4?= =?us-ascii?Q?Y4mGXBLPqF9jJzzp6bLat1jMKXrg8eBY3+2Mrj+yEejIpTEZFXzhhf13LzMG?= =?us-ascii?Q?Ze9FFbw2rXzZQoqyuh/NuwMoqpcfgYnlGVpByfxJxWFLs1w4y1z6T+N/yF3q?= =?us-ascii?Q?TP/mZ1OY6BpuHuDSXbRBTezp3iAxz0KOAwecHIWSj6WPtTWdTf0Af4zD5zRX?= =?us-ascii?Q?s0mmSvForkT0UtA2D7wpBUbUpei7NQUgAogl4a23KB3/ttErAq30s+7FfmIy?= =?us-ascii?Q?dC44e27hcIgU6wdY1UpJc4eeubkbn+2VwOGLF+OiRjhKXbeJYgXrV55qgfM2?= =?us-ascii?Q?7K05vHCnr67K8GQHzC9Dqy6RwOm8NDGUHgmZd80KkfE3Znu/YKgNoTPuwGBq?= =?us-ascii?Q?Yz7NDQlFJ4U27+6SVQv0cQLHiEwAYMhbAfaRCRBXEQGXcNsOjXMWMPfO+esR?= =?us-ascii?Q?cJly/FYJ6n/hFUng0qcZo6O/ywf3XVj0W+Nz077g9Gx+GTHXLRd7yPRYTyMT?= =?us-ascii?Q?afWFer6XXBb03RXoBy69rP83WgJYTZFCEl7niMMbCtq1C+FZY47w/bqHQr/m?= =?us-ascii?Q?4A6n1I+/wl2dq36coLPix0NOWpmdaGoImhhR/wWBBYe3uqFML1lg7v/B8icg?= =?us-ascii?Q?ec5cJSxFM9yfj0Nr2xe1nV8DRIWZ7MSmamBLvq13N/FqI/oG+9aPZHisVpMM?= =?us-ascii?Q?Vym2hl9M6aE+x01haERypeyETPPhzSNsVLuniH9peKW9h35RBwjvavJAi2Ca?= =?us-ascii?Q?0R8U++cqfjWo4X58cmEyeanYTva/pgw0RmL0RnkKL9b7cL7/gKBBVi6iVb3H?= =?us-ascii?Q?zMsXyt3Mu/L68BlZ6NZ8ZE9YSK1zzErn8BxcZuQPE8scDn3cypflCcl/5MWE?= =?us-ascii?Q?fbGA73CoVD2c+CT1RhYDjRRldb1Ac73xlPvcHELx2aGGp71ZIyycmz/UMQmx?= =?us-ascii?Q?pKZ1FTdx/4=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2696; 6:+UUvIATrec8rPUrCe90CgHFY9crXkk6BZFifxK7JEGLjPuaYAmrJ/tzeYRPBhLTctWL8VXAKsqyJJRT3ZMyWLQ8NJPv1nIDktTI/1hqPklzPvtNJ0/JBgqrlfzFGS0FmJhnWuMRud8ysn0kr1o6DII+Uuti1Z6yqtmqV5oWW49sg7A05p3fmLQBSMRYYtiUD25oWm4m4rgriGOaitBz4Uv9WJAC1PLpnuycdvKpi9B71JmdHpaTTQx4UvwaDCMnE5g74qkjJh2RVZG7kkTW2zoHD860kxXpsOzF9+sGLFHHzGjpDfl0xqSDXPR0AmqmVfEci7T8QIoIHiTFkVpQI2GmW2NOoXlXR1N6rsI+c+ms=; 5:Bv/7SIp1hyWp3p49UtRR0mEH7TwJsJ41jq+id6S6TzUVaVIHxHOWsljsH/5qeNkgowsY/o5QY8oxXmrsExMQqRpsYjad3mJH+Ku4/nNdgbUyEHXaO0hq+QIuOutotOJW+2j8ojlDHlAImP+DIUqBJyLsCXN09MD3YHQFL/0qyDQ=; 24:uVoiGW+m0Knzoiwxun3p69wkTSoV2xJTNIB8hACbY8sQnntUO47ilxdL8lMuxDr0rT2hfUxkUbOEQSwbsJvQGxIml5OiaE4GAbR2K6t8ilA=; 7:+X2Bs3L7f+VCOv13StNZY/KcFFnccI+RhtUKGe8V6iben5V/ibEIUZmyBZ47eVVBPhSimzPnf2b9lFWzhy5QfSSX4wn6hKhR9h7GsriZeRlFDQcjze+zizUe7u7OUSceMg6+86LCr5ma1ZdDgzxu3S0kv4D7YS4lRfQHS/MVzKrFfz0/pfk2Oa5nLqv/4VoMf+8du7HasuMvMErdWo97WXuZ6vU54N8KO+/v5c3/C9ss8PXZBn+3MI36yeR+y4al SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 11:43:11.4623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3708e5ba-0254-4c06-2cb7-08d55cd6524d 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: CY4PR03MB2696 Subject: [dpdk-dev] [PATCH 03/12 v3] 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: Tue, 16 Jan 2018 11:43:13 -0000 From: Sunil Kumar Kori Signed-off-by: Sunil Kumar Kori Acked-by: Hemant Agrawal --- 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 78d60be..4c2854f 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -44,6 +44,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; @@ -536,4 +537,8 @@ struct rte_dpaa_bus rte_dpaa_bus = { 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 f5c291f..925cf91 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 5429864..0fd70bb 100644 --- a/drivers/bus/dpaa/rte_dpaa_logs.h +++ b/drivers/bus/dpaa/rte_dpaa_logs.h @@ -12,6 +12,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", \ @@ -74,6 +75,21 @@ #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) -- 1.9.1