From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0062.outbound.protection.outlook.com [104.47.41.62]) by dpdk.org (Postfix) with ESMTP id 396F01B1A4 for ; Tue, 16 Jan 2018 16:18: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=ZsCLQc9ZFbqMOJqyQNYesOd+Fu3XJR8GCtpnfqDZ0/U=; b=U3oJp6nDKUNNNsYLFXt29QVvEKoUuaDePaYIsTiBVAxc1SiTAAWsJareBnYkRpLFKZAy55grRuoMHIQjQovTCoDlbx1dXj8Ao/KkMmsSOKz0IE3MPbMmAU2yO9/9dbbw+xLINMCzBO5Bp/At4/XO+ce8n29mzKooUphXjpSoEik= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) 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 15:18:14 +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 20:47:16 +0530 Message-Id: <20180116151728.566-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: MWHPR21CA0059.namprd21.prod.outlook.com (10.172.93.149) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3de9dcc6-c8f3-4c58-f99e-08d55cf45e33 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:3HpzQEEppbdJoVm66qUXF4mXzLiZxqgZ85x4GjCkevhqc11NYZm5t6rXv5dg9GIitylYNu2zrGAAWjHietoSVUImPk/wkBrLt48q8uTWAGia9+aSTY45UA9fRHgqClfp5QTfOGL9toWVpH4lHo8JnO+dLRI9UgdFPKC6z2xzr7Er3Kstk7pG8eMgsOVzAsh2WVRlQ0q/Fnu7te3uPyIf0aTfbjyMG64USoL3f0BkiAtDLRNxknQQYS7Ubrop06Fm; 25:6TIA4wBjUe4m2f7SL9JhT7M067WGs1yqe92vUkUMu8ztVhEZaAYU0ErDpZbzsyCIGiB55bZHdP1osfJGeabsxMGmfXMcHrPEgMcG0XB/sFlXjUlc6dSh3e0MVuez/ODNYIMN2cAS2NW04k/+MxAW2cqxKqUe1VjWHrkzTFbx7XF2nMRt+AmfoBgXCzhc7w0epN3EMjTmYDOiORtdFWBsJcxAi0KesbkTgsUCLnFwnPphrjnfDkvBe5U0R8bNEYDp+8Dixm+3uYzwGRORVbx2NVhqz5SGw88ukBhlslp58Rzlb+rwXhwnNpvsjOy523HQvNstceFosV6Iy4wCzKo5AQ==; 31:/RI+H7scbleINcBXbh09k8rSua/mO0psV5pQTklTBm2bu59am+nUaC3UIdFEV9r8AMq7Ua3OuBKIqFnZxhqsmCxYQmDi5zZGG4yidDIwj1j8w2wNZmDWMaqUqUvHZ88gPgm+DgP0j3Mtz9BboYopvjHXrelqidl0VqGkUO+SdYhOhvyBwKHX9QmCvxFnlvAxgRhimcGTQxO0dAcjLgVXQ0c86FyfexxbFvbABPA82AA= X-MS-TrafficTypeDiagnostic: MWHPR07MB3469: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 20:yrfWwuBl5ZiWWmlVFmMTSK8m4S75Ruwt8lseqxkpvch7Ye+TR/3J8ROSXUbzZY0VjMLYK3gsVkwdy02nUIod+kFY6S2B5OA17oo6+pGy2cMx3wossmKd4W7X7tliVtpNpzL/yIdcPjlELrqd5qe20XAXXsXEl3ixJlTYBq3unnx4V6Zu9vwF38etQnO75Gqw+Mx6kUmvhZSSdwSEkUIAg5JvL4K+2F6T0/sb/hOEUKSu2qUkQYDGliTA77FvOLnRfbQ6q5DckK0C5TW+rUkmigws9ns+68fd5keNHIq9i6IzQCXzQPZAADduiOcYqBihx5CcLBEcyNwurSxAap+DwotAtevK2RiiQXM3x3hshcyUiv5vfLUf5pCuLQTSrrRoGPHd1G1fuy0gYN2sLJcm3p4BvZRAvzpA4ylIPKDq4vi1s3PRp0Hh6hETzkXK3OtydI0Ku26dsHk67f2qMZA+suZeoGJoj+KBZUw67CQ40oZXjiHtA/Zy4HolLoronPn2YlvVp50fCN722xS5jaXI0FFX6oYHscpiQGb7C4shT7QH4vpX5AInypjl1I6DrAi9AybsfohuOPRyrWef3UcVFGUGiglaMy5KZa06RnLq6rU=; 4:V/335sjDipu/1Fdk9qB1ot6KJBypHzTMTWANTd4W23qccaAj7oNBoxKHfjy7NwJr082J8SSjhI7GIbPXMdoLEYXxcFU9w7shTb5R9e8i0yAQESv3TwTiZ8qpXqZEvs88XTrQia4PsZHvIUGZzsqIgbueIMXKZA6v+8tFHbDwAdH1cPn1xvYhxCz9JU6AXfjr7zYczAjJWM93AKjryQsiXV6rDSUVA2DBZoO0/81v3tNFqadLw55rsOxp+iOqCM1n2DbMUOOOc+oDjjmfoOXwww== 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)(3231023)(944501161)(93006095)(10201501046)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3469; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(346002)(376002)(39380400002)(39860400002)(199004)(189003)(2950100002)(4326008)(42882006)(5009440100003)(53376002)(107886003)(25786009)(68736007)(16526018)(72206003)(478600001)(316002)(5660300001)(16586007)(966005)(26005)(50226002)(53936002)(7736002)(305945005)(36756003)(53416004)(6116002)(81166006)(8656006)(69596002)(8676002)(6306002)(6512007)(81156014)(8936002)(97736004)(386003)(6506007)(50466002)(66066001)(76176011)(59450400001)(52116002)(51416003)(2906002)(47776003)(48376002)(106356001)(3846002)(1076002)(105586002)(6486002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; 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; MWHPR07MB3469; 23:M8uEDuJ2SJKg+wIbzP0+j8yZdbSDzolqCHaUWfUON?= =?us-ascii?Q?hgXhXnQIHBIi7C3OLthk32MpR5M6oF901YSZMU8vzkr9PFrwwRxNpc/iQtPu?= =?us-ascii?Q?dNzgsRdz0FRv7idVAVkuPD0G0019SE7yn32k1VnzPIrS/Q2uGjQ2/3LldC9G?= =?us-ascii?Q?6cagqZHme1ON9toJWZ7kVrfNLwA3Q3TRvSA9iWD7mRmJI7DUk9I+9HWvoWTa?= =?us-ascii?Q?nduUZxYhEEeE0860gMxVSvecHCuORlJD+HGboTCz8hXsMPdLtKhgnb6bp5BO?= =?us-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b78Em8wka/qGwbkobVWYtWBeEDSSY1Glgsf7H+qWR34DA07tAaZBx3W/aw6AkXifZp4VMAHa40j6L4Y9NfE0jf7UvQa13SRVYCevKh5hVo SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 15:18:14.1438 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3de9dcc6-c8f3-4c58-f99e-08d55cf45e33 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: [dpdk-dev] [PATCH v5 01/14] 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 15:18:19 -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 --- 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