Skip to contentSkip to conversation

PM: tools: sleepgraph: Correct the home link

PATCH In review Yo-Jung (Leo) Lin 2 participants 2 messages Sep 8, 2024 – Sep 10, 2024 PM-graph utility

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM: tools: sleepgraph: Correct the home link

The 01.org/pm-graph link in the sleepgraph.py no longer point to the pm-graph home page. Replace it with the home page link in the README.

---
 tools/power/pm-graph/sleepgraph.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tools/power/pm-graph/sleepgraph.py +4 -3
index ef87e63c05c7..f95061d6069f 100755
@@ -18,7 +18,7 @@
 #
 # Links:
 #	 Home Page
-#	   https://01.org/pm-graph
+#	   https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html
 #	 Source repo
 #	   [email protected]:intel/pm-graph
 #
@@ -2753,8 +2753,9 @@ class Timeline:
 	def createHeader(self, sv, stamp):
 		if(not stamp['time']):
 			return
-		self.html += '<div class="version"><a href="https://01.org/pm-graph">%s v%s</a></div>' \
-			% (sv.title, sv.version)
+		self.html += '<div class="version"><a href="https://www.intel.com/content'+\
+                '/www/us/en/developer/topic-technology/open/pm-graph/overview.html">%s v%s</a></div>' \
+                % (sv.title, sv.version)
 		if sv.logmsg and sv.testlog:
 			self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
 		if sv.dmesglog:
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 31 lines · Yo-Jung (Leo) Lin

The 01.org/pm-graph link in the sleepgraph.py no longer point to the pm-graph home page. Replace it with the home page link in the README.

---
 tools/power/pm-graph/sleepgraph.py | 7 ++++---

 1 file changed, 4 insertions(+), 3 deletions(-)
tools/power/pm- renamed from tools/power/pm-graph/sleepgraph.py +0 -0

graph/sleepgraph.py
index ef87e63c05c7..f95061d6069f 100755

tools/power/pm-graph/sleepgraph.py +1 -1
@@ -18,7 +18,7 @@
  #
  # Links:
  #       Home Page
-#         https://01.org/pm-graph
+#        

https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html
 #       Source repo
 #         [email protected]:intel/pm-graph
 #

tools/power/pm-graph/sleepgraph.py +0 -0
@@ -2753,8 +2753,9 @@ class Timeline:

        def createHeader(self, sv, stamp):
                if(not stamp['time']):
                        return
-               self.html += '<div class="version"><a href="https://01.org/pm-graph">%s v%s</a></div>' \
-                       % (sv.title, sv.version) +               self.html += '<div class="version"><a

Quoted 8 lines

href="https://www.intel.com/content'+\
+                '/www/us/en/developer/topic-technology/open/pm- graph/overview.html">%s v%s</a></div>' \
+                % (sv.title, sv.version)
                if sv.logmsg and sv.testlog:
                        self.html += '<button id="showtest" class="logbtn btnfmt">log</button>'
                if sv.dmesglog:

Hi, yea I made this change in the github source after the release of version 5.12 and haven't pushed it over to the kernel source yet. Thanks for the heads up.

Give me a day or two and I'll submit an updated version of this patch which includes all the other changes since 5.12 so they can be fully in sync.