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 62E82A04A5; Thu, 18 Jun 2020 17:09:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B39B1BF86; Thu, 18 Jun 2020 17:09:06 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10068.outbound.protection.outlook.com [40.107.1.68]) by dpdk.org (Postfix) with ESMTP id F38261BF72; Thu, 18 Jun 2020 17:09:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KcBOD0BT1/ve0ZMzEAjLcHBbFUh1E95Zx7TdywbrKd8=; b=uZgM8DHaD6qapILL8rEBQQN4fqek7JoluJ/RqwtwYrC+oBpjNG1ODeYJXLOKx1Hgj0CrJ9AqnTwu4TLBZNGUh4a7qpN6V8DNP43WZbc47DZYKnh37JGuS76ynjF9PiBAwpQAtmFo/mVGJzmjpDBMUjiZ1HIvNaNP1/6aibnO90s= Received: from DB8PR06CA0013.eurprd06.prod.outlook.com (2603:10a6:10:100::26) by AM4PR0802MB2338.eurprd08.prod.outlook.com (2603:10a6:200:63::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.19; Thu, 18 Jun 2020 15:09:03 +0000 Received: from DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::2) by DB8PR06CA0013.outlook.office365.com (2603:10a6:10:100::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Thu, 18 Jun 2020 15:09:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT016.mail.protection.outlook.com (10.152.20.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Thu, 18 Jun 2020 15:09:03 +0000 Received: ("Tessian outbound cdc313860a50:v59"); Thu, 18 Jun 2020 15:09:03 +0000 X-CR-MTA-TID: 64aa7808 Received: from c3f4bd16d361.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 89A587FB-BDFD-4F19-B61A-409959F1C627.1; Thu, 18 Jun 2020 15:08:58 +0000 Received: from FRA01-PR2-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c3f4bd16d361.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 18 Jun 2020 15:08:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nKfJ1NMRfPrnd+KVoOVvX80IIWxur4MrtHg4ypd8ooasvKZzYe09BvjVOjmrDqWLntaESHRq1JlPqX2L3+ZUEsmHmFRjQTDZI3oVvqnzEuC3HCyNLEUO/BgmMz8Lw3rHi+UyfucMqNkQS+b3cfF6vSViIOGGPMu29oKiv0O4eYg70irb4AD0gB9Y1yANIFeJOI0aRXCc5yIcqAHUj2oLmJ/lirWGBAJZf2+rfWBFphdlCTVq8zVOVL2lfeOwR5YsVlwz4zKfmx7DzqmEMiFFgL3Xdoe11bThO4aD7Ic4jOeAEyhWG2ImrCz98ewGcN62x/x5MwV5CMhGDxAD+xsN4w== 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=KcBOD0BT1/ve0ZMzEAjLcHBbFUh1E95Zx7TdywbrKd8=; b=ImA02hEHzVmzolcgq2qb7rTweBk92vvvlkMw3zC/jpYSuuBJrTyxt+gjNWf98bx0FjV76zYKJcGBqONGT+tG4J4UxhotNYoy6xvWMV3vK/vTjfRyj/PBs3ZgcVw9agJMW7TYkuCUdtUdJKQPqzo54FzqN8gspuwomB93eimV2Cjt5T9CToUsmODNx3llsA7xzHjfZepg8VIQaIic7AbztG3odleWPFZ1N4pJ5yjyQUhyZfZMqTXc1DAjTKi7aDb7wQ23p2uhG7KBXOoEl9PIGxbxgr707ROsiRDW0wLEI4q07Cd0/8ckt7YF8FnYD2v0wl607tevGB2GwHwMGeB6nQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KcBOD0BT1/ve0ZMzEAjLcHBbFUh1E95Zx7TdywbrKd8=; b=uZgM8DHaD6qapILL8rEBQQN4fqek7JoluJ/RqwtwYrC+oBpjNG1ODeYJXLOKx1Hgj0CrJ9AqnTwu4TLBZNGUh4a7qpN6V8DNP43WZbc47DZYKnh37JGuS76ynjF9PiBAwpQAtmFo/mVGJzmjpDBMUjiZ1HIvNaNP1/6aibnO90s= Received: from PR2PR08MB4635.eurprd08.prod.outlook.com (2603:10a6:101:18::23) by PR2PR08MB4761.eurprd08.prod.outlook.com (2603:10a6:101:17::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Thu, 18 Jun 2020 15:08:57 +0000 Received: from PR2PR08MB4635.eurprd08.prod.outlook.com ([fe80::893:518:bade:fb79]) by PR2PR08MB4635.eurprd08.prod.outlook.com ([fe80::893:518:bade:fb79%3]) with mapi id 15.20.3088.029; Thu, 18 Jun 2020 15:08:56 +0000 From: Phil Yang To: Honnappa Nagarahalli , "dev@dpdk.org" , Honnappa Nagarahalli , "alialnu@mellanox.com" , "orgerlitz@mellanox.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" CC: "hemant.agrawal@nxp.com" , "jerinj@marvell.com" , "viacheslavo@mellanox.com" , "thomas@monjalon.net" , Ruifeng Wang , nd , "zhihong.wang@intel.com" , "stable@dpdk.org" , nd Thread-Topic: [PATCH 1/5] app/testpmd: clock gettime call in throughput calculation Thread-Index: AQHWRLW0CsgAFqVbykmIw8sePOJzDajeeskQ Date: Thu, 18 Jun 2020 15:08:56 +0000 Message-ID: References: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> In-Reply-To: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 92fc3034-13b8-45f9-be78-4e66c855193f.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.111] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cf06db5f-8e31-4bbd-4f79-08d81399899f x-ms-traffictypediagnostic: PR2PR08MB4761:|AM4PR0802MB2338: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8273;OLM:8273; x-forefront-prvs: 0438F90F17 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: B9Rkuw3cErxInI1sSRrfMErbSbfbErOYHd4w9JXmQJdrze9T+0ln30R+VqdhOYqeh0dPv1Od+Kuviw79oDo5ZtgBUFvxvAboSCvxuaXzidSeJRcnSXwrj/ewHkp28MRIi2ofvB6xKjfu3CV5G8kXdRqoUeS0SYgKHSfu6aCDlrPYgKT61UofpTzNPCAXW4ZizDLAaquUoMrJnY8hzEA3ry/w3d5J1Z7LBQywhdE1wITOX3DFF/KnJOCrwJTq1p6+XPBeiZ43Va3FBA/mDM1N7DuTvtJJt4h3Ylc286oCSMkR8nadOY0usl7W+Niw+2SrSFy+pUSAKF7rThSHH20p2A== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR2PR08MB4635.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(366004)(396003)(376002)(136003)(39860400002)(83380400001)(26005)(186003)(4326008)(7696005)(53546011)(33656002)(52536014)(8936002)(5660300002)(8676002)(6506007)(478600001)(2906002)(64756008)(71200400001)(66446008)(76116006)(110136005)(54906003)(316002)(9686003)(66556008)(86362001)(7416002)(66946007)(55016002)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 2+eIpab55IUsFwIb+/4gvaNUfD7XJGkfNk4b396k+pUlw8URA07wbjisKGjl1qoHZMVBMeuI6aMp991FLRM0neIMx8o3IET/kCdeJmJaKh8E29zfOB1IS66RNSuWG7qq6P03FYc7z5usqw5fnwXWgJJ9WrqctnToKc936+RFZ8nrsrdBKHy5bGWEF5hVqM3IZzFRPRdYf3ald790O04AZ4HL36wiCXP7dIN/XSpnrCinuNOxqEBBij80t6qKk+IOCIO2g0mdwBDZJ6RYPTjnC2ZloAQmBrr2wiLsGdx9n2B8KMoAEFrplGDdx9F/CkM/GH6COFKsar5E37yzHCo1w0v9eVmBPkazpfgDNx/ZGVB7UUpwaWJJ2YScw4zr61MCL0gV3+nNx+Z3UgRLANmxeU0fs21OAu5pvoEi5fG+1sqsO506ua+zBkVX3AVHDYh6Cyv+Zf3cOkbmLnVaIKHBTCR5opYaTQtRSn5Dq1j1enc= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4761 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(376002)(346002)(39860400002)(396003)(136003)(46966005)(86362001)(186003)(478600001)(26005)(52536014)(2906002)(53546011)(82740400003)(4326008)(7696005)(47076004)(5660300002)(6506007)(55016002)(81166007)(8676002)(9686003)(450100002)(356005)(316002)(336012)(70586007)(33656002)(70206006)(8936002)(83380400001)(82310400002)(54906003)(110136005); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: dd2e3708-e4cb-455b-00fd-08d8139985d6 X-Forefront-PRVS: 0438F90F17 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nLOD5P4aKBCCqETzrE63PC1I3yXLP3krK3J1E/Ny174iCtzW3grUUG0EkRUDDpLJSVTnUwE/A2gShZtXta17Xw0C5K2/Hv58VZSINBjA9gLPIye4Cy0dfo646I5pAoQqOcoePB1Nak466JZPyXM1TEI769LmKVDnI5o4KvgMvE0EAvFPyKFiqMBXlhvbXvdqHeT8xMX6r/80TyKPwFa3VX6oPYzoXjLtnlI44/IK+gSr4mIuzW5I5G3F7Mb9Swps8vfFPEPi0eTShkOhiojtJIBvZJKmbAnxwqzjyGibPwTurYLUhbD+Rb0hWHuyj5qTx09fEfJAM+kh2hFqOhoK+xISFPst82ZlURkYEyvDYYRdhHpN7OuSptG8nKzZWbfWgjFm2bzgJsdZwT2iWgl2fg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2020 15:09:03.2678 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf06db5f-8e31-4bbd-4f79-08d81399899f X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2338 Subject: Re: [dpdk-dev] [PATCH 1/5] app/testpmd: clock gettime call in throughput calculation 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Wednesday, June 17, 2020 10:43 PM > To: dev@dpdk.org; Honnappa Nagarahalli > ; alialnu@mellanox.com; > orgerlitz@mellanox.com; wenzhuo.lu@intel.com; beilei.xing@intel.com; > bernard.iremonger@intel.com > Cc: hemant.agrawal@nxp.com; jerinj@marvell.com; > viacheslavo@mellanox.com; thomas@monjalon.net; Ruifeng Wang > ; Phil Yang ; nd > ; 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 time. The PMU cycle counter does not do that. This > results in incorrect throughput 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: Phil Yang =20