Skip to content

Commit b85e2da

Browse files
dwmw2rafaeljw
authored andcommitted
PM: tools: Fix sleepgraph syntax error
The sleepgraph tool currently fails: File "/usr/bin/sleepgraph", line 4155 or re.match('psci: CPU(?P<cpu>[0-9]*) killed.*', msg)): ^ SyntaxError: unmatched ')' Fixes: 34ea427 ("PM: tools: sleepgraph: Recognize "CPU killed" messages") Signed-off-by: David Woodhouse <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 98b1cc8 commit b85e2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/power/pm-graph/sleepgraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4151,7 +4151,7 @@ def parseKernelLog(data):
41514151
elif(re.match('Enabling non-boot CPUs .*', msg)):
41524152
# start of first cpu resume
41534153
cpu_start = ktime
4154-
elif(re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg)) \
4154+
elif(re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg) \
41554155
or re.match('psci: CPU(?P<cpu>[0-9]*) killed.*', msg)):
41564156
# end of a cpu suspend, start of the next
41574157
m = re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg)

0 commit comments

Comments
 (0)