Re: [PATCH v6] usertools: rewrite pmdinfo

2022-09-28 Thread Robin Jarry
Bruce Richardson, Sep 28, 2022 at 12:53: > How about "ldconfig -p" and just using the list of libraries given to > match against those requested in the elf file, rather than worrying > about directories at all? I could do that but then, the DT_RUNPATH and LD_LIBRARY_PATH directories must be search

Re: [PATCH v6] usertools: rewrite pmdinfo

2022-09-28 Thread Bruce Richardson
On Wed, Sep 28, 2022 at 08:51:39AM +0200, Robin Jarry wrote: > Bruce Richardson, Sep 26, 2022 at 17:17: > > > * fixed typo: /etc/ld.so.conf/*.conf -> /etc/ld.so.conf.d/*.conf > > > > I am a little uncertain about doing this parsing, and worried it may be a > > bit fragile. The main file for ld.so s

Re: [PATCH v6] usertools: rewrite pmdinfo

2022-09-27 Thread Robin Jarry
Bruce Richardson, Sep 26, 2022 at 17:17: > > * fixed typo: /etc/ld.so.conf/*.conf -> /etc/ld.so.conf.d/*.conf > > I am a little uncertain about doing this parsing, and worried it may be a > bit fragile. The main file for ld.so still is ld.so.conf, which, on my > system anyway, does indeed just have

Re: [PATCH v6] usertools: rewrite pmdinfo

2022-09-26 Thread Bruce Richardson
On Mon, Sep 26, 2022 at 03:44:38PM +0200, Robin Jarry wrote: > dpdk-pmdinfo.py does not produce any parseable output. The -r/--raw flag > merely prints multiple independent JSON lines which cannot be fed > directly to any JSON parser. Moreover, the script complexity is rather > high for such a simp

[PATCH v6] usertools: rewrite pmdinfo

2022-09-26 Thread Robin Jarry
dpdk-pmdinfo.py does not produce any parseable output. The -r/--raw flag merely prints multiple independent JSON lines which cannot be fed directly to any JSON parser. Moreover, the script complexity is rather high for such a simple task: extracting PMD_INFO_STRING from .rodata ELF sections. Rewrit