usertools: print process name when telemetry connects
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Feb 2021 11:39:21 +0000 (11:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Mar 2021 17:00:46 +0000 (18:00 +0100)
commitd786e30e806e9c157d25e70f7822185eeb676e48
tree4efb3fe064954fa809435bda71cb6f864f5bcaa7
parent2d9a697e41cab732f4e081744f39d7f6ad0df3ce
usertools: print process name when telemetry connects

When the dpdk-telemetry client connects to a DPDK instance, we can use the
PID provided in the initial connection message to query from /proc the name
of the process we are connected to, and display that to the user. We use
the "cmdline" procfs entry for the query since that is available on both
Linux and FreeBSD (assuming procfs is mounted on the BSD instance).

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
usertools/dpdk-telemetry.py