[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250703014942.1369397-1-namhyung@kernel.org>
Date: Wed, 2 Jul 2025 18:49:34 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Kan Liang <kan.liang@...ux.intel.com>
Cc: Jiri Olsa <jolsa@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-perf-users@...r.kernel.org
Subject: [PATCHSET 0/8] perf sched: Fix various memory leaks
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
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
Powered by blists - more mailing lists