From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0085.outbound.protection.outlook.com [104.47.37.85]) by dpdk.org (Postfix) with ESMTP id 09EED1D7 for ; Mon, 18 Dec 2017 22:44:50 +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=dw5gP+zDLVts+vdzrag7c5pQ2hXqZxm96d2qV4WjQMM=; b=AEjOponeApLgq5nKp6LTRiJF/JtRLH5LvU8sP71xvgVsVJ6PtQwJKleOdke4boqOeuSmaA4WuYTsfSIbUhQQLatm3zxfZa7lckL8Y4N6MlmpGIytV2Dhw2C+17erKaLYlQDRtD1FoaeJbB8MVkmtmT6X4vUu8eVtVB1pcQFq4lw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3467.namprd07.prod.outlook.com (10.164.153.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Mon, 18 Dec 2017 21:44:44 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, bruce.richardson@intel.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, 19 Dec 2017 03:13:54 +0530 Message-Id: <20171218214405.26763-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: HK2PR02CA0163.apcprd02.prod.outlook.com (10.171.30.23) To DM5PR07MB3467.namprd07.prod.outlook.com (10.164.153.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d4dd50fa-84a7-4b93-0029-08d546608f9d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:DM5PR07MB3467; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 3:YgMCPxHGpsc8H4CIWztn5YwTbdKw9b1F7lLcyLfdL8pkWymG3si3S1X7bX1fyEGtsVuYeEW8TAaIdz801wtCHV4dADd209RX3akHKeJqXAidIId66qNVknM2ll2IZPjS33KPcWwhkE01jNixGpWdlXe/Hf/j67+AZ4aUcH5Z1LH0FqmFmPWmnbK+sCvIma+OtE4ICKNcxb3V55GQBktUQfim/fiTR9V7/yAMIxKYGLlxqocrYMzWsO9zhSrNq6G0; 25:8KzMe5+p0uEJzKDsgzP5QDLOGp2Fc9qXc/DmMuJ9zi9NVIjF6rZlU4aK4wXd8EaL59X2EpbQ+i/7iZV2mt5lwvW/FCsyxwcw7LF6INy8q+p8z/YysOH4gcQyWJ1tN5Sf1CuMUK/UJWtU7Ba44KgjOxztfUN+fUpyKciy/kEmfmmbuVrD5iw17anzL7R+wyiVGXmFiJQG/+f9OkciEZMvzonCN3EIDYaakCoSgDWyCoGfQZjmRYcH2Xrr9XtQoI+lucUPPwgCkhCmg08BE/sK10J439ix/doVYXVNU953RnWTs+BxvI0giDPqgrAQ/l+r0T7rgjuqKe3vBaY9KfhG2Q==; 31:EYNf8ILh0lLqob3jn13GWK8//CVoxE+cY8TFO345Dkyr5s5VhnI0mh7NagQfMA1soWQEPcslx1W6VqSWA9O1UsW4pc/yXnAxuSACvyKbCAp4xbTsEGB3tecIB2sWMe4lbUGQFs29uCvY0Sax7Ls1+lfJRCa6x6BHjjGoLLKTSxg7ya52nxk1MvxrzImxNE02uHOWOkuWGlTwtFUQ1HVVAgk1/NynQaqJAU8dVnhZqjg= X-MS-TrafficTypeDiagnostic: DM5PR07MB3467: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 20:hugkalR8kFZxxqgKbTQLozOj523p46jAe5sKHIMjhSZDdPZb+Xab4p4PfPJPeXdvY+jiQRcAc4O7NSd12gheCt5rg/G0ADLvhq477o6mtE3UpclYpM/vS7X55MggJYu9lX0kf3lY+MiFmu7Oid7g/z4q0+rnsDK1jalzpyX8KF7FqqNgi9HkRz1/LKe4bDMZAVyuY9qHuJY6F2aCNuii/De1g8HyU/osX/2kZMaPfVVfhLS+1uYbI1I23ECZxJKZaJd8Zv6QbQoxNDWNQ7hupFOYRi1624tD9YOKomGA8OF7cfPgE+gkHeGQsoRDr+ibbh2T79ZgEB+TSxBrXvHejJIQczbsurqGYF6UXuU2CFPjXrH7iVyQslEFZ+pFPcdvTucJ1B1bfx8KXuwGAyF94znhHywHF9B2z/z2KQQs0tEeANOxR9v9TLuC2K7EdLQXfvx+jIp//aWZ+4J214ivFy6tRCgPuja6zMmHicg4mlQRKuyHGqj4/LhWK27DAiDMZ/YnyLtZJh6G5xlIzCivKhm3dSuu1c2RIfbf4bTHVLSqur3PnOhW+Cr6NjAGK9NW7SdxDiSG3883ebjHebTSR0qKKW/nG6K3SQl4099CrOo=; 4:YgtXI7m0YaKGjaOvkgMwBvzNGrJbd/At5QkGnbDcVyTNhQ264hKmeQ08urszvWcZb3FTOr0FVfiNobgbNCjEYmF70DJC9gcYgQSnE6U5/BOhAEnEMGxnr7GmzTHI8R2FIuNrqr7PVpoNzMlWjnz65d2pVRb9wivwPGr7jD3LmWS+/gxH+uCgl3+KRLaBYDdjPx8iMABlv1yYlIbQ96afuwu511a3JmheBvPCUJdpCjfFdZGyjlhzcJjL9+6fw98L+OwN9phBAqpTeZh+M86Xjw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231023)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(6072148)(201708071742011); SRVR:DM5PR07MB3467; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3467; X-Forefront-PRVS: 0525BB0ADF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(366004)(376002)(39860400002)(346002)(199004)(189003)(4326008)(2906002)(53936002)(305945005)(25786009)(1076002)(8936002)(50226002)(16526018)(6506007)(386003)(68736007)(52116002)(478600001)(51416003)(48376002)(5009440100003)(3846002)(6116002)(72206003)(36756003)(6486002)(107886003)(8676002)(5660300001)(106356001)(105586002)(8656006)(2950100002)(42882006)(6512007)(6666003)(16586007)(7736002)(66066001)(47776003)(76176011)(50466002)(81166006)(81156014)(316002)(97736004)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3467; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; DM5PR07MB3467; 23:PxNNGzYBFngYmtcdjCqTk21UTIvy+UKEGgsQcF2cQ?= =?us-ascii?Q?cXODBm1BNQvbj+Oex+EYJLN4syy6FkG8dZIhxm0cBrkGjJ63CdKglkSnS9M4?= =?us-ascii?Q?RpJgraCf93eVPcnnfq6cmjWBwQfp5EDR0buLf/rPy2nYzx65xi+Zve3jMu2h?= =?us-ascii?Q?BLW0+cCgO3femlAQcnU8PMkcQH3PnGRjl2PoFTWMDnb5JPleilHyba1p7nEQ?= =?us-ascii?Q?ghMI5gg3nRR693odjBTR4xzq/T3qySYnCTiUQ8ihisD4gotq9sGXzj7Ztw5C?= =?us-ascii?Q?ooDaETXk5ObFV+O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=?us-ascii?Q?AFxYBcYBJvy0pQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 6:YwsgQMsIV+I5XJYuEhoFBFw13CxrLo6ejKpXWK3n2xub6lfFo1YfPwkJsfIFpl8Tsu/OguvcRGABHZk5BPHdtdRhgiFqQpn5pwoOaNwBYIHqG/+AWmD4Ikw5bL/mIkTrDMLHCBSZ0EbveUqoftzx0Z+Voaq2pZnNrHhqnzzaNxTBDaO0pSs6rs2giYQ2d0eWLhBjIoLE9sn/th8DGtr+V4IsX8L8JLnsS9zd0+RbHER8h19NPRpON5Ykpga1h+UWDBgPrYuu849/jr9WssZR1MMKNmLkeA2dB4OksK3oqpUq3+G1SBi+UYwv/c/4KVeI9acNhrZPsRTaof48KIJQdgYByq8xrS4/r79n5z+apF8=; 5:rtZaXMLAq2N101w0ZgbUhWu8iIxMcIUxz/xCbcfSlB+n9GoND5SnLPwHY1UGu9GZczj1ppr3sYRz7mk8D5+L9IzMfNWOWouyOhBZvsYVEuSg2cU0ImRRLAKE/O6FQfyqD0JelkbmAzzdEjkcP5ZjMnDIltmLrHJwQUrlkiZN3Ck=; 24:X9BrSdQwMSVJPP7lxSctVmee60knzugHmJ/y5cGVQfXVLHJ9aewgkGyh4l8aO1tsj+La4d5Jwl4dnHjGC2pPAW3xA8RcJQbqHE+8SDFyUVM=; 7:PS06jBevarJePY+nyKyryW6kMkmFvprpLF77+vzOVGCEBPyllz99bpBj7XIbg6YtVUNk0Aw0hKVzf0FC/kgRS8jZvR/1z4i7oy05EmyG7RYnFnUoWnbgNCIgwRnfkQ6aeHBsxi/wMkwHi/kBler2+WPLLC3YcPsT9kbK2iwWXEKNrLAKfus+watcYYp8uQpx79JWhcdll6LxrCiG2qru+VuZr3Am/JP4jm+Z417NBX0DSXCOL1OXWOyzVJqk5oBz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2017 21:44:44.7719 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d4dd50fa-84a7-4b93-0029-08d546608f9d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3467 Subject: [dpdk-dev] [PATCH v2 01/12] 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: Mon, 18 Dec 2017 21:44:50 -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 --- 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 1c3a7faeb..bde388b97 100644 --- a/app/test-eventdev/evt_main.c +++ b/app/test-eventdev/evt_main.c @@ -57,6 +57,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 9aff31f20..428af4ae2 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -36,8 +36,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