From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] eal: abstract away the auxiliary vector Date: Wed, 11 Apr 2018 23:34:27 +0200 Message-ID: <22739292.VNXgVMcpcx@xps> References: <20180322153549.17910-1-aconole@redhat.com> <20180402182434.14045-1-aconole@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Aaron Conole , Timothy Redaelli , Bruce Richardson , Jan Viktorin , Jianbo Liu , Jerin Jacob , Chao Zhu , Keith Wiles To: dev@dpdk.org Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 63B9E1B7EE for ; Wed, 11 Apr 2018 23:34:30 +0200 (CEST) In-Reply-To: <20180402182434.14045-1-aconole@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Anyone to review, please? 02/04/2018 20:24, Aaron Conole: > Rather than attempting to load the contents of the auxv directly, > prefer to use an exposed API - and if that doesn't exist then attempt > to load the vector. This is because on some systems, when a user > is downgraded, the /proc/self/auxv file retains the old ownership > and permissions. The original method of /proc/self/auxv is retained. > > This also removes a potential abort() in the code when compiled with > NDEBUG. A quick parse of the code shows that many (if not all) of > the CPU flag parsing isn't used internally, so it should be okay. > > Signed-off-by: Aaron Conole > Signed-off-by: Timothy Redaelli