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 72B06A0547; Thu, 29 Apr 2021 12:34:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C5BE412FF; Thu, 29 Apr 2021 12:34:44 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 7100741125 for ; Thu, 29 Apr 2021 12:34:42 +0200 (CEST) IronPort-SDR: X5HkY8qRGRxhd8xtPcSm893BV4ohU6vL/WHRNQ8OBwdCYFspb0+H6vZTYyAPqufQSWvjU/ygyW pmi5OfAJkDlw== X-IronPort-AV: E=McAfee;i="6200,9189,9968"; a="282315776" X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="282315776" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 03:34:41 -0700 IronPort-SDR: hqHr55KGutknnXqGy0Oj6G4Ia48P0KRmFr/we0bLIGWBylYCWuUDk1kGBpiK8a0CPFmQYZ6qlG 9nXhEFIYXWwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="458694036" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga002.fm.intel.com with ESMTP; 29 Apr 2021 03:34:41 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX605.amr.corp.intel.com (10.22.229.18) 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:40 -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:40 -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:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HRvJwXSMQ8oSFEpr/3EwqLKpKy0A13a55uFfaAultCd8VqS7TW/LXNAWtrJRDIYDkYAJ1Rc5R6qAU6UY0+Qc20L1Kr5L080P4ylAA+9R3I+uF1qGsu9OEXEga5M0AgWQvGFDzor2nFWHVPrKT4JuoHeOt/iy/LDGpQLcwCUOx4AM+4zvfewD6hsO4vgT6BUgVYZp/YEGC6J6ABaeJ3ZcRXiJ+/PdCHeQ8LPG8/sZjQGhY6Zbwi8VziHmZ2BJo/Ez7dW6wtw/BkRnp/42Te6pfCuZytL8IeyK9VvN3hePWF6Xo0b0VsPiVbWJywx1h5HMdIgXX4SxOiKBsrt1+mWAGQ== 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=UD0ZNYmnKZwwhJJK7xdrR159Gdn3jFH1ia7C1OwMB90=; b=OmevKEKS0/G4KsKEuM3tvKCnH+a0WR22rWwo2qz/GHNz6HsOcRcw3kCYA4vdcTQnFSzZNuoFXSzXM3nIxA3v6bNbd/NME5jy3NIG2oiONVsTxmXQtHj8j+lFDMMHKH4ts0zLXqZx89zJo71WaZIeokxNhhxTrSr3HHHtbrcjD3UEvdLL/6dWPn8Cq3RejVEPAus5SJTaHQPo0EpgfkUCcPuFOrmd3/LLDbud8vaSbIfV9b9oKAhKu3a3O7VRSge7UTsdavteCSi9On0Ug/uRkV6mSMXMYAcLen3uBW+jUXLaEVbtsU0B397L7W5ud0zac5R9o1Ppzqg1oXfCniUC+w== 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=UD0ZNYmnKZwwhJJK7xdrR159Gdn3jFH1ia7C1OwMB90=; b=BxtGh2gJuGVP5ul9Oe4q/6VXB4lzvrpGWOAa/R9ULLwvT4eSbK/HLY443xprnO9dnvRXfgnCNJShz+CLVPqLi9k6P8XyCuQrRa4WjZ50+U1STBvDkGwXFp/fsrlnAdBzRXoMrrQiK5ORx4wstr/cpZ0KElAH9bkJVdHpbTLNJ5M= 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)(83380400001)(2906002)(6506007)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?W23OMa5dpQ0VoDVrtE9b2AhTHHBEkrIZOGr7JEa4Ni0lKSp87HpUk9ZfLNJB?= =?us-ascii?Q?ZeJXbP5ogeXllYRMFaO0pH/RXdPsZyabD6CtpArP0TXvKzyjZrZNHJ2Gk3HD?= =?us-ascii?Q?mSuWx9luFp9V3dQdS3Kh1/XhgC64ySUsTJNmHuWaOCiIYoNawGOWLU7jRRgj?= =?us-ascii?Q?V4HKWAIybtNbT1CvNDa0TjZAhsi+GlKIshD2WwEq1yZ89JQG6saDlWRPZ6cL?= =?us-ascii?Q?OKewtjaqVCyHuqB//c2ezs/5x6kkaBjLOSqu0th1rHy77T3JHMQlTj6zOfbv?= =?us-ascii?Q?NQYx0BUNgonbTTAj6s5uaji7BudYLNJftmuABM1mEQwnQijRlhE5LTPEJOQ7?= =?us-ascii?Q?3D/j1x+Bv84zkXpF4yd7JzR2o5Vc9dqeFT7XqY9Jd20XDMF98VPmfQDmBCNP?= =?us-ascii?Q?HUtW0LoEAyvMhuaw2VB247HSN2h7R/aDa2B/RQs0lHeSkyf1c0G6R1YfcGQv?= =?us-ascii?Q?RYRUS4TnzZzuA6cbrQ5tTrd6gAYE2WCOyDciTCrI5Ra/icXPdB6Evi8MCmgE?= =?us-ascii?Q?6xZVHf9WZCbGg4ZyFMjnYAgipR25ffFmx7/exPXUqzzG6+vpksbG/mEvbS8C?= =?us-ascii?Q?q6/rFvDiJqIDozbMG92C9h1Z3IDN9a/6oSC+QTdm+QTTMS3Qk18u0DGnmA1d?= =?us-ascii?Q?VOR+csqyv1WQephRCUYd/IuQ5UpZVOf/q5IDhQYTRp21wH43oYwRg5s5x3Cw?= =?us-ascii?Q?qlSI2/wrCZUa6msvt8hKaVPFPL/DUjWUCXYXswEuZA8pU7wQEkXNIdOSmrJa?= =?us-ascii?Q?HbTeVq5mVy8Qe8dVLHBs9GNoanZD0Y0WJw7Tw6QSR5FoMJ1wBS2KOZD8IVbA?= =?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?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 Subject: Re: [dpdk-dev] [PATCH v1 1/4] test/power: fix check for cpu frequency X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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: 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