On Wed, Jul 2, 2025 at 6:49 PM Namhyung Kim <namhyung@kernel.org> wrote:
>
> Hello,
>
> While running the new perf sched test with ASAN, it fails due to
> memory leaks. They comes mostly from missing thread__put() but
> sometimes it needs to release other data structures.
>
> Fix those leaks and add more subcommands to the test.
Thanks Namhyung, it may be worth adding Fixes tags for the benefit of backports.
Tested-by: Ian Rogers <irogers@google.com>
Ian
> Thanks,
> Namhyung
>
>
> Namhyung Kim (8):
> perf sched: Make sure it frees the usage string
> perf sched: Free thread->priv using priv_destructor
> perf sched: Fix memory leaks in 'perf sched map'
> perf sched: Fix thread leaks in 'perf sched timehist'
> perf sched: Fix memory leaks for evsel->priv in timehist
> perf sched: Use RC_CHK_EQUAL() to compare pointers
> perf sched: Fix memory leaks in 'perf sched latency'
> perf test: Add more test cases to sched test
>
> tools/perf/builtin-sched.c | 147 +++++++++++++++++++++++---------
> tools/perf/tests/shell/sched.sh | 39 +++++++--
> tools/perf/util/evsel.c | 11 +++
> tools/perf/util/evsel.h | 2 +
> 4 files changed, 153 insertions(+), 46 deletions(-)
>
> --
> 2.50.0.727.gbf7dc18ff4-goog
>