aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2024-08-12 14:14:18 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2024-08-12 14:14:18 +0200
commit5c61f59824b5e46516ea5d0543ad7a8871567416 (patch)
treea4127fceb607955e245b4ff04ab060097fb1eca8 /tools/perf/scripts/python/parallel-perf.py
parentdrm: Add missing documentation for struct drm_plane_size_hint (diff)
parentMerge tag 'drm-misc-next-2024-08-09' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next (diff)
downloadwireguard-linux-5c61f59824b5e46516ea5d0543ad7a8871567416.tar.xz
wireguard-linux-5c61f59824b5e46516ea5d0543ad7a8871567416.zip
Merge drm/drm-next into drm-misc-next
Get drm-misc-next to the state of v6.11-rc2. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
-rwxr-xr-xtools/perf/scripts/python/parallel-perf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/parallel-perf.py b/tools/perf/scripts/python/parallel-perf.py
index 21f32ec5ed46..be85fd7f6632 100755
--- a/tools/perf/scripts/python/parallel-perf.py
+++ b/tools/perf/scripts/python/parallel-perf.py
@@ -439,7 +439,8 @@ def ProcessCommandOutputLines(cmd, per_cpu, fn, *x):
pat = re.compile(r"\s*\[[0-9]+\]")
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
while True:
- if line := p.stdout.readline():
+ line = p.stdout.readline()
+ if line:
line = line.decode("utf-8")
if pat.match(line):
line = line.split()