From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0087.outbound.protection.outlook.com [104.47.38.87]) by dpdk.org (Postfix) with ESMTP id 4792F1B1CF for ; Wed, 10 Jan 2018 15:52:13 +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=VkhtSjqXzoTqDizxOCikpcJRxkBr1uhPo5rQpR3+6YA=; b=LxzAUOiKxD+3nAh7E7/umKkGVOzSX0ENE0XwDOYgY1lLGG+WVtgKmpku124pisFHTyJTM9nDT224K5onjM76TPUjnzvqaCoN+Rfz0Z2Kwc4Msh3vWcs43esXPVWsM8R7BVcsZ1EVjKWhGgALK8beMsTPgW+3RP4pUPiGxhd17dY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Wed, 10 Jan 2018 14:52: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: Wed, 10 Jan 2018 20:21:33 +0530 Message-Id: <20180110145144.28403-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: BN6PR16CA0009.namprd16.prod.outlook.com (10.172.212.147) To DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3502ce28-e5cc-4e99-dd7e-08d55839ba99 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 3:Z5uyiDIzh2jzBJc7PqHijKK1wYjeChnlfyGgtctET9LWRo4KJW8kvUl/wtCLqalIqRq2hpdKBxecsgZALbBtO0T3kqEYE1K8tQVTPy6njrXkZT8EyT8UGnC12+D0JefbPkA4fXuBYssJEY4NKeXRkiOtS/bcGp/LIpNPZ9e0vvRkanC4NaypGtceOiT7jLcqbV14N8nT/5Q9VsMDEX6dpyi2HQH73ptn97u9Tj0pSYhX0OO4UbCKxi+n5zaHhI1Y; 25:10U+lcXgLmjhH3AMyiTeuoXMX3SxqOU1DiNJYarNwQ527Lut7Sejkvxf9/qJCIbT3Y+WayOOzg/6HVeqTCVWD/NaQo1ZikesohMl9NjlOAR3UHqAMA8QEkDhNF1E+PVcK679IxS9iGM9h5ZaNB/96i1gKCiu1PJJJTIDrYfkGThhH4JPEFdOnOcP0uPvK8pdhkhqeWhik+nKiV6MSORKCqEegzVPSowAD7MsZF04v5jf4/JmdcwPIcZroOavQ+fMMTJ/qx1IIJQppiAL9SxBAEBYWQd9eYkvRkiUxE8LCOGAZ1aB3uI0sYMS3AQUzF3RgsI5b/wViKEA3z6i+2ZqGw==; 31:qHTpo3P7b+IPmwbq8g1G0KrCkLyywU20pG21qlrR0klAkyZ80kNSkGSS/OaB92y4QdPAV8dEGloKRlhDOlRrc+WB5VVsgQmyIKoSCP+oVtIYo3nn3vMFHvsjuDNjiRZc7rmzn8Mn3p8pwyzstjuJkwAyduU9Vkif4EvaoUt49oN6CCHek4b3Fqe3Lj8s2/U1SilE8LDjeDyRCzULtMs3hl/QsZ0EBDJ+Zz536kV1u+U= X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 20:Q3irOMl+WOVWqo5G07jbttN2ehxEibhlT37Pm+h5g7BVenEJmocovaS1Iam3SjfyOk3ulTSdgQMAFWKhysbwdF9cLqKzCXIbeI19nSWsS8JoReo3dkk9RFcQfrqIrby1TF8BYElKZr6inKE+BwrhtFeNpjNmWORBDj7aGXJYEWOVU5lGaTysARh0J3fKXUybybmyiVmJbbmlAMnUY4eYNt9dtW+gDHwcGkUphAFc12t39WKi8+3WnC9n8elSPqTD0Pkkh4qnNed0/kKngoFR5RL0dhBVHHxtcMnnMEIIiU2FlZfNvNZeaeV3OXkwl4uPi6qfo3YJvo2XVcfHG1BlMm+haO6TewyUk2GwmaRyh7NWtUdDlZVIe6vbLhyRNZxamhMz3Nf9TlSp/0kek5FDa9buGC56p4HzWLz3YxG0N0A5pDRQluNGdoyu3IZmdmErn89iJEDQwduAiBvnI1xQMlaA8B/UXGrDV8pP9fRJI/R9BoVuG2HKr0r1B8cpDY4SJg6e/otEEiyvm1j/hjKn/BTC3ttVoAaih7l0zr8ntwLS+M8LrJfTdyf/Xd3CT2iXZpc32Ilo/Bzzrt9g+qF43HASbaP1b6t3cxkP/En206o=; 4:9K06Sx1V1lWZ1eH9+M9kGf4xtr7EDZbbIaLS+rvMehlKvVIeAQhROO3xERj8S9yBk59zAEa/76w9Tmgpep+dKRCmC4VOQsFuWe4QlNBDIQN6XZlpTKNZ9DCix1fB+xeTVmzfjbF9r70Tzs1b4xPGCXn5gPmqyJ1TLPd22Z2I9ZmNrj1JDI91wQwi8NWgwpm4+4gSvLrg6WZtNlTrghcjfyzGZl3h0nFSASdZEG7WfUotQPmgUvNqo6Lu7US3JOtPOptWX1blBEDvBHHie54uIw== 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)(10201501046)(3002001)(93006095)(3231023)(944501075)(6041268)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR07MB3466; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR07MB3466; X-Forefront-PRVS: 0548586081 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(366004)(376002)(396003)(39380400002)(199004)(189003)(76176011)(25786009)(107886003)(4326008)(6666003)(2950100002)(106356001)(42882006)(8656006)(8676002)(105586002)(53936002)(6486002)(52116002)(53416004)(6512007)(50466002)(47776003)(5009440100003)(305945005)(68736007)(51416003)(386003)(6506007)(69596002)(36756003)(72206003)(2906002)(16586007)(50226002)(316002)(478600001)(7736002)(48376002)(3846002)(1076002)(6116002)(5660300001)(66066001)(16526018)(81166006)(97736004)(81156014)(8936002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3466; H:Pavan-LT.caveonetworks.com; 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; DM5PR07MB3466; 23:7rLif38lIU0TS484ctzZNA6JRzedPIFPo2BS4X+Lm?= =?us-ascii?Q?7KhLZKvWt1bEH6mKshB58SjrMUrbmVE23Jd6ykX0MR1nhkNUEQ3XhpvsQdXi?= =?us-ascii?Q?hVYPHj9MOPZzwT31NZPg1qpXgKxRw4rqOUf3SfiwNpa5WmCO4FMk8xt/NCoX?= =?us-ascii?Q?PW2FtWDVw3038zqQ33373bMopz9n4Z0/sTycj/hWuUt9qjeaVlEN5v7k20la?= =?us-ascii?Q?LD06gzndJGX+NnzGtrVTvxiV3hILwXMnzQYzXDGGfqrI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54/cEH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2018 14:52:07.4506 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3502ce28-e5cc-4e99-dd7e-08d55839ba99 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3466 Subject: [dpdk-dev] [PATCH v3 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: Wed, 10 Jan 2018 14:52:13 -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.15.1