From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0058.outbound.protection.outlook.com [104.47.40.58]) by dpdk.org (Postfix) with ESMTP id CBE981B3F9 for ; Fri, 22 Dec 2017 16:17:39 +0100 (CET) Received: from BN6PR03CA0066.namprd03.prod.outlook.com (2603:10b6:404:4c::28) by SN2PR03MB2366.namprd03.prod.outlook.com (2603:10b6:804:e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Fri, 22 Dec 2017 15:17:38 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::113) by BN6PR03CA0066.outlook.office365.com (2603:10b6:404:4c::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Fri, 22 Dec 2017 15:17:38 +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 BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Fri, 22 Dec 2017 15:17:23 +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 vBMFHVeu024113; Fri, 22 Dec 2017 08:17:36 -0700 From: Sunil Kumar Kori To: CC: , Date: Fri, 22 Dec 2017 20:47:16 +0530 Message-ID: <20171222151725.11273-3-sunil.kori@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171222151725.11273-1-sunil.kori@nxp.com> References: <20171215130828.14218-7-sunil.kori@nxp.com> <20171222151725.11273-1-sunil.kori@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131584294432457858; (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)(39860400002)(376002)(346002)(39380400002)(396003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(59450400001)(2351001)(50226002)(50466002)(1076002)(48376002)(36756003)(85426001)(356003)(105606002)(76176011)(498600001)(86362001)(305945005)(51416003)(8656006)(106466001)(77096006)(4326008)(97736004)(54906003)(8936002)(5660300001)(104016004)(81166006)(81156014)(16586007)(8676002)(68736007)(6916009)(316002)(6666003)(2906002)(2950100002)(53936002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2366; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD021; 1:ydmLntV7513MOppfXjQgYBaZC/2RFlKmDeNty5io/qf7AxEA97gelBpk0HAAbslOBTDAY/ts7GlsJOhgX8SjbZXkWaY2nvfRr+kdcL6GyYuRl05S4PCaJFNK8tqHNscC MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38bdf7cd-2517-45aa-c482-08d5494f1a21 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:SN2PR03MB2366; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 3:L/79EF5V9kun7IZcBkHQlahaI6hQEH9Ws4UEhOe/zYy59ZkEyJujaQyaZ/FuxXlu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BBznAfIfc0wsuEYIrfLz4ChiZFLwN4BHl7CsEGthN4RowD2i1cgTJq1PfI/8DUnDh2donDPfH5zcXZCzQVoc8Zk77/s4zfrF0N/jWcVXtvJfZniWGCk57D8eqTpZDJb+lLD+OsGo3Xn+o0e1KUX/iPBlIBcT+WX/bc68G7uRlsdLt8KMEKBy8SHeqcffqtiUN9nuiElTIQLCxDfzO5w 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)(3231023)(93006095)(93001095)(3002001)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123561025)(20161123559100)(20161123556025)(20161123565025)(20161123563025)(201708071742011); SRVR:SN2PR03MB2366; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:SN2PR03MB2366; X-Forefront-PRVS: 05299D545B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2366; 23:v2Q4LhNAFI0ffRdbPtLbBU/lgMIHclx9Te/o1xprZ?= =?us-ascii?Q?3u81//PYXSpt2fPdfRQNxywLUfXwwoJt88D1W4hpjXrN6UAqTM+yPeFXitnP?= =?us-ascii?Q?2SAUsH+fHW3v5lXJLPvQs1Q8z40YhglzBWcyytNcCSwzzFqtAdw/XMLpZdMV?= =?us-ascii?Q?Y9zDDw19cs10M0WEJGnCf7nSm7UgqilLG84SgdgtTZXH5W+erweKhBCXdXST?= =?us-ascii?Q?p0y5jCBxugUjvKHzPsQJPsowbdmyZTXu8VJ/nPv+ebzFlmisL8W1rFKF7dNg?= =?us-ascii?Q?zm6hj5ptZR5EoolooVMaXNTnpTFXjV7CvrN3M66baLujL3H13nzecOo+B7V7?= =?us-ascii?Q?HYP04NqlvPXGoI02esWDwhg6/ozfpflMQsOffiWu7hhEGIKMIEqFZq97xZqI?= =?us-ascii?Q?p4zVCJ8iznVYaho/ckTkDrN7YNdmZTsEuyc7pWB53VsnTQwlI9TVasoT1vMh?= =?us-ascii?Q?TjzZNq5jarvpl+ARCu6eBJgX1XCFn4/f+2lAeN6eBejewK4Dg4WMAinnhTfo?= =?us-ascii?Q?0aQVzzgAB4jr25l4GkE/au8Doio1JrFaRIb9+GkqTGERmVaxM9V8iGGnfY87?= =?us-ascii?Q?Z5I20BZKCCk0Nj57N4PFjUNZQTVqG1mEBQOp2D9YNkCXsIDiemIF+5jBd0BX?= =?us-ascii?Q?goF3Jen2aYhTUkHNM1235AaJiRiQ/wE+l5GwPL6RA1gl2WCF805suS80ITHY?= =?us-ascii?Q?fgrPKqK7EnhwzG0VT1rFuxcuBp3o4aPSXEBTRM3kP3BHc7aVLEF3m5USVX7w?= =?us-ascii?Q?RblWQfK+oewPBTvirCxuZ3ZeIUHSW7MckH915AYrNy2pl7JZtNGb2nTaEkq5?= =?us-ascii?Q?rALgNl4BMx7hZGLbm5al4gjTlog7nGKWfpW9nEzS/OAKj+vQgqrmEaCBWmAX?= =?us-ascii?Q?8x7GNzV1TKa74dGZIbSl5T7XqeBhdElN4egL1gFL633TDjrAiCc35AbX2WsR?= =?us-ascii?Q?Eqx39F0frN/8qjQgsibTd030V601wC5/oDM+0pf2U0Wx3vCqH2khCwPLFTfL?= =?us-ascii?Q?ZEKgRC+0CAwDYktjoubHL7b698Ybj5pINZf9dnn7plHfJ7JZTK2G0B9fQIRO?= =?us-ascii?Q?NK8BeS/jAV6l64j+HIOWz5puXNddZXcZGcI5NpMeUxt8vBd1J9viFkPqukMH?= =?us-ascii?Q?0hfUvceXZU=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2366; 6:pgNpGxEjxM+bSHbHQ4XFENXK9T3RnvS4ZodcO8VcV7VAY7CtU8DsZrH5Zl+CLD0v1HfO29oKEKDOZ1B8bbzgKAcz3uG2OiH6E7xT89hpRMa525ZVjpwr6YyCdYePY7EzMYAA0tKN/B71gGd6HnF+ixVpyztXiY/QF58snintXZv73FeSqQSTXx1sQAhUl1ydO3syRhIarNuzeKEnKjXpgJM7igihSKrjwBX/+fP6DQ1657Dcai/fezS2sVDSi7WuRlUebhFjItpaUdpRF/MsXkVOAgz/ApK3SgbqBpmiGk0fcBRK2WwPAZucWz5636ExQ3NrPv6Gv8xeR3337V/mTle9hoHqMBRQt/79ervmyWs=; 5:nJtVtxNBV6M+VAwB4lrALrMxvSwDxrdRpyEqW1yZrUphgUz4Xa3ep5oFv8eOBDO28F4rl+aixc8q9l6W7l5JxpFRHBh0iWLPlRE1JKatwdt8k4Uioeq9u8kmC94y1BB2pKJBucygN6zY2K2PRuTTWrQwYAgJ58Depx6FOYWsUUc=; 24:QsIFk2JImet/0Se1z8/n0z4J8rjcqeT6vHAVcFWwSa6CUvEFDI2xWHxpGKtGp+ulP4osfwbEQjveCdbizq58NZioM3nhaKHwE+v0+shTBhE=; 7:85vSV3CqhZrkDRF8ZDbp5JAiNZI/7a9FdMQvOoMx4iLeqmM1c7Sl7Ba30Si/B/rMFupDvpD33eBCeqeCZSv6ofODkh4PaRJYM+YnLaK8gt9IHXP0C4wKqvJySS+Q0OFft9LpWFtzjXJamlxwQrqO0uu4IPVYjIPxoob62l05odzRkYzNxKoMZV1MKyCWz2yHydLYgX+TPpYXbBNJ8r67h4bM6JaK6DTme2tuzfiKJRPDR13OpGokwWeks1ldMcRq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 15:17:23.0741 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38bdf7cd-2517-45aa-c482-08d5494f1a21 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: SN2PR03MB2366 Subject: [dpdk-dev] [PATCH v2 03/12] 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, 22 Dec 2017 15:17:40 -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