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 1CFC7A0032; Tue, 13 Sep 2022 14:05:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 931FC40151; Tue, 13 Sep 2022 14:05:52 +0200 (CEST) Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by mails.dpdk.org (Postfix) with ESMTP id 46EB0400D6 for ; Tue, 13 Sep 2022 13:49:39 +0200 (CEST) Received: (Authenticated sender: robin@jarry.cc) by mail.gandi.net (Postfix) with ESMTPSA id D1CBA20000A; Tue, 13 Sep 2022 11:49:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jarry.cc; s=gm1; t=1663069779; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lugLXbPdIjz53V5d/iqYr00G5/sjxrTgngcHPn2nk5I=; b=kT5nCqNmiyiEDwGXG5mEL3CI6Ww7wVSxXLUUFi20hacmjjn44722VfnCjkAdOUWIUnoenE 236zMytx100D3MjXkvks7B3lOAgfkmTsZPZZqlFAXHVKTpaCDowv5FCexIoNlYaV8iYZsw ez9EfylyoeEEaX26jktlpdSHCloZEcdNSh2pLkcofQ34ii14VB9by5pB+62Hp/lAymHP/4 NAfBeWS55l+yIp8nB640u5JlOgtY1BfHBEsxW7OzUSjb7hjjWirIgEZ8P2ywv+rEVexL89 Lbx3gfnzVIlyW4ieY20IDNvlhRRWW3EPyESivtvLVy6/Yroer49i1/C5/lXY3A== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 13 Sep 2022 13:49:38 +0200 Message-Id: Cc: "Olivier Matz" , Subject: Re: [PATCH] usertools: rewrite pmdinfo From: "Robin Jarry" To: "Ferruh Yigit" X-Mailer: aerc/0.12.0-7-gb11b8de32841 References: <20220913105811.84384-1-robin@jarry.cc> <467bb09c-34ec-811f-9781-bc7ad5d63e42@xilinx.com> In-Reply-To: <467bb09c-34ec-811f-9781-bc7ad5d63e42@xilinx.com> X-Mailman-Approved-At: Tue, 13 Sep 2022 14:05:51 +0200 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 Ferruh Yigit, Sep 13, 2022 at 13:29: > Hi Robin, > > Thanks for the work. > > One of the major usecase of the script is to get information from binary= =20 > drivers. So intentions of the script is to run it on drivers more than=20 > applications (dpdk-testpmd). > > When I run it on one of the .so drivers, it is generating some warnings= =20 > [1], is this expected? > > [1] > $ ./usertools/dpdk-pmdinfo.py ./build/drivers/librte_net_ixgbe.so=20 > =20 > > warning: cannot find librte_ethdev.so.23 > warning: cannot find librte_eal.so.23 > warning: cannot find librte_kvargs.so.23 > warning: cannot find librte_telemetry.so.23 > warning: cannot find librte_net.so.23 > warning: cannot find librte_mbuf.so.23 > warning: cannot find librte_mempool.so.23 > warning: cannot find librte_ring.so.23 > warning: cannot find librte_meter.so.23 > warning: cannot find librte_bus_pci.so.23 > warning: cannot find librte_pci.so.23 > warning: cannot find librte_bus_vdev.so.23 > warning: cannot find librte_hash.so.23 > warning: cannot find librte_rcu.so.23 > warning: cannot find librte_security.so.23 > warning: cannot find librte_cryptodev.so.23 > [ > { > "name": "net_ixgbe_vf", > "params": "pflink_fullchk=3D<0|1>", > "kmod": "* igb_uio | vfio-pci", > "devices": [ > ... > ... Hi Ferruh, yes it tries to parse all required (DT_NEEDED) dynamic libraries as did the previous version of the script. The warnings are displayed when a needed lib is not found. You can fix that by exporting LD_LIBRARY_PATH: $ LD_LIBRARY_PATH=3Dbuild/lib/:build/drivers/ usertools/dpdk-pmdinfo.py bui= ld/drivers/librte_net_ixgbe.so | head [ { "name": "net_ixgbe_vf", "params": "pflink_fullchk=3D<0|1>", "kmod": "* igb_uio | vfio-pci", "devices": [ { "vendor_id": "8086", "device_id": "10ed", "subsystem_device_id": "ffff", ... ... If the libraries are installed in a standard path, it should not be necessary to export LD_LIBRARY_PATH.