diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-07-02 18:49:39 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-07-03 11:39:56 -0700 |
commit | 117e5c33b1c44037af016d77ce6c0b086d55535f (patch) | |
tree | aa73164d3abfd100c58a6477122aa609fb25df08 /tools/perf/scripts/python/stackcollapse.py | |
parent | e2eb59260c4f6bac403491d0112891766b8650d1 (diff) |
perf sched: Fix memory leaks for evsel->priv in timehist
It uses evsel->priv to save per-cpu timing information. It should be
freed when the evsel is released.
Add the priv destructor for evsel same as thread to handle that.
Fixes: 49394a2a24c78ce0 ("perf sched timehist: Introduce timehist command")
Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250703014942.1369397-6-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