From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9EA5742B9B; Thu, 25 May 2023 17:51:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74BAF40DF8; Thu, 25 May 2023 17:51:02 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 8A8F840DDB for ; Thu, 25 May 2023 17:51:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685029861; x=1716565861; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YJmhm1614k8C7NHr5ME+gphEhojqfbTlCaDJMgndtB0=; b=Faydok9rQ4muCJUqHlN4rP1iKqfOKxzWT7LtF2lnSu25gHd8+YmUS+cE yiWOyKbdzfionK7i8PRWXefW944X4iMnorRflwR9pVSMTqdFHaIwVLsng dNbf+CD+Yi5mEskl2G4/yOo5KZt5hKPd1j28Vvf621JLAyHEHBiVKx31e OPaKPmyGt28fwSF/GGYO6S7JNSp/s/HvhzC3PCoBlRam9ED/h90b0O4E8 kazTY4YcNRo3ytLaOoHWjUj5eEzofemv6x32nLCOjqADGGx31Oo3yLorV S9jG/vdFuAFgqBwOYaKFW6K/XpcU/8AbJ03ADVwm6MyGbWx0RvBcv63KP g==; X-IronPort-AV: E=McAfee;i="6600,9927,10721"; a="338524080" X-IronPort-AV: E=Sophos;i="6.00,191,1681196400"; d="scan'208";a="338524080" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2023 08:51:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10721"; a="655242508" X-IronPort-AV: E=Sophos;i="6.00,191,1681196400"; d="scan'208";a="655242508" Received: from silpixa00400868.ir.intel.com ([10.243.23.113]) by orsmga003.jf.intel.com with ESMTP; 25 May 2023 08:50:59 -0700 From: Samina Arshad To: dev@dpdk.org Cc: ciara.power@intel.com, tadhg.kearney@intel.com, Samina Arshad , lihuisong@huawei.com Subject: [PATCH v3] usertools/telemetry: fix unused parameter Date: Thu, 25 May 2023 15:50:48 +0000 Message-Id: <20230525155048.523875-1-samina.arshad@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230518134730.68538-1-samina.arshad@intel.com> References: <20230518134730.68538-1-samina.arshad@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This bug fix ensures that the runtime socket path is generated correctly, based on the user-specified file_prefix value, resolving the issue that occurred in the previous implementation. Fixes: a15fc792cfb6 ("usertools/telemetry: add file prefix argument") Cc: lihuisong@huawei.com Signed-off-by: Samina Arshad Acked-by: Ciara Power --- v2: Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix". --- v3: Edit commit body by removing stable@dpdk.org from cc as the fix is not needed to be backported to 21.11 or 22.11. --- --- usertools/dpdk-telemetry-client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py index d6718ca5b0..e3bb1c9ee0 100755 --- a/usertools/dpdk-telemetry-client.py +++ b/usertools/dpdk-telemetry-client.py @@ -55,8 +55,8 @@ def getFilepath(self, file_path): # Gets arguments from Command-Line and assigns to instance of client self.file_path = file_path - def setRunpath(self, file_path): - self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix), + def setRunpath(self, file_prefix): + self.run_path = os.path.join(get_dpdk_runtime_dir(file_prefix), RUNTIME_SOCKET_NAME) def register(self): -- 2.25.1