diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-07-02 18:49:38 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-07-03 11:33:18 -0700 |
commit | e2eb59260c4f6bac403491d0112891766b8650d1 (patch) | |
tree | 2d319e3ca8c24bea5df918c1ffd948a5d0b1f81c /tools/perf/scripts/python/stackcollapse.py | |
parent | dc3a80c98884d86389b3b572c50ccc7f502cd41b (diff) |
perf sched: Fix thread leaks in 'perf sched timehist'
Add missing thread__put() after machine__findnew_thread() or
timehist_get_thread(). Also idle threads' last_thread should be
refcounted properly.
Fixes: 699b5b920db04a6f ("perf sched timehist: Save callchain when entering idle")
Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250703014942.1369397-5-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions