From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 621C6A051F; Wed, 10 Jun 2020 15:30:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A34572B93; Wed, 10 Jun 2020 15:30:55 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CF5A51DB8 for ; Wed, 10 Jun 2020 15:30:53 +0200 (CEST) IronPort-SDR: hfiBlnGMPV3dnw6ULBmwLyi45bAa3KjaLY6jPMxvJs/dViHZ5PeZZrh1tqSD3wYuoEniwFkrUZ 9Vem1hqT/G/w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2020 06:30:52 -0700 IronPort-SDR: 8LmXFREEq5g6SGVjcjA7wBUCbiRMo4ywDCQM4TXHyb8CSP/WZ8Hmgt77I5TidWZZeD3C+alvY/ ugpNKB1Hoe/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,496,1583222400"; d="scan'208";a="296214055" Received: from silpixa00399953.ir.intel.com (HELO silpixa00399953.ger.corp.intel.com) ([10.237.222.53]) by fmsmga004.fm.intel.com with ESMTP; 10 Jun 2020 06:30:51 -0700 From: Ciara Power To: kevin.laatz@dpdk.org Cc: dev@dpdk.org, Ciara Power , bruce.richardson@intel.com Date: Wed, 10 Jun 2020 14:30:33 +0100 Message-Id: <20200610133033.18317-1-ciara.power@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] usertools: fix telemetry script user socket path X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: bruce.richardson@intel.com Signed-off-by: Ciara Power --- usertools/dpdk-telemetry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usertools/dpdk-telemetry.py b/usertools/dpdk-telemetry.py index afbf01b19..8e4039d57 100755 --- a/usertools/dpdk-telemetry.py +++ b/usertools/dpdk-telemetry.py @@ -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) -- 2.17.1