From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0075.outbound.protection.outlook.com [104.47.33.75]) by dpdk.org (Postfix) with ESMTP id 03A8F2C54 for ; Thu, 30 Nov 2017 08:24:33 +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=Cr+lCKhqV3sP1HQz3sj+wFkT7gaPgNavmIWin2cC9iQ=; b=ECpqJ+eMpWhCanA70EX3TUJiIeUrJVfXvpPs+BB2iJ6Onu1hSxyoxMcGJkDALqryHVRcTVtxWJTQxFTKoYhkpy+aQXX6XSYb8HDN7u6p7PB01A/KtfvMkZ2vD0o94DRne/nX2CAWpMMBcUq7R+s0xZOrnlPAy6WBIX7XV6Sqedc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Thu, 30 Nov 2017 07:24:28 +0000 From: Pavan Nikhilesh To: jerin.jacobkollanukkaran@cavium.com, gage.eads@intel.com, harry.van.haaren@intel.com, bruce.richardson@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, nikhil.rao@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 30 Nov 2017 12:54:04 +0530 Message-Id: <20171130072406.15605-2-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: YQXPR0101CA0013.CANPRD01.PROD.OUTLOOK.COM (52.132.74.154) To DM5PR07MB3468.namprd07.prod.outlook.com (10.164.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 30e6b4c4-a3ac-4019-32df-08d537c36687 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603282); SRVR:DM5PR07MB3468; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 3:zCqiaU6dxRv5RkcZi5/Zy1nWmAKUfyWZ3NrDbqFtH6ZBc/5nkjLr4quDG/kE8QnRkAad8R12wvIYRvACK2/yHoHW6owm4v6ZYZ+NbLHMtg4V4aaoix/Uj/3R8Qsf2kQVtMjshjxfDmycNPKu628fqTkkWid9mi1QvETLs40k4GY4GKJAqlviAgVO6Dzxh1zpninGE0Ze+ovZ/1k3OOFPjFc15m4HS5dKdslc9cQjWktej/jTFZajev5L/Y/qrve7; 25:ync2qKAfU5CDax0rnioZZ9ciH0sNHOp6jrHnUl2eMTlv55O3ei74eGQa+uIqi0eTklhIJVH6hokh1JkqiXz0sHF5zW/of57Jggz3Il8OTfSiuNCyIdP2n6e/Wi6IosukmTlIyUj+4hDIIDgz5N2BIBwC3/C+OedR15eI7e5Y1SHczcmFuVL3Zs1u95iTsOBlWc5RnAbov1NlcKAGnjOj5xD5aQNX2YDl81FmcAk/aC+jQcX1/2PZY3uo8TmusdcsQ4dnFETmADNRs+Drt6Gxn9LC0fTvDoWtfk8XGGnytpwp7prR/gfCu/dUbrYwDTWF+74K+cuyLN8ViRDzjm+cVg==; 31:mmK0xmDk2cxkuNgs+AbP2H5jRm1htNs2Px0zcS30xgIXjjRBsehILkv2Udgsckqr4GY49HKjgjiyFDWuSyIr4UVFwxG0Oyj+jhqNuTHVbp+BfcanErSWI2LyGjYp7aViviTO4KZgMFDu93Bn7kEATUm/7oQ5l++RJ+rWB746YtFf6DuGfROFpeI2Bz7WVjy01EST6gJq0B7BK/d1qOL0cw+ZbBpWV046Q/jkgVa3fts= X-MS-TrafficTypeDiagnostic: DM5PR07MB3468: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3468; 20:q4UW1kl2v3TXFexYaiavRzdd1eOsri0gaUw4H4i3K3hb1mkhydYV2Mk9H3H4kgB+kSk+988CFTO3z5u+y/GoA1sd6LfXLOy8gM9MvIxwrWYiGajKR5lMrVw6VPCuWZ/VJ97M35GEMD944loE5lGV0wFcX1nyT1v8ZPPSbMFjxffLAQkUR8NhF0IjM9gBR5Sm3AJwisvTbve6K504pPxjMlmA85uatOw9addBPJjNptJ8tYMwFjl4Yp2S8LdJLYXJ0gV7tVENlXL+CfYP+temoS7fC1mNYFICS9JdOqeac7jJ9+0mbRQHlT6yno3ZQHb+/3rQ49dH0/t6b+NW7c+U/JMO5hU8fqADwtnfchKnmUbKp7ZKyAuQzUnjh3sJytIm39rbwFB0/BxrXsKcP8u9Te7oH4EplHjlIqJ7JZ+pe4o5wYliRmrzktZYLhcl6eoGIPPZnj8esFCOvw0pY6KrP5zsG/ifOpair2aiPMYM/3EFNZuH9uj3F2cxRMRIjfLfDuyuubjK1ReOFQCWOg04/XNR1euopSQwpgju3NUgAxS6j6pwQC3MsN949IHswNdWzxdJaNcOaCKkEz9wA4j7oS6EzYIPwFZBDUZkbJug7jg=; 4:/8jg2OP5d8cmEc+ASaUWEV9c21UJ93Mh5fFzGMhhjZeiKavAU2lfZ0DyyBBf8dqa1di14r2to93DWe6YqA+4MHhv5MZaFfjFMyp6WngMHVjelc37TveDIKg1CKkp2ooo3NkYBLLpHqSF0mkf0l8iANIf0DX9Q513ASUx0YAGCRyN0PEmHkAiXDyyu0IXWUhpFSWgxbbRKMijvJ4dOVX8+qb6Jd8n5rHIYCQTldJekcktUXUAfGUBWu5lS18Nf7v2th7wLSUc1lLcrV2hUZxizQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3231022)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123555025)(20161123560025)(6072148)(201708071742011); SRVR:DM5PR07MB3468; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3468; X-Forefront-PRVS: 05079D8470 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(366004)(189002)(199003)(66066001)(48376002)(4326008)(7736002)(189998001)(8676002)(81166006)(6486002)(81156014)(47776003)(50466002)(53416004)(8656006)(5009440100003)(478600001)(16526018)(72206003)(97736004)(69596002)(316002)(51416003)(16586007)(52116002)(6506006)(305945005)(53936002)(2950100002)(6512007)(36756003)(105586002)(2906002)(5660300001)(25786009)(68736007)(6666003)(8936002)(42882006)(101416001)(33646002)(107886003)(106356001)(1076002)(3846002)(6116002)(76176010)(50986010)(50226002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3468; 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; DM5PR07MB3468; 23:QSIJD87yIcBZr2e2PTEvRwCOU2+Qy3NYMyLQIPdgv?= =?us-ascii?Q?Wn02fIqKgUU7kUbvvGncEJezMBTHL3NVlPSsNN+Rv2I5BWqrA8Io7LqYTIRH?= =?us-ascii?Q?Rywzbp2UBP+ISZUdJ7mNm2ZO+VtsWXIq7eQic42c67foUd/P/RTzY/i5BHBI?= =?us-ascii?Q?gX1dCPjMqreCSHNVk2HWuIVA2YeH+vfjJIxaSLNiL+liBK8k+MudpOIKPdCk?= =?us-ascii?Q?MhTAinh4aABUiuMbsjia8TL6EB7CVhgdVIJAarJKnNOpV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fnsFoNcuFlhv5/saPa1i8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2017 07:24:28.9207 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30e6b4c4-a3ac-4019-32df-08d537c36687 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3468 Subject: [dpdk-dev] [PATCH 2/4] 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: Thu, 30 Nov 2017 07:24:34 -0000 Add logs for packet distribution across worker cores to be printed along with the test results. Signed-off-by: Pavan Nikhilesh --- 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 1c3a7fa..bde388b 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 60965dc..f5d292c 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.7.4