diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-08 18:48:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-08 18:48:27 +0200 |
commit | ddf92a2ebaa11a494946f6f153a23d36b7801d5b (patch) | |
tree | 2981a5732a586b3e83ce4e33ec529138abbbba64 /tools/perf/scripts/python/parallel-perf.py | |
parent | 3b232d34011a152832ba40289e9d476dfcb846d2 (diff) | |
parent | 7aa21fec187b7bc2a55be4daad4585098e2f47df (diff) |
Merge v6.11.2
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
-rwxr-xr-x | tools/perf/scripts/python/parallel-perf.py | 3 |
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() |