diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:31 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:27 +0200 |
| commit | 2997739214ce6e0825f127e1a71d0f82526aa83a (patch) | |
| tree | 4def2e5647e1a0f4a7755f4be8acc37b593e108f /tools/perf/python/stackcollapse.py | |
| parent | 2dfe9eaec5c28f8f885c17d5b643299f685451b7 (diff) | |
| download | linux-next-2997739214ce6e0825f127e1a71d0f82526aa83a.tar.gz linux-next-2997739214ce6e0825f127e1a71d0f82526aa83a.zip | |
perf python: Clean up pylint warnings in treport.py
Clean up pylint warnings in treport.py so that it passes pylint without
warning suppression comments:
- Replace broad 'except Exception:' clauses (W0718:
broad-exception-caught) with specific exception tuples.
- Pass both pid and sample_tid to session.find_thread() so guest and
process threads are resolved accurately.
- Rename parameter 'args' to 'pos_args' in FlameGraph.__init__() to
avoid shadowing the outer scope variable 'args' (W0621:
redefined-outer-name).
- Clear session = None in a finally block after session.process_events()
to break the C perf_session reference cycle before launching the TUI.
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
