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 31712A0543; Wed, 12 Oct 2022 18:44:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC39C40156; Wed, 12 Oct 2022 18:44:20 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id 7BB5C40041 for ; Wed, 12 Oct 2022 18:44:19 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 3461E32002B6; Wed, 12 Oct 2022 12:44:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 12 Oct 2022 12:44:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665593057; x= 1665679457; bh=M8uCuOzHe/r5Dm05CVO2DO87Gg99UPSpRBu5Ls6nYg8=; b=g SE0kwOMU4f7zkZoiisX7JTk8XM7FgvC4yy/0yr6gJ+Wj57uMDpFCptYTQFDHrTL4 KO/i4oXjKYMIddUc7eAqqeXb7Mda2tyRIhizDrTGnlb5sdx+wp7mCE4swrqErAz5 DBkV8n/D3ngDqa9nE3G87zusr1q/k2BkRJTYZAilNm+v1e7YocWAacbT2u3BBHMZ xSt1kmRF0b7WoeiE11zaWBgpmlaDiK7FrE3IQr0r52FgRmxVC7t+E0ijKJpv7TsZ 9C6Jx8Asheft4+fWm87ecbE2iQstOgNzZdRKSFFWgNXRyGgKl5noe0zKLfeI+1T8 MpACDppCS4XiU3AD0Zf5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665593057; x= 1665679457; bh=M8uCuOzHe/r5Dm05CVO2DO87Gg99UPSpRBu5Ls6nYg8=; b=L 1JV2cnPm+Kxm11eo7vKZkHUpdnF7cZFSfQXRW9C4QGS2Iby8FfGYSGEmmEWFKJrL IVje5tUFxKSiiShl4f9fqyz6cCiTXZPh64AjfWu5XGXMq6QA7TAkJkVsL/ANw1Y5 pNjC7pPZUSvjpkiGONjNwJ8eZW2gVNKpypDykiZeDvqGfjJWo2eQMq+7zFvSreE8 mmj/ErkysGcqzM/YSBcOM95ZnF+HXq4SBjZ8+vlgoGJSwaYb4mNGk9LXdS9ZFoAg kOOt9OFSUPVp5GdhWAfdyf4fFqzWh2Ke1yDMynqKwUgWVkUUWpEQRoe5I7GDLR+y sQyituYnVBJmko5r/1ltw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejkedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhho mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne cuggftrfgrthhtvghrnheptdejieeifeehtdffgfdvleetueeffeehueejgfeuteeftddt ieekgfekudehtdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Oct 2022 12:44:16 -0400 (EDT) From: Thomas Monjalon To: Olivier Matz , Robin Jarry Cc: dev@dpdk.org, Ferruh Yigit , Bruce Richardson Subject: Re: [PATCH v7] usertools: rewrite pmdinfo Date: Wed, 12 Oct 2022 18:44:15 +0200 Message-ID: <4903382.atdPhlSkOF@thomas> In-Reply-To: References: <20220913105811.84384-1-robin@jarry.cc> <25917113.6Emhk5qWAg@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 12/10/2022 18:30, Robin Jarry: > Thomas Monjalon, Oct 12, 2022 at 18:16: > > What about implementing both? > > If ldd is available, use it, > > otherwise use LD_TRACE_LOADED_OBJECTS variable. > > This is a bit overkill in my opinion. Also it would make the behaviour > somewhat different whether ldd is available and/or the analyzed binaries > are executable. Yes, different behaviour is not desirable. > I think it is an OK limitation to require that the analyzed ELF files > are executable. > > By the way, the following command: > > LD_TRACE_LOADED_OBJECTS=1 build/app/dpdk-test-pmd > > Works both on Linux and FreeBSD and produces similar outputs. OK for executable, but can we expect .so to be always executable?