From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 634A0A0521; Tue, 3 Nov 2020 19:39:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 494E34C87; Tue, 3 Nov 2020 19:39:23 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 8729B49E0 for ; Tue, 3 Nov 2020 19:39:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604428759; 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; bh=x4ko/6KzkLoVk/zrFLYvzzqDprkOFI2Jmrxfh23TX5Q=; b=FO+RkzMI3JdjZQ7d4hQhGo0JZLAoR7NITFJz0K88/eAHZ1Do1slm4GqCyTV5K1tiIzlp6p hbGYkinCp4+OA9EDHxyNXYDfRmn8IvPmrcOI0r9ti5eTETzPLtB7Id9XbxcmJ7gLMEOTAn wVvTuCKHRhWZJU13FbRxOqWtmmPaV6c= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-62--omN6W23NPitwBAbRtW2MA-1; Tue, 03 Nov 2020 13:39:15 -0500 X-MC-Unique: -omN6W23NPitwBAbRtW2MA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9C6E6E9EC5; Tue, 3 Nov 2020 18:39:13 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.179]) by smtp.corp.redhat.com (Postfix) with ESMTP id 769F326366; Tue, 3 Nov 2020 18:39:10 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, robin.jarry@6wind.com, Neil Horman , Rosen Xu , Andrew Rybchenko , Luca Boccassi Date: Tue, 3 Nov 2020 19:39:06 +0100 Message-Id: <20201103183906.8088-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] usertools: fix pmdinfo parsing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This script was using the librte_pmd prefix has a filter to follow DT_NEEDED entries. Now that we changed the driver names, update this heuristic with an explicit list of device classes. Fixes: a20b2c01a7a1 ("build: standardize component names and defines") Signed-off-by: David Marchand --- usertools/dpdk-pmdinfo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py index 1661982791..687a9fd032 100755 --- a/usertools/dpdk-pmdinfo.py +++ b/usertools/dpdk-pmdinfo.py @@ -450,7 +450,10 @@ def process_dt_needed_entries(self): for tag in dynsec.iter_tags(): # pyelftools may return byte-strings, force decode them if force_unicode(tag.entry.d_tag) == 'DT_NEEDED': - if 'librte_pmd' in force_unicode(tag.needed): + words = force_unicode(tag.needed).split('_') + if words and len(words) >= 3 and words[0] == 'librte' and \ + words[1] in ['baseband', 'compress', 'crypto', 'event', + 'net', 'raw', 'regex', 'vdpa']: library = search_file(force_unicode(tag.needed), runpath + ":" + ldlibpath + ":/usr/lib64:/lib64:/usr/lib:/lib") -- 2.23.0