numam-dpdk/usertools
Bruce Richardson 744e9a87c5 usertools: fix handling EOF for telemetry input pipe
To allow the script to take queries from input pipes e.g. "echo
/ethdev/stats,0 | dpdk-telemetry.py", we need to handle the case of EOF
correctly without crashing with an exception. Do this by using a
try-except block around the input handling.

Fixes: 6a2967c112 ("usertools: add new telemetry script")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
2021-10-01 17:30:26 +02:00
..
cpu_layout.py usertools: fix CPU layout script to be PEP8 compliant 2020-11-13 15:40:21 +01:00
dpdk-devbind.py raw/cnxk_bphy: add baseband PHY skeleton driver 2021-07-05 23:08:11 +02:00
dpdk-hugepages.py usertools: show hugepages requested/set on failure 2021-03-25 18:07:47 +01:00
dpdk-pmdinfo.py usertools: fix pmdinfo parsing 2020-11-22 22:22:44 +01:00
dpdk-telemetry-client.py usertools: remove unnecessary parens and else 2020-11-22 22:14:12 +01:00
dpdk-telemetry.py usertools: fix handling EOF for telemetry input pipe 2021-10-01 17:30:26 +02:00
meson.build build: change indentation in infrastructure files 2021-04-21 14:04:09 +02:00