From: Ciara Power Date: Wed, 10 Jun 2020 13:30:33 +0000 (+0100) Subject: usertools: fix telemetry user socket path X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3b4c9d7bd62018af31096de70e27c44c98bd8e50;p=dpdk.git usertools: fix telemetry user socket path The path to the socket when running the script as a regular user needed to be updated to match the logic in EAL. Fixes: 6a2967c112a3 ("usertools: add new telemetry script") Cc: stable@dpdk.org Signed-off-by: Ciara Power Reviewed-by: Bruce Richardson --- diff --git a/usertools/dpdk-telemetry.py b/usertools/dpdk-telemetry.py index afbf01b196..8e4039d574 100755 --- a/usertools/dpdk-telemetry.py +++ b/usertools/dpdk-telemetry.py @@ -78,6 +78,6 @@ readline.set_completer_delims(readline.get_completer_delims().replace('/', '')) for f in glob.glob('/var/run/dpdk/*/dpdk_telemetry.%s' % TELEMETRY_VERSION): handle_socket(f) # Path to sockets for processes run as a regular user -for f in glob.glob('/run/user/%d/dpdk/*/dpdk_telemetry.%s' % - (os.getuid(), TELEMETRY_VERSION)): +for f in glob.glob('%s/dpdk/*/dpdk_telemetry.%s' % + (os.environ.get('XDG_RUNTIME_DIR', '/tmp'), TELEMETRY_VERSION)): handle_socket(f)