Re: [PATCH v5] usertools: rewrite pmdinfo

2022-09-26 Thread Robin Jarry
Robin Jarry, Sep 22, 2022 at 13:58: > +# > > +def ld_so_path() -> Iterator[str]: > +""" > +Return the list of directories where dynamic libraries are loaded based > +on the contents of /etc/ld.so.conf/*.conf.

Re: [PATCH v5] usertools: rewrite pmdinfo

2022-09-26 Thread Olivier Matz
On Thu, Sep 22, 2022 at 01:58:02PM +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

Re: [PATCH v5] usertools: rewrite pmdinfo

2022-09-22 Thread Ferruh Yigit
On 9/22/2022 12:58 PM, 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 simple task: extracting PMD_I

Re: [PATCH v5] usertools: rewrite pmdinfo

2022-09-22 Thread Bruce Richardson
On Thu, Sep 22, 2022 at 01:58:02PM +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 v5] usertools: rewrite pmdinfo

2022-09-22 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