numam-dpdk/usertools
David Marchand 4760b32b64 usertools: fix pmdinfo parsing
This script inspects an ELF file (binary or shared library) and its
linked dependencies by following DT_NEEDED tags.
So far a simple librte_pmd prefix was used as a filter to only parse
DPDK drivers dependencies.
While the reason is not clear from the commitlog of the patch that
introduced this filter, it was probably added for performance reasons,
since going through all dependencies can be quite long.
Testing with a DPDK built before the driver name changes:
- running the script takes ~0.3s with the filter,
- running the script takes ~9s without the filter,

Now that we changed the driver library names, it becomes more difficult
to identify only DPDK drivers, but we can just filter on the librte_
prefix to identify DPDK libraries: the script later checks for the
PMD_INFO_STRING string in .rodata and it is enough to differentiate the
DPDK drivers from the other DPDK libraries.

Running the script with this patch takes ~0.5s.

A debug message was logged for each inspected file, it gives no useful
information and is removed.

Fixes: a20b2c01a7 ("build: standardize component names and defines")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Robin Jarry <robin.jarry@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2020-11-12 14:26:42 +01:00
..
cpu_layout.py support python 3 only 2020-10-02 13:51:00 +02:00
dpdk-devbind.py usertools: add OCTEON TX2 REE device binding 2020-10-14 10:41:26 +02:00
dpdk-pmdinfo.py usertools: fix pmdinfo parsing 2020-11-12 14:26:42 +01:00
dpdk-setup.sh usertools: warn about future removal of setup script 2020-08-07 13:39:45 +02:00
dpdk-telemetry-client.py support python 3 only 2020-10-02 13:51:00 +02:00
dpdk-telemetry.py support python 3 only 2020-10-02 13:51:00 +02:00
meson.build usertools: add new telemetry script 2020-05-10 23:56:47 +02:00