perf sched: Fix various memory leaks
Status from this message: Applied to perf-tools-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | perf sched: Make sure it frees the usage stringtools/ | +13 | 1 reply | |
| 2/8 | perf sched: Free thread->priv using priv_destructortools/ | +2 | 1 reply | |
| 3/8 | perf sched: Fix memory leaks in 'perf sched map'tools/ | +20 | 1 reply | |
| 4/8 | perf sched: Fix thread leaks in 'perf sched timehist'tools/ | +37 | 1 reply | |
| 5/8 | perf sched: Fix memory leaks for evsel->priv in timehisttools/ tools/ tools/ | +25 | 1 reply | |
| 6/8 | perf sched: Use RC_CHK_EQUAL() to compare pointerstools/ | +1 | 1 reply | |
| 7/8 | perf sched: Fix memory leaks in 'perf sched latency'tools/ | +24 | 1 reply | |
| 8/8 | perf test: Add more test cases to sched testtools/ | +31 | 1 reply |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Ian Rogers |
|---|---|
| Series | T-b |
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | R-b |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [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(-)
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog