usertools: fix telemetry script user socket path
PATCH 1/1 usertools: fix telemetry script 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")
Signed-off-by Ciara Power <[email protected]>
--- usertools/dpdk-telemetry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
usertools/dpdk-telemetry.py +2 -2
@@ -78,6 +78,6 @@ def readline_complete(text, state): 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)
Signature · 1 line
2.17.1
Quoted 8 lines · Ciara Power
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")Signed-off-by Ciara Power <[email protected]>---
Reviewed-by Bruce Richardson <[email protected]>
Thomas Monjalon
Applied10/06/2020 15:38, Bruce Richardson:
Quoted 5 lines · Ciara Power
Quoted 4 lines
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: [email protected]
(even if there is little chance someone wants to maintain DPDK 20.05)
Quoted 5 lines
Quoted 4 lines
Signed-off-by Ciara Power <[email protected]>---
Reviewed-by Bruce Richardson <[email protected]>
Applied, thanks