From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0062.outbound.protection.outlook.com [104.47.37.62]) by dpdk.org (Postfix) with ESMTP id 81DE41B2F2 for ; Tue, 16 Jan 2018 18:47:19 +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=A5mF0oE0kqQsfgdiy3BuVzDoVrkiK5k1ggJo5EFALw8=; b=aXRwqsyOxDHG22KGtM55V1ryYcZvrshpD1EEG9AhJa+qDLibpz+dk1UY6N1W9v309LW50AXbewv9H993+vP5qxLH/lUGXzlAAxZir1aSJV6zWTmUau2BErZW7AWjS13Nmra9gIrvL4n+u5s3+djTHV7BnvoFZOBPC/t/s1xdu6Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) 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 17:47:07 +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: Tue, 16 Jan 2018 23:15:53 +0530 Message-Id: <20180116174607.10821-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: [111.93.218.67] X-ClientProxiedBy: HK2PR02CA0158.apcprd02.prod.outlook.com (10.171.30.18) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3723f4e6-1520-4535-03d6-08d55d092f8e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:UkbrMmtgcTNa+v6YP4BBNkH1CHx6rVfVz+qYr2CH6h9f37gC28RWk/03AgKJ2/noeH0l5d/zVTyZlUe5bkm2yMDdqWYVvVcFvlsO4dYrBQw77SRwQgXzwp9d1wbYzIpVN8hAHXfltE2uY+ozohP1sH1PkTifszRlyuUXd2Ej/3dzwA+mbnaescLekPmG9wII/rESNhHlUbBxu+G8wQjO46ObTVpzLgrBuah/v0filgwpH+MihIWRfqKufaiuEWlu; 25:Aa2XIE8l+l7k6YVds6OneJfCIHcnLgYBW7p/jUYpSG00FowO4rqEd3m2QKklWkjn6bul/Eo0qrVZ1fiJs+eLQcSGEiWx+epOfQXno9y0u+gCYpEydsQdNLG+j/WOGUeA/uHBtN3scGbVB43xEM+wFdsTWDEbdDg6U+oCguSr1Or3bHBeQsu/jsX/wrE6WNRn+VvVNhNEeuy16WkcuC9RIGk3/HkFq0y0VD85FRTDcqUp4l6r8iFamSW0PG2t8XG7XLnFm4iv+kiPUOMCDcayo9OvyJV6guw+PnUv78HpNX3uX+bJhX6wSiV71JifqCvpuXwiFwOIJKDa5hKYGze4lw==; 31:4YI8aRwrNFuZMtbqhw9WMbOi+Zwkdo0Ij6jeshEKAvsTyLFZigpFWXjIk58WxruJrKlVa7FVsDHRHercms+IXtCawKcO1S+IzbGCvGrcDCse4eyrpVwtV0a6TqwP2GqnU5dJhkcBGFMyl8ztS2aNjU8WQKvP6TIYJkmtgRbzI2biVGFHwr7Y3IyR27hamquoM7+n3tVXwhYwSziRyNfszEwSDMbKvzWA+6lCezfswvg= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:Upzl+lhPHPgOPapwozTMBc7i2V9fVzf9Jo4p8NDW+oZr/ZC4iiuts4A0D9ABPUS1H8LsGAO4sipwbqQ+8ERwIs8iuuAq2jw836SkbP5zFOijSn/Rz1oGBRlZm2zWwopNFR2I8ROaMeiWBDkt+jkk6M1+PrmXVKWHFRGi2xbEOqUw9eJ8jJLuHNwEznSl0erA7QYv5PVSVzRCeuMpjJgrbjf9nSO4rP5YYwFNGC8Ph91RlgRgANmx/kaWS4H5AOCTLWw3OSLMj3m32Ykre7Jq7KpLWseV125FYKBnITfVRYcBBs4Gh0+6Wgc4e7qJ59zTBE29el1LIQUNM22JaX6qRGbEFjMr8yvbRSHCFaVzpneHNtbVVtSh1Li80R1gsGyTXV2njQAEzkNoZD/LBTbMBbn/6yrlEvkU5ar4XR8zLPdw4jlg1Fd0fJ2pGqbJoX9mqqUnkQYxhtlDdC4veQtahpJcCNmlbMH9gg6KYv81kWtpttCy61bRGAyIl6iFHuvlexd3u8KfDhSHfSUP02cBRjCjPnOX+2KuJT4218H0NLKspfKhCC4fSvnZtfPAhKVqdH6T8xhR95xYKYAO1TJtjwJamlTGSrT6sWwXMVcfZKM=; 4:Hd0MF6dOfEGp7JdblOUIuEmV2jRtkX3RSsqGkViVnOXBqvmop2MoHYnss3n4Q1nT/m5csOWPTe4Jxid9uwXDfCSjUaZvt9PAvyzLiQoD0fD54ieD7daSdQ5bmdgtF+t5B3hHs/Kckt3axupSuXfTnec03uWU/R8tt2FC6eBsAKeBe1Q2enpJI99ERO2dnjRK5W/xMoHlhEmWzA3hYyYpiaT6wMaUSHsDw4shuW99CieZeoSqQYMCN7Of0THZ8EycdY7dg/3dlZl2Gw1W5AMQkA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(944501161)(93006095)(3002001)(10201501046)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(366004)(39860400002)(376002)(39380400002)(396003)(189003)(199004)(81166006)(97736004)(8676002)(6116002)(5009440100003)(52116002)(305945005)(8936002)(107886003)(1076002)(53376002)(51416003)(81156014)(25786009)(8656006)(4326008)(50466002)(6486002)(5660300001)(3846002)(7736002)(50226002)(16526018)(68736007)(106356001)(26005)(76176011)(6306002)(53936002)(6512007)(59450400001)(47776003)(48376002)(16586007)(386003)(6506007)(66066001)(72206003)(2950100002)(36756003)(966005)(2906002)(105586002)(478600001)(316002)(6666003)(42882006)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; 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; CY4PR07MB3464; 23:dSr2d7EdEgVFnRuGGOslIc0c69kHgB1Bo3I/QI/XC?= =?us-ascii?Q?f2pIT/VJ12nkNELPbTETpazeaHUDRfW/n0yTKMM5o4+EGUzhQodhwl2UoWnp?= =?us-ascii?Q?6cT6jeozrdeUSMKhKrHXyy5HtAXhfVvxaeeIwQa0XxgtEiFQxmAjdnJ7pzQ3?= =?us-ascii?Q?+LmUHy1eSZZ4k+Vwt1XvpbjNIF7S+pVBFsPji6FzyUowVZiGkLEnnqpLUbPh?= =?us-ascii?Q?nq/RZ+rmTT/bAlfk17zTpS98OiY/eXoI3wcXaJEDXkt+Qa03+D9z0dABQ9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moApDwAH4KQ7kHXPbryx4d4zcXzE8NkLWKIK24yYpwqn5nJhdsBqP96w2nM4CuQFXBF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 17:47:07.9686 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3723f4e6-1520-4535-03d6-08d55d092f8e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v7 01/15] 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: Tue, 16 Jan 2018 17:47:20 -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 --- v7 Changes: - Fix release notes format. - Split documentation patch into two chunks to reduce message body size. v6 Changes: - Missed retaining acks when sending previous patchset. v5 Changes: - Split generic and lockfree diagrams for pipeline queue and atq in documentation. - Update release notes. 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