From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8D208A0519 for ; Tue, 23 Jun 2020 15:33:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6986E1D65F; Tue, 23 Jun 2020 15:33:33 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140051.outbound.protection.outlook.com [40.107.14.51]) by dpdk.org (Postfix) with ESMTP id 53B521D64A; Tue, 23 Jun 2020 15:33:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I52HNc8I6wnvQD6QPE8bdxTbAYETtszJzeiIcm5qjoZfIsykUDY5jkpe8eoxacyV68HrwrVJ/qeV0GMqlH2CJNBucSnuRhDkHa74LCFUYXZLtpCuqOO7qcmmA5h+G16X6jbAKbMcciMbhF4fw9e17SgLHEUb+tvCKrfEXtuHGM+zEy9FHCuLfqj8yxie8pkzWYkarGcqIlfLPzTGtGPc5fH5UvG12218NaN/J4ICRI9VH5VRJTVqgiDmBz9P2itnDycIHKiXqLGIWr6AAwhTV/iLaxWPIely3+knto2zjPXyQ2/qxJ+6hpAfsFPW/H6scplnNt+QCBSXMHoPvxolQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m3Fwr8bRruIGrdf9m7YNLE/LwCQ2tVW8XbOwPnEYHMA=; b=ewSyJkpccSlB8KQeH/MPnlruPjK1kAjKILcRJvLkarL8wnRlIOke+i0ZUiwY28wMogBiX8Cuv29LU5vxcvb0G5r4B6TPPOeysdNCRs39rjjjlomHtAthjMa/3wIMF4inU1vpom/2ysFH/kZOkuU93DMvfKtF5L31Fk3DVcmET6W33AoPm6xNL4RJ70oXMNIGUcN76Z74qw7W0cmPJpSIRMXB8W5u6zFohVY0A8k8yGnAsKxSnBLsvf2lL/LXGyxXXX0s0iq8ZSWd3rqHgr7t7ECvlkS7AlK9UbCAe8eUlQmQyynWCjhtatUN84xUP0jTmQyYYdBhA57lxPLS/vobfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m3Fwr8bRruIGrdf9m7YNLE/LwCQ2tVW8XbOwPnEYHMA=; b=Wn0S0/6vaGCIQu/XVhi0T9aN/3Tt93FvcoA3QLmxybkstXhg4VD+ZDnUleemLnT8h661BMiaOOujx4yigSgdWhhPcqS+0eF7PxRVe3OHR3H7TwIRNJl3xbLwZ61jqiUzPBzvKHkitWv9tde0Jbpy/9TTZahchJzhjoFUs5tEi2A= Received: from AM0PR05MB4401.eurprd05.prod.outlook.com (2603:10a6:208:62::20) by AM0PR05MB5219.eurprd05.prod.outlook.com (2603:10a6:208:ef::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Tue, 23 Jun 2020 13:33:29 +0000 Received: from AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::50d8:317c:f079:9c86]) by AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::50d8:317c:f079:9c86%6]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 13:33:29 +0000 From: Ali Alnubani To: Honnappa Nagarahalli , "dev@dpdk.org" , "orgerlitz@mellanox.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" CC: "hemant.agrawal@nxp.com" , "jerinj@marvell.com" , Slava Ovsiienko , Thomas Monjalon , "ruifeng.wang@arm.com" , "phil.yang@arm.com" , "nd@arm.com" , "zhihong.wang@intel.com" , "stable@dpdk.org" Thread-Topic: [PATCH 1/5] app/testpmd: clock gettime call in throughput calculation Thread-Index: AQHWRLWuRmvpnpMMCUSwfIwLD94xIKjmO5wA Date: Tue, 23 Jun 2020 13:33:29 +0000 Message-ID: References: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> In-Reply-To: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [84.242.49.134] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 31cdc8fd-f1f1-4431-a20e-08d8177a03ff x-ms-traffictypediagnostic: AM0PR05MB5219: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 04433051BF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: d29b9K5W+rJswfqAQc6jt8x/PgbCYzxAp1uAATmlb+UpYH3tHA43b8JdCzSPw3vzJ4hnHvv19bLCsQkuJLhnjcolc1qlU3SDbMvchhLZtbjqfQ4b8Jyxt2CUhpWjq8ZRkwlKoa0cnNxEVr3GCSaV0Kb+JTmVXQ8mGgyS1tW9Cl2UB2JcE8wBojFMD0bRKEraYgmNF00iAqIB9DsseLXjXje7j10FwgsHSnMJX9hu5iSwTefUjLIrr4YB04hXhsN9uSa/wIUkL/WEuLSUS0Mo1sJdZYAFwoJWtpqGTFhf1n5Z0tu6lC/c5UmRurRhygJqb3EaoWsbDvh5icN39cVVGQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4401.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(71200400001)(4326008)(498600001)(9686003)(7416002)(55016002)(83380400001)(86362001)(2906002)(5660300002)(54906003)(53546011)(52536014)(26005)(6506007)(186003)(7696005)(110136005)(33656002)(8676002)(76116006)(66476007)(66946007)(8936002)(64756008)(66446008)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: YnJ3q1TBAZ0llvTy2g9JxeMaljdqOMpNU50qLnbMXEL+XXnfIz9XpzkeHrQ8hHkqN4gTAiqihhsU0jD44RrYWWMAmjEUDghpMDNU1Ivl9E0i+HwLyMPgC90MUp4kMfAdMfGktdsV3QWB7nJ8WM77eFgoU4jomv471rwhy0y0nUUPp5zdt20+E0Vx9gCeDW55yWBhHKCWcc7yxSKdQmFwVCQRbJtAA2YNyC6euECCcS720OEjbg0+TkfyOw3wgKlmpjBUwptTA1i4OZaxTMJliReiUFnMHWJ/ZOFQDifw9NkeWyxtEt3ZSXVg7OcYGy+NbnFLxAFm8oZgdSnYOaziVxG8I9U38u+SxCEwUJIZmSXzzsj3wMLv8jkj0euAW3P2nnKNmiFSkxumcTM9cQSB/+l37FiJkUbh9Q4Q7JzJrLysbLmLMKJHfhLvntRvVjpyLSlKRFmGu13Hbzu5N9eZcSCO/Q7mE2bdEvHpXA8clbw= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4401.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31cdc8fd-f1f1-4431-a20e-08d8177a03ff X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2020 13:33:29.2089 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wKW/pLdMk3h+7QtC1qvjr985lMiJ3qS6I5Y7g+ckKyhlqD256IjR+OfTTYGGZj+6kc9BZHwViV4rzdhNymWAmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5219 Subject: Re: [dpdk-stable] [PATCH 1/5] app/testpmd: clock gettime call in throughput calculation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Wednesday, June 17, 2020 5:43 PM > To: dev@dpdk.org; honnappa.nagarahalli@arm.com; Ali Alnubani > ; orgerlitz@mellanox.com; wenzhuo.lu@intel.com; > beilei.xing@intel.com; bernard.iremonger@intel.com > Cc: hemant.agrawal@nxp.com; jerinj@marvell.com; Slava Ovsiienko > ; Thomas Monjalon ; > ruifeng.wang@arm.com; phil.yang@arm.com; nd@arm.com; > zhihong.wang@intel.com; stable@dpdk.org > Subject: [PATCH 1/5] app/testpmd: clock gettime call in throughput > calculation >=20 > The throughput calculation requires a counter that measures passing of ti= me. > The PMU cycle counter does not do that. This results in incorrect through= put > numbers when RTE_ARM_EAL_RDTSC_USE_PMU is enabled. Use > clock_gettime system call to calculate the time passed since last call. >=20 > Bugzilla ID: 450 > Fixes: 0e106980301d ("app/testpmd: show throughput in port stats") > Cc: zhihong.wang@intel.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Phil Yang > Reviewed-by: Ruifeng Wang Tested-by: Ali Alnubani