From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0079.outbound.protection.outlook.com [104.47.34.79]) by dpdk.org (Postfix) with ESMTP id 2D3451B021 for ; Tue, 16 Jan 2018 15:29:08 +0100 (CET) Received: from CY1PR03CA0039.namprd03.prod.outlook.com (10.174.128.49) 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.407.7; Tue, 16 Jan 2018 14:29:06 +0000 Received: from BN1BFFO11FD013.protection.gbl (2a01:111:f400:7c10::1:109) by CY1PR03CA0039.outlook.office365.com (2603:10b6:600::49) 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 14:29:06 +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 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.20.345.12 via Frontend Transport; Tue, 16 Jan 2018 14:29:06 +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 w0GESqAE024963; Tue, 16 Jan 2018 07:29:03 -0700 From: Nipun Gupta To: CC: , , Date: Wed, 17 Jan 2018 02:13:56 +0530 Message-ID: <1516135443-10509-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516135443-10509-1-git-send-email-nipun.gupta@nxp.com> References: <20171215130828.14218-1-sunil.kori@nxp.com> <1516135443-10509-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131605865464893239; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(346002)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(105606002)(85426001)(50226002)(77096006)(8936002)(47776003)(356003)(296002)(305945005)(316002)(59450400001)(8656006)(97736004)(26005)(16586007)(54906003)(86362001)(2950100002)(6666003)(36756003)(51416003)(5660300001)(104016004)(76176011)(48376002)(50466002)(4326008)(53936002)(8676002)(81156014)(81166006)(68736007)(2351001)(2906002)(106466001)(498600001)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2703; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD013; 1:ltn2lWjghR92+3DGCp9j0zETt3DbIWS4w6eB+WdNX0PxxbDTy48yjlyhnozEyj8qVyAfgmSJL5I2B2MSU/KaS2r3HXFwtqMBUZpZYmH8hpUYtg66IGTtLuwmsIIh2VUq MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8affa7c0-972f-4eaa-8f37-08d55ced7fdb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2703; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2703; 3:hf9SNz6cYwIyEjTw9ztyzsDPg+ptmCylwS6V6c5njrRWNSy7gP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iUUChQxa/5nD/DWErTjRBsjNGtyvdEf4C6Ts3BbJ2pYLZ5KLGFSujF8VtDQ8GqnbgcGX3bX2rRl7opeOcmYvQHUlCDJD1bY5w4ijcFdHQW7AM0F3XoFDZ23D/Zml95SEBNJmcT8b8ahYg7dREBVDdxqBS1PKYp0H9Fwui/fb84Y08YYsQhVyCp0ZNcelTM65Q3Gc+Ru3L4b+30b/YJi2yydO 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)(10201501046)(93006095)(93001095)(3231023)(944501161)(3002001)(6055026)(6096035)(20161123556025)(20161123565025)(20161123561025)(20161123563025)(20161123559100)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703151042153)(201708071742011); SRVR:MWHPR03MB2703; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2703; X-Forefront-PRVS: 0554B1F54F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2703; 23:2gmnUz17Xx8cpa7bdcxWnFgKeqaBZLfhNDIyNioDq?= =?us-ascii?Q?r/KtY5s78Bg0m9vuM3BQ8qTbXda5frBJP3Ot/nz8lG5S6hX+VQO6ZyczBTwE?= =?us-ascii?Q?33QLDBhX1WpRBepVVxXDpFzvNLmwG3FKW4yD5nS6OzhXqR1Ds2bEn2mW3c2B?= =?us-ascii?Q?lNuCeR/KqYCEhdv/6o1DucY9Qq0qFbZIFF3xwJid+uu8HyksziD2Gqkh48GW?= =?us-ascii?Q?quyLfSUBOMmT0h2DsTvM+w+t6JUCqJF+FRQ+ET7b7SsWexfv03iSHiKPNyq2?= =?us-ascii?Q?uhd8mr472JDgi1J8G11FWSFZNiAwQBulJk+PeCDkzFfTDt+QaF5AtIkj3k5d?= =?us-ascii?Q?br0DZB3B19+ZQ4OFneYXSYzL5cKtKLUdd7N1nEnNvL2vbeQ9hcjfi3doizza?= =?us-ascii?Q?dzavcYaUZfL2tHo92fgP820FNVXljWiqF+C2n5ppTf+Jp8jjx2FtO2ARac7s?= =?us-ascii?Q?wrrKDGwah3nMAwLGT4va/hBID/rd5Tbws0v3K5KkMj2yEaonI19deE3ajrlW?= =?us-ascii?Q?EasPSAsks+v/zx4y91aH8R4kEDpBD5jMjDdWh/vSkyTeEzchAxyoeCVLECJM?= =?us-ascii?Q?ZGAOcgOgx0/joqg/D/9Z5QsiarXONjueIK38vdDgoahzWByxakYwnEybK9nu?= =?us-ascii?Q?wzYfZHGah6yOxaIesvk2AaYI9ghm36I4F+rwiXNAo0B5uPraSWK4+vWCOKCj?= =?us-ascii?Q?h2VdilCaMMS29j9oY23MIuBg/eSddbQHvZhGJF7r+QZOfdcJmohakrwcew0q?= =?us-ascii?Q?T8qBz00cuk9nh/7uQ52Ly8VVlUev+IebcixQ1MFy32XS35F6L0nfR21tHTQC?= =?us-ascii?Q?uHuoUkSxdlU1zPHT8oK9F875xWhpdWThzmnZTmXYlYuNpk7fL6AtF2A01ppx?= =?us-ascii?Q?Wdeqz2hX0kRZ1pO2vccPu82ZAmi5calXv8plWCA7U+KAj4eCrvltsEN0sRZe?= =?us-ascii?Q?UlCZrq/hcWVCO62RPkVDg2dkrubWzrBOX3Q835bNjBfCM4Gg+GE4/v2+qxhc?= =?us-ascii?Q?N7Kmy/xP1d5WYTQC+Vq2mC0zpOrTE59kqAYOXJgqqycV27uzxuK6Y1kUivF3?= =?us-ascii?Q?TvNPgymrpjPfl2a74KKCPSDDX0WhoGcirfyJMsTvXHjbsnLhMYYD55YnDXxP?= =?us-ascii?Q?7JwyA+WGqw=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2703; 6:VbEkocjxHp8x4v2R/abq8OqVQ/Xua5TClix1eJAh5wn6gSR53st7AvLWDatUsb9XYKEOUA0jczguGetdKlJm5Y/yD22k9etImcVdK4I/XvtBmzLtF7uqVtLbxykogVZNve9WfpSKjQOl9BgQvvFSQ5HLjP2qk9xx/55a4yPbY0LDuy52w9hKfMP4KEwaxqSS9aNXM9ShP3DF6P3UhvpCb/fRfBhR0twVdU27rN+Q4PMKoGzCA55j9r85oFrN8Uw1t9R4yHa5gO8JRJB7ceL8sdCbwA+z43FSqziThitfFStxptmT4J1VL7mlJExILjoaGZHTox3PehCeURlbh7IbrirGXW1Qm6qhLNJhs7dl9xg=; 5:Hf35HCDA2cXbk8Uit+LLISjGR0+QcwrIns1kQrkz7kLURBpF28wBkRZ7H6vTBTdM6eBju3iMOX6DqCgn/5Of4re6CnEpS8cjF2egdYPdHNMNnBIstE8trseEl+dMc3QIdb0lbrgH0FQQdUlD+t/zgExB5U2XZwvHdWkgaKQElpE=; 24:/jQgmWvMjE+iLfeM2fjeFfbhogHntZqCO+fprjz0nJ13JXc5IWWLtDZyvRRYIS/TAWsdXS8jaR501v4k+9SlQ2mAnenPErumB+NynPY/sjE=; 7:khP82GXDT2OIbg0Mc87++hAxwqCq+Rye6d0KgwNrYGnvCfNbZbcRbM4B3fmK6wX38RsHNM6DbVBgdANrRy5nMDUHZJ7Zf3mwcKKxFG1Tut4PZm1eIZ50/OCv/sXI6SxjZI1AwGg1FGrDH4Gdqx9uBwKIhEbtKvKEG2Tsk5F5bwr+Hr0oagNIxgIL+w5S5BkWWCzwfp03C/Xdd1tNlf1JN8fxdZN2xkvESNW9HsmRPQNGBEPhcMxh0gRuDaRlUajr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 14:29:06.3177 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8affa7c0-972f-4eaa-8f37-08d55ced7fdb 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 03/10 v4] 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 14:29:08 -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