From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3078EA0547 for ; Thu, 29 Apr 2021 12:34:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AF1241125; Thu, 29 Apr 2021 12:34:43 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 3EF0541125 for ; Thu, 29 Apr 2021 12:34:41 +0200 (CEST) IronPort-SDR: BPNE+9l/MiyLT21BFRUm6uCN/2lHiXspDLkSewn4r2MRufphUaSGBAlexGvs6Y6AOvb5NiT02b f3cfA5Epkamw== X-IronPort-AV: E=McAfee;i="6200,9189,9968"; a="217703125" X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="217703125" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 03:34:40 -0700 IronPort-SDR: lv6EwcslkLKY/ymqNHjWZ1fUmww+8VvqzwrZnQC6BFCJlz+EKkbap0P5jhhQhB80rg8Rq4YXbB 360TyZtqp/mg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="448387192" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga004.fm.intel.com with ESMTP; 29 Apr 2021 03:34:40 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 29 Apr 2021 03:34:39 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Thu, 29 Apr 2021 03:34:39 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Thu, 29 Apr 2021 03:34:39 -0700 Received: from BYAPR11MB3366.namprd11.prod.outlook.com (2603:10b6:a03:7f::20) by SJ0PR11MB4861.namprd11.prod.outlook.com (2603:10b6:a03:2ac::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.22; Thu, 29 Apr 2021 10:34:33 +0000 Received: from BYAPR11MB3366.namprd11.prod.outlook.com ([fe80::1065:c305:763b:f8a4]) by BYAPR11MB3366.namprd11.prod.outlook.com ([fe80::1065:c305:763b:f8a4%6]) with mapi id 15.20.4065.026; Thu, 29 Apr 2021 10:34:33 +0000 From: "Pattan, Reshma" To: "Hunt, David" , "dev@dpdk.org" CC: "Hunt, David" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1 1/4] test/power: fix check for cpu frequency Thread-Index: AQHXN4Wb5KzTM0SycEqAsqx+5m5NAarLVsgQ Date: Thu, 29 Apr 2021 10:34:33 +0000 Message-ID: References: <20210422144030.16746-1-david.hunt@intel.com> In-Reply-To: <20210422144030.16746-1-david.hunt@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [93.107.9.168] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 63c8d142-a28b-4283-11c5-08d90afa610f x-ms-traffictypediagnostic: SJ0PR11MB4861: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3276; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A2Df5EaBTEkFgMOO/WztOuS/nj5HeeD5zVgsBFUkRYO5fhk6zXkNdKyNKlnHztZRke1EtqSa9AUUvNXdrCLtAZmvCaaoTng1VIgrFfNHcIFyBYQCuN9/0ZLDPE4J578lbc/Po+RNQ9O1H0+Jyl8x7NdOO9nxCp8wK0ttxjYvPLE2Vo8FVwejUAZzd76iNvrplfrC5psg06LM1RlZysYu4FbcCkbAi+TbwH9KrNYeP1t/kZFfnjJ9bCDekq6RdHZ4bkGwP0aEz6YrZDJy4WHctxOLMLz+mFe3TJ0/TKklsVPbr1p4ykhPXKaFXoJ+DR6gjYKnL2RNMm3vnkGNo/O44Zu5DfngOZeQcrO52QK2OW+JJEsUPTkSpBYG6t2LrTAB8lia0C3RUG5C0VLsDdMY/uUwOX6NBAuU/Tj287gcgICmfCLD0c4+wX4qnjbKbFLWWH8MDHwrFdWx8gZWBV74EOmHCIfgshKLdQBoHRvhMX9Mfk+DwbB6csAfF6m26jh4ic3qutuq0C2vaflA5uN6NF6tfBJ9lHRMTdzQ/0tk8kOxQys9x7N9/z1KufGuNJTxnMG21WqFfB2fiU6TX8SRQE/Lv8zvFDUEYl0m/Yu+0kI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(366004)(136003)(376002)(346002)(39860400002)(5660300002)(33656002)(4744005)(4326008)(55016002)(316002)(66946007)(66556008)(64756008)(7696005)(186003)(478600001)(9686003)(8936002)(450100002)(76116006)(52536014)(26005)(66446008)(122000001)(38100700002)(54906003)(71200400001)(66476007)(8676002)(110136005)(83380400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tw6QSR5FoMJ1wBS2KOZD8IVbA?= =?us-ascii?Q?rSLU8O/IaWi5DrXV6nLaeTVy/DWr59kwfIxjhqZFjrFvX2Cuo6VR7jLVmFKo?= =?us-ascii?Q?+7TFw1QcHrDOFtbmIeVvJ7iCWHpM6QKC5K2bzmGb5u4NSH1vgIEO8H6JRF8o?= =?us-ascii?Q?azdLKqgL+n3j+ZnNViIWVQR5zQYGV/VDKq8bNWBbXzmIgVduUje8LC7yiHmn?= =?us-ascii?Q?RFIN16YIKlvKyJC+o2JLLsekm2kLTEiwlhzjkR785beumN659P3L1kn9fccT?= =?us-ascii?Q?IxYXA3ZehA+xkaU2HzXwlLvJWgdv7ZMt7IEcuoX2BnwhC7yOHE2JHrC2nef8?= =?us-ascii?Q?JOt4SnvtM7abPzXcqz+eo25J5ZVg12bcjk1HqPH35ELSqOyRLTkBOHu3ZBG+?= =?us-ascii?Q?C6aou4dxysq2H5KxcsmnIaCjVv1GZWJAxdFFDNAxkVcJsCVwdRDWNCVcuG8+?= =?us-ascii?Q?lD/CB++ApGd/YGVif6Q1LYUXxhJmjIR9ijwWxuHIehVkH9eGbLtVT5tGAOFD?= =?us-ascii?Q?T6o=3D?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BSHKhxpKlffSxAWXTQsafS8DLUbO3BO+qom9b1VGIh2qpD7z0IZTZrBpHVtFHu38Q6c5VrP7gcH7pmkc4k5NtMh1uVPG8CJ/jI6GXW21fAEGcv9IGidMBSzz6JFmeTBa4Ho553mjXofWIZlcYOuHpvL5EFeKzy4pKnL87kRBB7w+q3iRclxJg7rW4ipLzadBDLFSHTk1Kpa2U6iHgj8CY9HQH5d+zAqaKCVfgVUVQWOq4iDVMH62UVn9j2R1LB+5OHFtQ6nTkB6vDMzrCPXVmx+RslJyazX60zNPWxibWCptwIve0h4BwBDcfMWyvlMasZMM7l8YdprO+Ggm+LsYDQ== 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=xauKgbycFpf3+VjRnVh6SmHl5BxYF55XnaCeaqkSlNc=; b=mjFJhZKekVaAoQLhE2asxbTStN1f11SG+ynLCwnLA20aIYVLflxObYdw3gykZ22Bw8CQfX1KzzoNVg5FbaptAobv8VoJ0lC3+E+FUZcsXGG8QKYOgcNFZL+p5AhXawcnmjJ9yDMNdUsq/+7bHSseA5J31fMODaWt5xcSw4yCzAfvOuiOHwhGCt+LRx9IaDVS7tLwn8IjYkaxcFejas3uDMeaCEn6nhtzr64Bn9kUs2JzB+k4Ue1iuGE4VnPbGYsZbOMAJzNcL/ssh7ZCoIR6sUtAdBVPR0zXr0nk4g8Shc/79o1wPHNwJwcS17pu+kWJXK6Oab9Zi/Ql9EqqTNjwUw== arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xauKgbycFpf3+VjRnVh6SmHl5BxYF55XnaCeaqkSlNc=; b=sljQzPUfpDFqKJfX5XFcHOuPB0fFOV6Zf/jT2Wsl9q0lnjnssNP1hc/ZZ9/M+JCqEezrTkt06zCrywnTDz/zLk6QWreXhXT2Yjg3WTrnu2kQTaFbqQig/vztjSkH081lFILAs96AXaWeZfIVfjVsfrUZg/b6mEX6Y8yVwDRb86g= x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: BYAPR11MB3366.namprd11.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: 63c8d142-a28b-4283-11c5-08d90afa610f x-ms-exchange-crosstenant-originalarrivaltime: 29 Apr 2021 10:34:33.4586 (UTC) x-ms-exchange-crosstenant-fromentityheader: Hosted x-ms-exchange-crosstenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d x-ms-exchange-crosstenant-mailboxtype: HOSTED x-ms-exchange-crosstenant-userprincipalname: u+tP069EnrhnSBC4PrJMHWyQEWrqVfaOLEhmcKm6UkNARiCGR4g9ltYqkBPbEJrRc1WJ53p4of9bm2IQKse+uA== x-ms-exchange-transport-crosstenantheadersstamped: SJ0PR11MB4861 x-originatororg: intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v1 1/4] test/power: fix check for cpu frequency X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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: dev On Behalf Of David Hunt > +TEST_POWER_SYSFILE_SCALING_FREQ, lcore_id) < 0) { > return 0; [Reshma]: Do we need to return -1 here and in other failure scenarios belo= w. > } > f =3D fopen(fullpath, "r"); > if (f =3D=3D NULL) { > -return 0; > +if (snprintf(fullpath, sizeof(fullpath), > +TEST_POWER_SYSFILE_CPUINFO_FREQ, lcore_id) < 0) { > +return 0; > +} > +f =3D fopen(fullpath, "r"); > +if (f =3D=3D NULL) { > +return 0; > +} > } > for (i =3D 0; i < MAX_LOOP; i++) { > fflush(f); > -- > 2.17.1