linux-yocto/tools/perf
Namhyung Kim f34d54d2c2 perf sched: Fix memory leaks for evsel->priv in timehist
[ Upstream commit 117e5c33b1 ]

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: 49394a2a24 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 12:13:52 +02:00
..
arch perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
bench perf bench: Fix perf bench syscall loop count 2025-04-10 14:39:23 +02:00
check-header_ignore_hunks/lib
dlfilters
Documentation perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
include/perf
jvmti
pmu-events perf vendor events arm64 AmpereOneX: Fix frontend_bound calculation 2025-04-10 14:39:26 +02:00
python
scripts perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3 2025-06-19 15:32:06 +02:00
tests perf test: Directory file descriptor leak 2025-06-27 11:11:46 +01:00
trace
ui perf ui browser hists: Set actions->thread before calling do_zoom_thread() 2025-06-19 15:32:04 +02:00
util perf sched: Fix memory leaks for evsel->priv in timehist 2025-08-15 12:13:52 +02:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c
builtin-check.c
builtin-config.c
builtin-daemon.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-kwork.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c perf record: Fix incorrect --user-regs comments 2025-06-19 15:32:08 +02:00
builtin-report.c perf report: Switch data file correctly in TUI 2025-04-10 14:39:22 +02:00
builtin-sched.c perf sched: Fix memory leaks for evsel->priv in timehist 2025-08-15 12:13:52 +02:00
builtin-script.c
builtin-stat.c perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
builtin-timechart.c
builtin-top.c
builtin-trace.c perf trace: Set errpid to false for rseq and set_robust_list 2025-06-19 15:32:08 +02:00
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config perf build: Warn when libdebuginfod devel files are not available 2025-06-19 15:32:04 +02:00
Makefile.perf perf tests: Fix 'perf report' tests installation 2025-06-19 15:32:06 +02:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c
perf.h