[PATCH v2 0/4] 2 leak fixes and lower 2 test fails to skips

From: Ian Rogers
Date: Tue Oct 01 2024 - 01:23:44 EST


Fix some memory leaks that show up testing as !root. Lower some test
failures to skips for the !root case with a skip reason of
permissions.

v2: Rebase that also cleans up on the bpf_counter__load error path, as
pointed out by Namhyung.
v1: https://lore.kernel.org/lkml/20240924202916.1560687-1-irogers@xxxxxxxxxx/

Ian Rogers (4):
perf stat: Fix affinity memory leaks on error path
perf test: Fix memory leaks on event-times error paths
perf test: Skip not fail tp fields test when insufficient permissions
perf test: Skip not fail syscall tp fields test when insufficient
permissions

tools/perf/builtin-stat.c | 2 ++
tools/perf/tests/event-times.c | 5 +--
tools/perf/tests/evsel-tp-sched.c | 40 +++++++++++++--------
tools/perf/tests/openat-syscall-tp-fields.c | 19 +++++++---
4 files changed, 45 insertions(+), 21 deletions(-)

--
2.46.1.824.gd892dcdcdd-goog