From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0043.outbound.protection.outlook.com [104.47.38.43]) by dpdk.org (Postfix) with ESMTP id 5AF47A84C for ; Fri, 12 Jan 2018 17:44:48 +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=uVa+O3m/dt5D4nMgrx9o9luqtjNjbMaupi41wkFSGCk=; b=RNXZxEUafLL+zy/q5z72MxfIgV5dAu8pdCGbcKYOpxaAnz2E1SmDSM/MSkPju5O2jO3M1u8yvgfKkBbbYhwrGX0sdCMvcQuPcCY2knA+BvS3uPHDkDe9FxDBB1yEI30lUO28RowCotF+7865aXo2ep+lMWFeHAFUqJqeqKESSf0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (119.82.125.132) by DM5PR07MB3465.namprd07.prod.outlook.com (10.164.153.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 12 Jan 2018 16:44:40 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, harry.van.haaren@intel.com, gage.eads@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, liang.j.ma@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Fri, 12 Jan 2018 22:14:04 +0530 Message-Id: <20180112164416.21374-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> References: <20171130072406.15605-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.82.125.132] X-ClientProxiedBy: YQXPR0101CA0023.CANPRD01.PROD.OUTLOOK.COM (52.132.74.164) To DM5PR07MB3465.namprd07.prod.outlook.com (10.164.153.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c0c8172b-c016-43f5-3560-08d559dbc849 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020084)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR07MB3465; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3465; 3:BjG2UBs5zo58Gi/mqnd06D0PCnhqPsFgVicoERPWkGwHVfQS0ASD78yta4p9m+Y+Ktwxa6zeznXX6rOidHmCktHZjH/SwwkyrLvoq5DBSsOt4MrMl8cwZRLW6RCpQT54FcHd4c7YT5pGtwfmnWpVcxIG8QX0nhuE34rw9LwAR7hv9PTN16xaOQOQ5XpIs/dz6KnITQ4K2XPWvlnOxKpOlGBvjiznyn8ZulWrQ18V6S5PQAN/SUXDTe/gjqrGvnrv; 25:qF//2GWeEl1MLKQ6GY8hgmZbHSkcltITbJxlMNKsoKdL29RfbjJU04rbyDhawXSP8WfpL+k1ADmdeGEX7N5J6HBz5EosLQDVeqrW7BDPcLzFN186/huOZbCJY+RQ1XpouLFy/u8GHwXI/kT2yq2/egGH67VqSt1NCCGbV2yh1fYZibttN+MkLpxeQaH1OJgKKm3eSiSHnrj78ijANw8ZS11jS4+5mKcklEaAC/SalxHyCr9CTxYn4ScujzIEPbeBOBPBMq1UZppDaafh5Bg0COrvqtWtP4T1NACAE3DwHGafmZ1n+9RZkZcGYp6Q9iyZfBB6NN4UGKUpgB3E9YTShQ==; 31:6UW7EVAF1GD6605nDihY34wdvwe5p5gztWHVudPa1MMyrE6lt2PX5rBLYRQR6jm883iSIidxI0CcYX1hLPZ33USQSa1fSsI8Ec0d+9n5zC7FOcDYBCJTPSsb8AsHSMt8Iufq8v6OMppWiAkHa/CuCFJBZRbHPrN9RNrng3XUANl7b5OtaLRWQfm6OFWB3cEgUquVO7VX9FuQh0cdy5KRBxgL/70gvwuTsPMtou9gu70= X-MS-TrafficTypeDiagnostic: DM5PR07MB3465: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3465; 20:RVCmcol8KjC/87T5LtqedJNuXXysQSSJCecR2OZdGhOUuh0oKpZwOnWREYz+RNx3/5zzq5ls+z+xVQu8FViPtN8n4eF8vrzwDeDZumM1qBLk/RRaStXDpe0XLnzn0nVbaQX9SOq7vpCcQ+V6kWmlBeJv9reAA+GZM2H1NynKt8w8baa0yHePgUw0tlKC2IXi2arU7NtcCMhSOA+0rb9caMeatyfUQ2R6Yc3ZjNRmNV4mNvrpsERJnISgmVUlDx0wxxEk5+zPNt4l0ItVFokuYHfAoprX+RT7UJiNdEm9xpxVN6xnrlts48p/yCwS6XQZ80deWtTg8d0mWzO6+Cu8DgAF1sFQ/Fw5yqwHlAhqAz+XyOz5Zi2i0RCUJSCZnbhRP4VYiq/P8UIvjw5wrje+8+bi1RyOFgaI0u1OlPz+M1idbxUEgHnNswmQD4oSZyNYRtEqURr/r/F/89kdErzbpCHyttxWwwku/ZL9jG1K+8RoG0pw5JIByrOxN/zfF5fZ+8oBFWNPvkfgnnLNpcjER3wVshMg+5ZQZhotWWkzm52O2kUwxPW+O0n0wDfKdOv7AqoOElQ2BThIJjCqbVP3MP3lt3AnHHPAHNjDq0g5nB4=; 4:sfDY+67qGexgEFjJlCUvBYcWNfhUtfR7++yP/o2fw1nTZG9VYaX5826mjj0sjP3tg5Lfqg7YKTSwYsCZvsZMMp8jSRxCuYG8Scoa2eYPJ1AUqkJOuPo+blwVgFQdwPuhQrld2W75KzRx024MewVlm1di3Ri1hHkNDgglwd37CHerPR6Y/YgjMq8423dVO1hMcDgxXC9K+cL8tYlb1doB5Rnto+ttYGIekkIE5/OvWGv8tsNxVAdUIeqL+7PRm5/oHJFGOSFgzTOVGUe9dbTF6A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(93006095)(10201501046)(3231023)(944501145)(6041268)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5PR07MB3465; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3465; X-Forefront-PRVS: 0550778858 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(376002)(396003)(366004)(189003)(199004)(50226002)(76176011)(8676002)(6666003)(316002)(48376002)(53416004)(81156014)(53936002)(69596002)(16586007)(81166006)(386003)(16526018)(52116002)(6506007)(51416003)(6306002)(1076002)(6486002)(2950100002)(105586002)(66066001)(6512007)(50466002)(106356001)(47776003)(4326008)(5660300001)(53376002)(3846002)(42882006)(6116002)(7736002)(68736007)(966005)(97736004)(8656006)(478600001)(107886003)(8936002)(72206003)(36756003)(2906002)(305945005)(25786009)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3465; H:Pavan-LT.caveonetworks.com; 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; DM5PR07MB3465; 23:8yEVTlKti2wT3oeEOel2+7uTKqF4uzuKh10uDfDeN?= =?us-ascii?Q?oOHepEa87SWs+sqvz2Nh42vreSr/nWgjmeyuRfepwoYblozONnU71u6cje8J?= =?us-ascii?Q?nrJnbD7C3iDsWNMnZgChXR7K4rd4wBO8meDVgOYbP1kTl8Zk1OTZVJr5VuND?= =?us-ascii?Q?q9uDsTMCn+HdNAKxR8t8i9uGO5j85x58goKt+L5Wkiq1rWxiwgT4Q4lP5Pwe?= =?us-ascii?Q?oiWV3wMZtz8gJpsjXSV2K/ZN67EQuwqC6V/aXBtpTIIUztfGxyv5oZuV8qiN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t5ncr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2018 16:44:40.4337 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0c8172b-c016-43f5-3560-08d559dbc849 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3465 Subject: [dpdk-dev] [PATCH v4 01/13] app/eventdev: add packet distribution logs 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, 12 Jan 2018 16:44:48 -0000 Add logs for packet distribution across worker cores to be printed along with the test results. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v4 Changes: - remove Tx queue locking by using Tx service ml discussion : http://dpdk.org/ml/archives/dev/2018-January/086730.html v3 Changes: - Add SPDX licence tags - Redo atq test app/test-eventdev/evt_main.c | 3 +++ app/test-eventdev/test_perf_common.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c index 3c27f3216..57bb94570 100644 --- a/app/test-eventdev/evt_main.c +++ b/app/test-eventdev/evt_main.c @@ -29,6 +29,9 @@ signal_handler(int signum) rte_eal_mp_wait_lcore(); + if (test->ops.test_result) + test->ops.test_result(test, &opt); + if (test->ops.eventdev_destroy) test->ops.eventdev_destroy(test, &opt); diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index e82cc9301..e279d81a5 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -8,8 +8,20 @@ int perf_test_result(struct evt_test *test, struct evt_options *opt) { RTE_SET_USED(opt); + int i; + uint64_t total = 0; struct test_perf *t = evt_test_priv(test); + printf("Packet distribution across worker cores :\n"); + for (i = 0; i < t->nb_workers; i++) + total += t->worker[i].processed_pkts; + for (i = 0; i < t->nb_workers; i++) + printf("Worker %d packets: "CLGRN"%"PRIx64" "CLNRM"percentage:" + CLGRN" %3.2f\n"CLNRM, i, + t->worker[i].processed_pkts, + (((double)t->worker[i].processed_pkts)/total) + * 100); + return t->result; } -- 2.14.1