From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0079.outbound.protection.outlook.com [104.47.36.79]) by dpdk.org (Postfix) with ESMTP id BA97737A2 for ; Sat, 9 Dec 2017 14:24:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=t1rQBpZxW9ocw55Nx/u+C6I69XqWYnP+HzW3cGzUnNk=; b=R0/+UFBEeiaZhVQ7Zb7CmWppb3U945dBiwH51hLis8foDzt37lS8T/BxlqT4WpDw8wVbrDluUxrb12yXteVga0jDrLsDUlVv/fmyq2N02nrRb+hqx4ZMaIbvf1IfRRYvUWhT1dJqC8J/5Xdr2Bu7m8E/fuUC6sSkGtSKXbiZeXQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (103.16.71.47) by BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Sat, 9 Dec 2017 13:24:42 +0000 From: Pavan Nikhilesh To: ferruh.yigit@intel.com, olivier.matz@6wind.com, thomas@monjalon.net Cc: dev@dpdk.org, Pavan Nikhilesh Date: Sat, 9 Dec 2017 18:53:56 +0530 Message-Id: <20171209132358.24263-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171122092806.17194-1-pbhagavatula@caviumnetworks.com> References: <20171122092806.17194-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: SG2PR0601CA0013.apcprd06.prod.outlook.com (10.170.128.23) To BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d25ea139-ca13-4f13-84e7-08d53f083666 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:BN6PR07MB3460; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 3:Q5+AxNcbHPCJ2+FDhO9juj8fKDxUid/h5zYqOYUATuvX0JPKhjNznCUPP9Q3+lU5ju41OPNXWkR0HbPpIL7kaHa8kEZ27on+iUNBT6UFvvxAkY1wT5ZwtiS+OkkfKzsalaSAKwBWRdaXJCzkhY+hPzFpPHG5zCStkn+lVAVheyV9pWb/ubTjG/9jy0s84astX1QkWLXpagvppwxnGEgbsFCsti39W3gu9QeN3afmMnwj6siBPchQgGsU1ZymJ3c+; 25:coUJobYeorXLA9nbMPprRU9qRVNPLir5kHdFKZfZdXQhgtH/KMFp4Okwbc5t4QbxUO6D4N95ilvspWGGpsvoXt4UG6we0Tf93IUH/woyJehmqGwI/oPYYcW9DzJxZ2Ly2tb1NxmhPruNwps3YHxgOgdjXcqOdxLFiip8MJH5atO6Z9I1+J2q2YUdCAcLB3v+361JbIg/iGmoVNRUghpYmkq94eQ6hQtNdIX1PkoCGZN/ZphnOp+MsE+R4CKVniNx4YGKCghqUNGUA13gUktNg/9GPapdMYTziYRaeexzQfjIUHrU+60pNdq4N6wEPGTrhcMFxMasf8v9mdjRvT8ZAA==; 31:dX0yZCkZ4MDaDi63AoVHAui1cxk2GDnj2+eERxTzR2QzymgRwy8qnC+c/EqvihTJl7n7aDEG1lmC5FqmhMRUzfUzmqwHnfyI4Q3Tagmu4RNZZ5SX1N7k/a9NIVLbhc41q1ljkhyL4If3TN0QmJ4bqBcbiEsMZj5yg3RniY4jhadjP7VABJ05n2nZn54l2sG4alyvkN0ca2a4+lviJQNEjeShr2uQsvyIhQh4x5QgNzI= X-MS-TrafficTypeDiagnostic: BN6PR07MB3460: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 20:mxK56JnlcrZykltxmx5RZhTN7mvix5oGoyVyVMIBOdVtszLRXG8JFdyhxirgRyCezd/coBNJLEYDZ1n7yyQFWZJitXqEOlLJARIniWM4zRilfjFnR9IEFUOPsEpHgLzcYpJuA6PDOSzu+aSWnmMme4mDOKkOjWlE54Ph1Er2USa5I9VxhUo8F15lSbfB3rZfd0IboRH4C7YS3T0cGKS98qsnyQNHGGd0kvh2omMPdHStW9OE/q+8iUI8vhmLdXDwQi6Og4TEPdJOLjU2wD6caXJ/RtJT1992Jh8ZsaZFyJsjroF9m5v9BT7qQImLPUfLTSX1VXLNXkmubObNWpOgKt0sjzdEVdipzqYE7m60zyWB6Ac+jHe6Lozm9fA46GMbQGbqdFTDk/iZgQGlDNS63RTmgDqXWjGWejAmmrJDLSX1Desr+/P6SIOV3+uwp16Y6Fggs+d/60CvBtk5e9xJt3flmO8CEPphqesN2fzMN3+hTYdRRn6a+AIvfDzhmAggmjTiOcbs9BTjnMx1WpukfX+h64p34+kB0yTI/ihvYQSFE/l8X22jdgVY4tAxQ/p71nreQCxDlj2b9n2t8X5y+MypNge46FEnT8mJ+/FISmA=; 4:377sgK+ye45FCcRZ3KiJ1VRWLBixEoJFnZfjYXr3oYbflkSI4Q6TY1ia+85dkZcwlw/Y1CeBexG77nV2J3tXN5Nu7MWmvEeeGtN2uc7vX/Mcvz5ul8gSc8hvJ18RVDl9r/L7dUgose3q5QYY8Todqn+BzmdE0/WQtXlLYvhQXiaAbJR/FvJxh2Sy9qSDZUeDjhbeACFIitZlXStoQ2lb1dMO56ums0JCDSNr9KPwf3U1BiMdJXf0nJ/sjz0OkTSiEkCtGxZhXA95of2lel5xnly968eKk+G0pVC1VbhwbY3OkTGNwn8v0evd2YsVS7e0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(10201501046)(93006095)(3002001)(6041248)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011); SRVR:BN6PR07MB3460; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR07MB3460; X-Forefront-PRVS: 05168A3970 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(376002)(346002)(189003)(199004)(305945005)(2906002)(10710500007)(68736007)(16586007)(1076002)(16526018)(6666003)(2950100002)(5660300001)(42882006)(316002)(81156014)(50226002)(97736004)(81166006)(8676002)(52116002)(8936002)(2420400007)(15650500001)(6116002)(7736002)(51416003)(72206003)(966005)(3846002)(478600001)(25786009)(33646002)(6306002)(107886003)(6512007)(76176011)(7110500001)(53376002)(4326008)(53936002)(47776003)(66066001)(6506006)(6486002)(48376002)(50466002)(105586002)(106356001)(36756003)(59450400001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3460; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3460; 23:iBKtTH693RXfGtDeBQbbrDzjXIs8kZxljQ5xdUxgu?= =?us-ascii?Q?EQl1n7ZmcZFY+cpW0pS2GLFgG2Gtf5FWafeCUCDslKyNbo7it3lz47HgZHEp?= =?us-ascii?Q?7wYhc5rq7xZIMQlKhJqx0r02a9BzTACyUb/imNtw+GuS+V72/2ljrYwYU5wV?= =?us-ascii?Q?9EKMQVsOAdZ/kOFF+YzHfHcKGQqEosnKvT5Qjul4Pv+3QPduc8NQmti+mSxG?= =?us-ascii?Q?UBJFiKu3lya3Qclm8v/ZrK1vU+mW+QjRrAR/XppJeLPPMd1AMnwocFjbfTuE?= =?us-ascii?Q?Zm38TMpr+k8AlXiUbYpMx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osticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2017 13:24:42.8394 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d25ea139-ca13-4f13-84e7-08d53f083666 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3460 Subject: [dpdk-dev] [PATCH v2 1/3] eal: update legacy modules dynamic logs regex 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: Sat, 09 Dec 2017 13:24:47 -0000 Update legacy log types regex strings used for registering dynamic logs. Signed-off-by: Pavan Nikhilesh Reviewed-by: Ferruh Yigit Reviewed-by: Olivier Matz --- v2 Changes: - Corrected dynamic log regex strings of 'librte.flow_classify' and 'librte.member' to 'lib.flow_classify' and 'lib.member'. - Rebased on top of [1]. - reverted changes to test/test/test.h in reference with [1]. [1] http://dpdk.org/dev/patchwork/patch/32038/ lib/librte_eal/common/eal_common_log.c | 39 ++++++++++++++-------------- lib/librte_flow_classify/rte_flow_classify.c | 2 +- lib/librte_member/rte_member.c | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c index e894b75ec..fa9ac7247 100644 --- a/lib/librte_eal/common/eal_common_log.c +++ b/lib/librte_eal/common/eal_common_log.c @@ -219,26 +219,27 @@ struct logtype { }; static const struct logtype logtype_strings[] = { - {RTE_LOGTYPE_EAL, "eal"}, - {RTE_LOGTYPE_MALLOC, "malloc"}, - {RTE_LOGTYPE_RING, "ring"}, - {RTE_LOGTYPE_MEMPOOL, "mempool"}, - {RTE_LOGTYPE_TIMER, "timer"}, + {RTE_LOGTYPE_EAL, "lib.eal"}, + {RTE_LOGTYPE_MALLOC, "lib.malloc"}, + {RTE_LOGTYPE_RING, "lib.ring"}, + {RTE_LOGTYPE_MEMPOOL, "lib.mempool"}, + {RTE_LOGTYPE_TIMER, "lib.timer"}, {RTE_LOGTYPE_PMD, "pmd"}, - {RTE_LOGTYPE_HASH, "hash"}, - {RTE_LOGTYPE_LPM, "lpm"}, - {RTE_LOGTYPE_KNI, "kni"}, - {RTE_LOGTYPE_ACL, "acl"}, - {RTE_LOGTYPE_POWER, "power"}, - {RTE_LOGTYPE_METER, "meter"}, - {RTE_LOGTYPE_SCHED, "sched"}, - {RTE_LOGTYPE_PORT, "port"}, - {RTE_LOGTYPE_TABLE, "table"}, - {RTE_LOGTYPE_PIPELINE, "pipeline"}, - {RTE_LOGTYPE_MBUF, "mbuf"}, - {RTE_LOGTYPE_CRYPTODEV, "cryptodev"}, - {RTE_LOGTYPE_EFD, "efd"}, - {RTE_LOGTYPE_EVENTDEV, "eventdev"}, + {RTE_LOGTYPE_HASH, "lib.hash"}, + {RTE_LOGTYPE_LPM, "lib.lpm"}, + {RTE_LOGTYPE_KNI, "lib.kni"}, + {RTE_LOGTYPE_ACL, "lib.acl"}, + {RTE_LOGTYPE_POWER, "lib.power"}, + {RTE_LOGTYPE_METER, "lib.meter"}, + {RTE_LOGTYPE_SCHED, "lib.sched"}, + {RTE_LOGTYPE_PORT, "lib.port"}, + {RTE_LOGTYPE_TABLE, "lib.table"}, + {RTE_LOGTYPE_PIPELINE, "lib.pipeline"}, + {RTE_LOGTYPE_MBUF, "lib.mbuf"}, + {RTE_LOGTYPE_CRYPTODEV, "lib.cryptodev"}, + {RTE_LOGTYPE_EFD, "lib.efd"}, + {RTE_LOGTYPE_EVENTDEV, "lib.eventdev"}, + {RTE_LOGTYPE_GSO, "lib.gso"}, {RTE_LOGTYPE_USER1, "user1"}, {RTE_LOGTYPE_USER2, "user2"}, {RTE_LOGTYPE_USER3, "user3"}, diff --git a/lib/librte_flow_classify/rte_flow_classify.c b/lib/librte_flow_classify/rte_flow_classify.c index e6f448643..72bc8b821 100644 --- a/lib/librte_flow_classify/rte_flow_classify.c +++ b/lib/librte_flow_classify/rte_flow_classify.c @@ -685,7 +685,7 @@ static void librte_flow_classify_init_log(void) { librte_flow_classify_logtype = - rte_log_register("librte.flow_classify"); + rte_log_register("lib.flow_classify"); if (librte_flow_classify_logtype >= 0) rte_log_set_level(librte_flow_classify_logtype, RTE_LOG_INFO); } diff --git a/lib/librte_member/rte_member.c b/lib/librte_member/rte_member.c index cc9ea84ae..84354cc38 100644 --- a/lib/librte_member/rte_member.c +++ b/lib/librte_member/rte_member.c @@ -330,7 +330,7 @@ RTE_INIT(librte_member_init_log); static void librte_member_init_log(void) { - librte_member_logtype = rte_log_register("librte.member"); + librte_member_logtype = rte_log_register("lib.member"); if (librte_member_logtype >= 0) rte_log_set_level(librte_member_logtype, RTE_LOG_DEBUG); } -- 2.14.1