diff options
Diffstat (limited to 'tools/perf/python/treport.py')
| -rwxr-xr-x | tools/perf/python/treport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/python/treport.py b/tools/perf/python/treport.py index 43542599a884..786b852f471c 100755 --- a/tools/perf/python/treport.py +++ b/tools/perf/python/treport.py @@ -92,7 +92,7 @@ class ProfileNode: try: assert session thread = session.find_thread(sample.sample_tid) - comm = thread.comm() + comm = (thread.comm() if thread else None) or f"unknown ({pid})" except Exception: comm = f"unknown ({pid})" |
