Skip to contentSkip to conversation

usertools/telemetry: fix unused parameter

PATCH Superseded Samina Arshad 5 participants 9 messages May 22, 2023 – Jun 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usertools/telemetry: fix unused parameter

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")
---
 usertools/dpdk-telemetry-client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
usertools/dpdk-telemetry-client.py +1 -1
index d6718ca5b0..3441b6b02e 100755
@@ -55,7 +55,7 @@ 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):
+    def setRunpath(self, file_prefix):
         self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
                                      RUNTIME_SOCKET_NAME)
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 18 lines · Samina Arshad

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")
---
  usertools/dpdk-telemetry-client.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
usertools/dpdk-telemetry-client.py +0 -0
index d6718ca5b0..3441b6b02e 100755

usertools/dpdk-telemetry-client.py def getFilepath(self, file_path): · line 61

Quoted 8 lines
usertools/dpdk-telemetry-client.py +1 -1
@@ -55,7 +55,7 @@ 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):
+    def setRunpath(self, file_prefix):
          self.run_path = os.path.join(get_dpdk_runtime_dir(args.file_prefix),
                                       RUNTIME_SOCKET_NAME)
 

Does this fix anything? The path is generated from args.file_prefix anyway, so this change will have no effect, I think?

Signature · 2 lines
Thanks,
Anatoly
#2 lore raw

PATCH v2 1/1 usertools/telemetry: fix unused parameter

In reply to Samina Arshad

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")

---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".
---

---
 usertools/dpdk-telemetry-client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
usertools/dpdk-telemetry-client.py +2 -2
index d6718ca5b0..e3bb1c9ee0 100755
@@ -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):
Signature · 1 line
2.25.1
Acked-by on v2 1/1
#3 lore raw

Hi Samina,

Quoted 9 lines

-----Original Message-----
From: Arshad, Samina <[email protected]>
Sent: Tuesday 23 May 2023 15:39
To: y
Cc: Power, Ciara <[email protected]>; [email protected]; Kearney, Tadhg <[email protected]>; [email protected]; Arshad, Samina <[email protected]>; [email protected]
Subject: [PATCH v2] usertools/telemetry: fix unused parameter

Quoted 7 lines

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")

No need for cc stable here because the bad commit was only introduced in 23.03 release.
That means we don't need the fix to be backported to 21.11 or 22.11, as the bug didn't exist in those releases.

+1 for code changes though,

Quoted 6 lines

---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".

<snip>

#4 lore raw

25/05/2023 15:34, Power, Ciara:

Quoted 7 lines

From: Arshad, Samina <[email protected]>

Quoted 3 lines
Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")

No need for cc stable here because the bad commit was only introduced in 23.03 release.
That means we don't need the fix to be backported to 21.11 or 22.11, as the bug didn't exist in those releases.

We need to Cc: stable as long as the bug is in a different release. It will not trigger a backport for upstream releases, but it could help someone maintaining 23.03 for a specific purpose.

#5 lore raw
Quoted 19 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday 1 June 2023 15:42
To: Arshad, Samina <[email protected]>; Power, Ciara <[email protected]>
Cc: [email protected]; Kearney, Tadhg <[email protected]>; [email protected]; [email protected]; Dooley, Brian <[email protected]>
Subject: Re: [PATCH v2] usertools/telemetry: fix unused parameter

25/05/2023 15:34, Power, Ciara:

Quoted 6 lines

From: Arshad, Samina <[email protected]>

Quoted 4 lines
Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix

argument")
Cc: [email protected]
Cc: [email protected]

Quoted 9 lines
Quoted 1 line

No need for cc stable here because the bad commit was only introduced in

23.03 release.

Quoted 1 line

That means we don't need the fix to be backported to 21.11 or 22.11, as the

bug didn't exist in those releases.

We need to Cc: stable as long as the bug is in a different release. It will not trigger a backport for upstream releases, but it could help someone maintaining 23.03 for a specific purpose.

Ah - didn't realise that. Noted, thanks Thomas!

#6 lore raw

PATCH v3 1/1 usertools/telemetry: fix unused parameter

In reply to Samina Arshad

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")

---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".
---
v3:
Edit commit body by removing [email protected] 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(-)
usertools/dpdk-telemetry-client.py +2 -2
index d6718ca5b0..e3bb1c9ee0 100755
@@ -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):
Signature · 1 line
2.25.1
Acked-by on v3 1/1
#7 lore raw
Quoted 27 lines · Samina Arshad

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")

---
v2:
Made changes for previous commit to be efficient. Removed "args" from "args.file_prefix".
---
v3:
Edit commit body by removing [email protected] 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(-)
usertools/dpdk-telemetry-client.py +0 -0
index d6718ca5b0..e3bb1c9ee0 100755

usertools/dpdk-telemetry-client.py def getFilepath(self, file_path): · line 60

Quoted 8 lines
usertools/dpdk-telemetry-client.py +2 -2
@@ -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)

Apologise for the mistake.

Quoted 2 lines
usertools/dpdk-telemetry-client.py +0 -0
      def register(self):
#8 lore raw

26/05/2023 05:41, lihuisong (C):

Quoted 4 lines · Samina Arshad
Quoted 3 lines

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.

In general we require to describe the issue,
but I'll accept this one as it is simple enough.

Quoted 7 lines
Quoted 6 lines
Fixes a15fc792cfb6 ("usertools/telemetry: add file prefix argument")

Applied, thanks.