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 4AB0CA0032; Tue, 13 Sep 2022 15:50:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D40E4021D; Tue, 13 Sep 2022 15:50:08 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2088.outbound.protection.outlook.com [40.107.244.88]) by mails.dpdk.org (Postfix) with ESMTP id 4033A40151 for ; Tue, 13 Sep 2022 15:50:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V9pQckgWlPp/cB6si3oee2YTTpKQz3BOpkJ6+NHRuEuf+8e2UXGQdgLgNZ9erJRwS8vBBRQtIGidJfPg6xTAYY2OtBQPfgrVOzrP+qzbb7bQsmiuYYHfYSMuGPAYmr3OcMpCFuEsGYWKWFKW/PaPDGQwIQFeNeZxsIXlYFeq9LwPVC+fpX3zLEVF3IbJmri8RoSksWZGM1UUCmaywccZErkyh7Fs9OqBKGlM9uW8h519ng8z2HUojIyldNMaEZ5nMpqpRKOv0sgpPESl1tHfuiW1hRHT8Kqg5u7n++H4eoDv59Tf0Rvet0YToQudI62Nxsk8xhCDfRwrviDbAYNwPA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KVfHJEj3C9u+5dueBJU1ZXCHDxteIRHedvI+ejdL8c0=; b=b1XKDc3lyJI1DRHXnQkuD1EcaullaZIMDgaD2ySqcXK1opWeSp4T3Eg8bFQSgNeK/p/MspNQgtHR1hhZKOprkbD0tLkoEFortjYa3OnfWsgEUdImnjiSxmSMrU6CNaZDxQShf61ALyYUCAaTfXU17fpr+nl40KgvIXtz+yWtVILxIYz6Kb/dCFvn+wavAI7dvC8RqRwk2KB49jDJfdXJ53X8E+n3TFc4N/HUlabqHPQjaORXSVR59wu0aB5zIMg2IAcemcxicuz5oDLC1kv8FjwJCKLEZSfzIQ0Pl2DPKJIjcnDnphqDeWlsjWMucupLWwFGvAjFz32KhdelpV/6fQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=jarry.cc smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KVfHJEj3C9u+5dueBJU1ZXCHDxteIRHedvI+ejdL8c0=; b=BU3A5jc/3a1dTR/amKt0IVMjW2c0/473KyPG1wFNWmM8+RMDtcp7qZPK1hhEojfcuJApbS41jRJX92C6VSm1oz2DKToEn3mXSF56N5ohIWMSxvJCT6z2lPohq2ldjpsH+Ecu9pGkfX1gIcSnF3sPYpaBu8i/QwrlPY+pZiWQWq0= Received: from SA0PR11CA0140.namprd11.prod.outlook.com (2603:10b6:806:131::25) by CH3PR02MB9259.namprd02.prod.outlook.com (2603:10b6:610:152::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Tue, 13 Sep 2022 13:50:03 +0000 Received: from SN1NAM02FT0037.eop-nam02.prod.protection.outlook.com (2603:10b6:806:131:cafe::e5) by SA0PR11CA0140.outlook.office365.com (2603:10b6:806:131::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.18 via Frontend Transport; Tue, 13 Sep 2022 13:50:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch01.xlnx.xilinx.com; pr=C Received: from xir-pvapexch01.xlnx.xilinx.com (149.199.80.198) by SN1NAM02FT0037.mail.protection.outlook.com (10.97.4.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5612.13 via Frontend Transport; Tue, 13 Sep 2022 13:50:02 +0000 Received: from xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 13 Sep 2022 14:50:01 +0100 Received: from smtp.xilinx.com (172.21.105.197) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server id 15.1.2375.24 via Frontend Transport; Tue, 13 Sep 2022 14:50:01 +0100 Envelope-to: robin@jarry.cc, olivier.matz@6wind.com, dev@dpdk.org Received: from [10.71.194.74] (port=49526) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oY6Ib-0000pL-2d; Tue, 13 Sep 2022 14:50:01 +0100 Message-ID: Date: Tue, 13 Sep 2022 14:50:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] usertools: rewrite pmdinfo Content-Language: en-US To: Robin Jarry CC: Olivier Matz , References: <20220913105811.84384-1-robin@jarry.cc> <467bb09c-34ec-811f-9781-bc7ad5d63e42@xilinx.com> From: Ferruh Yigit In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1NAM02FT0037:EE_|CH3PR02MB9259:EE_ X-MS-Office365-Filtering-Correlation-Id: 2193ea74-8def-41d6-24ad-08da958edb6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /NP/xUwIBJC8ZjtQF3tXi1AzGGfrqg9lgwTvzPNG5AsGge9y1vtgjKPt3Kii5ywi+uRhkmyGJFO/goQSfX0Gtzig/KPu0Wwj4I2g2XH8ed8NGc8UKQrkGw4Z4P0/AMgPoZDnpnahgn6Be/+c4TnESgHsrTDVc3yvt5Pa2Q4dGrQJrt9UWz9hszcWGKwdv9EaUmFvIfjS7TPA2hqXkdTCkL4lG2MFSp0Mh77Keupg3gegM55zlvwHt1j4Y0RdSPm36DXvvo/rVLCrmiHUG95+auf3zvp0VtyMWqrbi0YQyHpanCWf+V5ZdKRVGcNIW1/EldhNsNW//yspOhicSshgNvoGiXPgLIYHYkTz8OTHBN8WlbfH4fAq50O8vySbYuc+1x6azppsPj7GNfI+/MwNq/LF94set+9uzWOdy1qaxVwc5No3ieABF07KejfM9V8kRVS37Xau5guRIdsH3IadkTHRX2CM9KbI3A01sKmAo/wmq0e5TZ6VrquAkE+ciNdhYkL6BINV46NH+xqWJY7Q2rPPe+amTaHZHn+wwc+iG3JaWyxxOHVJOpkvxcRnuvph+jQI51aATYSpWiSo8rLzgxhTXmYIn2oauK75vSMD3wJEWIr+uZVtj9EQRjVqkZtp06sQqDrit75P4q1P3DebTLv8QLfqOPiZsbHAQCvuhKLYUKst/YXjfZ8aYKfmy/qZxeO/Q/sB70/TLx++bEtftA0FJ6GtOMShp6/undBihp/2b3Eb2bwPyu2isv+kOglBY6R2IJCYPRgSM7Pzj/WoO2KnQhaPRGB8dn92BnrvkwzpT988im8btNN66dObRmUUNCrB9bw9e0z0lIV7LBahmA== X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch01.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230022)(4636009)(376002)(346002)(396003)(39860400002)(136003)(451199015)(36840700001)(40470700004)(46966006)(426003)(70206006)(478600001)(82310400005)(2906002)(47076005)(31696002)(54906003)(2616005)(7636003)(44832011)(5660300002)(9786002)(40480700001)(36756003)(8676002)(6916009)(53546011)(83380400001)(356005)(4326008)(82740400003)(31686004)(8936002)(70586007)(41300700001)(26005)(316002)(36860700001)(336012)(186003)(40460700003)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2022 13:50:02.3064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2193ea74-8def-41d6-24ad-08da958edb6a X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0037.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR02MB9259 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 On 9/13/2022 12:49 PM, Robin Jarry wrote: > CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. > > > 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 >> drivers. So intentions of the script is to run it on drivers more than >> applications (dpdk-testpmd). >> >> When I run it on one of the .so drivers, it is generating some warnings >> [1], is this expected? >> >> [1] >> $ ./usertools/dpdk-pmdinfo.py ./build/drivers/librte_net_ixgbe.so >> >> >> 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=<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=build/lib/:build/drivers/ usertools/dpdk-pmdinfo.py build/drivers/librte_net_ixgbe.so | head > [ > { > "name": "net_ixgbe_vf", > "params": "pflink_fullchk=<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. I confirm warnings are gone when `LD_LIBRARY_PATH` is provided, but why current version doesn't require `LD_LIBRARY_PATH`? Also can it be possible to parse 'DT_NEEDED' for applications, but ignore it for dynamic libraries?