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 13F5BA0C41; Thu, 16 Sep 2021 14:08:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87C5340151; Thu, 16 Sep 2021 14:08:11 +0200 (CEST) Received: from mx0b-002c1b01.pphosted.com (mx0b-002c1b01.pphosted.com [148.163.155.12]) by mails.dpdk.org (Postfix) with ESMTP id 63FB94003F for ; Thu, 16 Sep 2021 14:08:10 +0200 (CEST) Received: from pps.filterd (m0127844.ppops.net [127.0.0.1]) by mx0b-002c1b01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18G8rCtN029467; Thu, 16 Sep 2021 05:08:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=proofpoint20171006; bh=bqP/FwpAlE26FDDgmudAzgWrqM3ndQadD3GKThQPh2Q=; b=WE65rMkfFbJVNdrvHKHStDVyDY4ipMCLDOnPp2Lw+fPxgta+mGjufuzIo/VWUBmPOXS4 JkQe/Wzam+GJFm0b9hpCSKIZWsKx2DSRXcFYEdcIfzdy71bZ8RT/Po3cxtZ7Ro37nlsc fx8NMFA4wQ3sUE7/gQkoRc1Fqbn/I6YQn+wg5rrpKzROjASYvcbF3QRas8WCeX79uuQ8 1Fr290vZwyFUVC6jlSafjCzVwzLbieL3ygyrM7Fk8oX4EK/Cs7+d9SgQb8r3D/R7pqs3 z9y2zOMw5bKCGROpZTJrpQ1zPsoOx5nNjXPjVbGgCRVlaJ+9Rb6uSuhE7be3C423hLTY lw== Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2042.outbound.protection.outlook.com [104.47.73.42]) by mx0b-002c1b01.pphosted.com with ESMTP id 3b42tdgc2c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Sep 2021 05:08:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eh0pERMk1y7ZITkrv2vJ0F1jDlhvzWzrIzvaZSu9zINFB+7ioVOKORm9b9GVxeJxiSGchRjkl2KLa6z6ku4A6V+8THxcN+BDxUV0ELtHZ8iz6JRfh+rWKyHe2BrN8WDWToxatFsEJ9u6qEbWuCIyJ58vrOfKwtDGQZEF4H+Cr4laYFo/I3PRa/USMzfNi/z70w0Ws8tM4PiGfCeqkm/JaOZeB2sGnDuXskey9qXHPtITrrscN53N5rBY9zfq9VsU2/3nMG7MFzuGNSFYDJwlEt1E5XcwkETCwndMiKwyYdUp3Rjr/xigYD9Ny2dGMSV89MsE6QuXlt8dE9LnD3bhTw== 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; bh=bqP/FwpAlE26FDDgmudAzgWrqM3ndQadD3GKThQPh2Q=; b=cMwtbzvMyZhTwJ8pUQ5i3j5eSMGoMl5GV5Xlpn98VhJK8TuCltM4w/K+l7XOF5qAdQzYVKzUCybpYiYTRWvirEt4RStMH2/yyZInP9clJKIDy6J1TGRHT/uaVQFjAPx7ls1neZzLgb5sW3qWCYy8UpGgAuvO5rIDH7HZE3JPKgcDHawpoQfegQTHc2/n5LtC8Uj5nDqH1hzooZ+0ifgF0gBq7cn8abqSEvxopvP5QRk1V6TzYuX+QRAcvE4JPL5gTrXi+7n67kbeB3nu1J2s/jcDtoj/J/mjyimI9V7qiDp6bbWa8OI2pIQEpyNzKQYwZJDbe/gdj0GPCRYC7dNqFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none Received: from BL0PR02MB4580.namprd02.prod.outlook.com (2603:10b6:208:40::27) by MN2PR02MB6895.namprd02.prod.outlook.com (2603:10b6:208:20c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Thu, 16 Sep 2021 12:08:07 +0000 Received: from BL0PR02MB4580.namprd02.prod.outlook.com ([fe80::b9d9:2c4b:c85e:dbd0]) by BL0PR02MB4580.namprd02.prod.outlook.com ([fe80::b9d9:2c4b:c85e:dbd0%7]) with mapi id 15.20.4500.020; Thu, 16 Sep 2021 12:08:07 +0000 From: John Levon To: Dmitry Kozlyuk CC: "dev@dpdk.org" , Anatoly Burakov , Viacheslav Ovsiienko Thread-Topic: [PATCH v3 1/3] eal/linux: make hugetlbfs analysis reusable Thread-Index: AQHXqVQ6nKd9qbqLnUWnEGFQgu2Af6umlFyA Date: Thu, 16 Sep 2021 12:08:07 +0000 Message-ID: References: <20210716110806.2566788-1-dkozlyuk@nvidia.com> <20210914103456.535427-1-dkozlyuk@nvidia.com> <20210914103456.535427-2-dkozlyuk@nvidia.com> In-Reply-To: <20210914103456.535427-2-dkozlyuk@nvidia.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nutanix.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: aa93ba59-fc9d-4195-a2f6-08d9790aa521 x-ms-traffictypediagnostic: MN2PR02MB6895: x-microsoft-antispam-prvs: x-proofpoint-crosstenant: true x-ms-oob-tlc-oobclassifiers: OLM:1468; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: blJs5trnNSLMclE21H+cTU9Gv78Woa15QgHMmlxEFl7l80sviyQC1emuUHEnTRyU/Q7V6oguLzJ2jJcVilzdPALREGnUz1z0Oq+kpB8Rx9cjs3SMz/6gLX9HnRMPJpanmg2gHbNOh9+KBeSR+rk7LhnZshxZtO8wn5enRdYrh/L41hBU4xdcUl2YzsoOhFy+SzS9y08e91H2AJ9pB06ALMIeH4yozLc/ZgknplDULJHmJsZZVZLvrktWg9Bs1aCQkTPp1CfyUlXNLOFwWvt+SZz+d1vmSJHFu2sM/yjOPlfiArRx+wjpT7MjmKE8rehzJpijzeX2BylnguonkRoHsd7oLgEJQgZce0poHMFd5au8lNlEi2KXk5sqAy6kgMVyd3ZyN816S1+tGmCrpNcDBcugDgZVovdY+YaEkoizMMDgWmrmWCRFUrUSMrUqeB8X9f9O25HWNYjHVYVqIYbOb/My3+GoJ2W08P2LuuByYfrfAkX0TueNyxMpy0fBXLfQKyFPozAgzjk+H+9u3kFwkEYUNAvYp5u2kchkSDgGB4bPdKvfZvNKpavn22OXujBHe1i+cPCDvfJoKE+KdZ29vHBKS8akRPc5lNcM73Qh9AX0118s+77l7gzMPeqfKmrEyhxwKKFdxKQcBFlj2XlVfdmgEIxWzXn1LWiYiYmnd59CiAyLfyoqmbNUa5lGMEbB4L34P03cmJgNbb6T6S2BgA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR02MB4580.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(36756003)(71200400001)(6506007)(508600001)(558084003)(44832011)(5660300002)(2906002)(6486002)(66476007)(66556008)(6916009)(91956017)(76116006)(8936002)(66446008)(66946007)(38100700002)(54906003)(8676002)(9686003)(122000001)(6512007)(4326008)(186003)(316002)(86362001)(26005)(38070700005)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XLnvU2QPOcotaxcCimmQCQvyuKM8xmTmmaWG1LwFCUWfBGdAwJyXUzrYRzfQ?= =?us-ascii?Q?4MGpnEj6hm9yAh+XgV35y7OvVvXtlXYmzWPb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tNbN+evpENvilbu+RVopYhs6mJUp/Gh7hgJamFtJaGPOiT6yNMg0BFIwGw?= =?us-ascii?Q?XFuxdG2GW3pkNPdWIIiewZK99ndcajzfSadwM/udAoafMOD4i3bd+8nemEkD?= =?us-ascii?Q?UnG7rmtbMv6c2avuo/8EsXh72BSleQnQ5Cm4T6DclB0AKQe5ytCiZH7fpGt1?= =?us-ascii?Q?VDPZFpR5EiSDJ8DrVVY3wcEvXlFxSTsPWzzVNo84qCtKhnMrqDrHSiOcM9tS?= =?us-ascii?Q?ALRA83WPKK/ahj37/VXWH+8tKO90dWCZP38lgNWSoLC0rOp5/OYpfzGkrZbZ?= =?us-ascii?Q?kyc2zOsx4Xk8krhJ/kdyMkVhKYbBBkZJ+SJyHA83O/LQW0KXwtH9Ylav7alF?= =?us-ascii?Q?tkDV/uCPjnerpR8hH5rqP2ZF?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <58FB172BE60936429B95C4A3807996E8@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR02MB4580.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa93ba59-fc9d-4195-a2f6-08d9790aa521 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2021 12:08:07.5565 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Wykn71cMFzJoqgxf09QG63NTJHtD0Sc9dV6/adg48ilbNR2Za4csN8nY5xJlwn01Nkbn3slIl6248rgMkjp+TQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB6895 X-Proofpoint-GUID: d4n0R3Ib3VruVwBOzc687WJKvvVoh68A X-Proofpoint-ORIG-GUID: d4n0R3Ib3VruVwBOzc687WJKvvVoh68A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-16_04,2021-09-16_01,2020-04-07_01 X-Proofpoint-Spam-Reason: safe Subject: Re: [dpdk-dev] [PATCH v3 1/3] eal/linux: make hugetlbfs analysis reusable 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" On Tue, Sep 14, 2021 at 01:34:54PM +0300, Dmitry Kozlyuk wrote: > + do { > + m =3D getmntent(f); Should you be using getmntent_r() etc? Nice cleanup! regards john=