From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0056.outbound.protection.outlook.com [104.47.33.56]) by dpdk.org (Postfix) with ESMTP id 3FDFB1B017 for ; Fri, 15 Dec 2017 13:40:33 +0100 (CET) Received: from BN6PR03CA0002.namprd03.prod.outlook.com (10.168.230.140) by MWHPR03MB2702.namprd03.prod.outlook.com (10.168.207.136) 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:40:31 +0000 Received: from BL2FFO11FD019.protection.gbl (2a01:111:f400:7c09::185) by BN6PR03CA0002.outlook.office365.com (2603:10b6:404:23::12) 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:40:31 +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 BL2FFO11FD019.mail.protection.outlook.com (10.173.161.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Fri, 15 Dec 2017 12:40:22 +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 vBFCeOFx004484; Fri, 15 Dec 2017 05:40:29 -0700 From: Sunil Kumar Kori To: CC: , Date: Fri, 15 Dec 2017 18:38:24 +0530 Message-ID: <20171215130828.14218-3-sunil.kori@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171215130828.14218-1-sunil.kori@nxp.com> References: <20171215130828.14218-1-sunil.kori@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131578152225028051; (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)(396003)(39860400002)(376002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(5660300001)(1076002)(86362001)(51416003)(48376002)(50466002)(97736004)(498600001)(76176011)(2950100002)(77096006)(6666003)(50226002)(6916009)(59450400001)(68736007)(8936002)(8656006)(104016004)(356003)(4326008)(47776003)(85426001)(2906002)(53936002)(8676002)(36756003)(81166006)(81156014)(106466001)(105606002)(305945005)(2351001)(54906003)(16586007)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2702; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD019; 1:/o5Gkv6D/TXgTnH5pfbfzZf3rvZzq16xp6FQ8HOvXCKh0Vw2Pf0+fxsKpByNWkuE0jl91VoSBUzbTMR8o4V3nmtNCVKJrIRf6v7JRBkUAdMfge7P9xDrzw7bmry5CL3W MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dde9fdc8-c623-483b-d672-08d543b90207 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:MWHPR03MB2702; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 3:OivhEP9vhbgpearjUWDS0VNtEJoHUZST1ztiMGjqqyxYUwlvuIQrZyZezceKnSr3oj9gJgxmFEHCD3guzePq9ITmBrALHRoApc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Newn4TWAOq14ONKhoJS6OAMXtLcQJGOc6zVJ9vLUE/gu45c/RZdjhC9uYzZFD+YVkr5Yqe6lJI0Ex/kDv3HW0KJbgOrKQXUc7FO5+8Kuu5DCUW2qW21/W1tDdcKen05W6bLG19v/mWhDMKyu2rq1J0kfwvqXjvbW+VBwHb84iy1PVueJlnY 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)(20161123563025)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011); SRVR:MWHPR03MB2702; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2702; X-Forefront-PRVS: 05220145DE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2702; 23:ynY2TbCI2Qz31wNZR70L5cAFNkVDtWxSlCoQZhdjr?= =?us-ascii?Q?LebDFjDEM+UQGP7yA7GZVuxyPPScWIU5KyWSBWu9xdNor0ZqTQCObskbY69R?= =?us-ascii?Q?0lSNVY1i6YIICSroTNzXAj0RcXxvbbMymeryVfj8YVD0Y2tSmKic7Oc4kL6V?= =?us-ascii?Q?N9eN38CeUp0ZLyJMD0dyLtlUA+dQuYqyq5V6On39TwbDdtoFHVXbfT5KC0qQ?= =?us-ascii?Q?0DjR0eLnv8YRFVeLD+STHddp54+F+b6pWh08SbEtFW8k2KAIbh7C06KPBw4N?= =?us-ascii?Q?TpQfPVOaWZI+ieAgB/1pePWmws1CK7fI7CW26l+pVqAekyNzCneDC8odj3cO?= =?us-ascii?Q?VADdzrnu3A5eD8sYO11cw2vj2T6wFtIjUyuaNmkm/NbbM5N3fv4MnyMM2AaS?= =?us-ascii?Q?LF4YdZnNb8MJxYQwo86EK5JWs/fGqiXT+X3o11pN57wyLXwSuoXPRYtvtrif?= =?us-ascii?Q?XZCWD584ALZcz6icWEQVrxJS8aJpLd4p/QNL68SXiZRex+3LS93xMamaNqKH?= =?us-ascii?Q?bFsE2JkEwrhVic46R3GCzyBg+F4FekpanyqQAkB1QH667gs/JOQ7uW0gbYjG?= =?us-ascii?Q?Qs2m7YnNobQQsRz2SIKcNAT58WCNf2RlIIb9ELVDeDRvOk0SEfoGG37iWOT0?= =?us-ascii?Q?4/xuOtQz0y13iXO05SkeikwGNLWonJRhQTdvrC3VDucsfcUJwS/8CFwx6Qtk?= =?us-ascii?Q?ZmvJsItjkJwF9XBrl/CvQ5h2ZjoL2hMq1S+cLEwAH06ehddMt884xSrmZmtn?= =?us-ascii?Q?OVN4YyrO/RhmlNLtLM/+zXr0p/5Q8c0eyhh0DvY5JhEnum88bOvSFFEPUzdX?= =?us-ascii?Q?N2QvnTV+oKSNo2djECQNU1CbF2ta/Lcp/XOtysn8MrrgnQJ6lmBXVCsQLam/?= =?us-ascii?Q?a5KMzbxzzu8ETyfMpgbdCigSRAHL3YiN9bxAHD70xskhdd4eDntf0PyvmYEc?= =?us-ascii?Q?mc98RpDFBN7lOHG153xfmCttwVETMn8E5z0ZEzNp2KEkBs1GvRKGb07TdbYg?= =?us-ascii?Q?HnnYoKn++0qu1FjVWdb4eRLt6qrh/8/SFEyvepykQwlkcZkNvfjxC4CludAq?= =?us-ascii?Q?jKGUOKnwOusBmenDTaFYjxcwcob4w5APUFqzs7yavXyrsGho9GM51fHf/lPH?= =?us-ascii?Q?VJzF7wiOV07YuCvjH/ZU495P8LZDAOf?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 6:81/FpOyFoz7kWLN/9DiysUGb5Iq0SfgvtMuU2xXvV5a4+JJU93LddBdQ6iRcuAu4AlwB4uUalivmS3UZvtdCFy7KA1f80NSHHFg4yDY6br/L9jJktP8TzpWACkMzDfzt15z/DFYbmED7aRSpzptOxpOh/ubW6zep7MgUixLHu0fAP4AQxl+8e1NVFEB0/EBQJRGU/LrUIXrRyLoIbGPbdYk+31I7ZrG24r2DwldDCFPUXJbgRjq7zSy+hkH6b/tB0afkiL4k4lInmjZksAKhNmwYUqPsoKasAvEa2f9N2Dhf4Wu0BrCrD9f2HbG0zIweA3zplK82pyx2Lvy4OUba48V+HwTO7yr4yKjF9T98qko=; 5:uEE+R7hi8P+rVB/VhoP3xDIw/f6Mt5VhkYMCPueFky73Zjtbm/XgXJRcD9YInMye+a8IpOteredoIR+BH2EAJVb8X8S9+P3Mnu2QtNOKTsk1pjEHzU9+skL+6ZAhTp/dSdGpsYPVTTlgvsKvy6oxlG2O2vvpUvfqO2Lews1XmhU=; 24:1TaTkLB/1Myr18McNZ5xKqtNjU3gIz8salTINO8GqGE1rSDoUcmo2pJxSATNKsxr2TJyIubejfJdK9G+naLfx6G+R7iqfQzqlQ2DqcsxuFo=; 7:jaydRK/syf/ZcWV4xjtiNXtDxzfVNlaZd4dmveI/GO8ZKiEIdOZf8EQ3WDPTDT210+x+Kk7Pa72Y/U+8H/578wZR1EPxM4VyYICdkq8T1c2LGLzA73PB5tezV++qYi5i1bk91q0ZZtr/YM27EMtK3XjpgymDjihGnyPxcf8JGaWVVFKtWcBtiS3NYWXaw83/ljg18cNoAT8i3Wj525otusK32Yj8XUEvscNovCZrvKobSHWbp81jH6qFtaZVuseg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2017 12:40:22.3156 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dde9fdc8-c623-483b-d672-08d543b90207 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: MWHPR03MB2702 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:40:33 -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