linux-yocto/tools/perf
Ian Rogers f6071c3cfe perf evsel: Missed close() when probing hybrid core PMUs
[ Upstream commit ebec62bc7e ]

Add missing close() to avoid leaking perf events.

In past perfs this mattered little as the function was just used by 'perf
list'.

As the function is now used to detect hybrid PMUs leaking the perf event
is somewhat more painful.

Fixes: b41f1cec91 ("perf list: Skip unsupported events")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/r/20250614004108.1650988-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:09:04 +01:00
..
arch perf intel-pt: Fix exclude_guest setting 2024-08-03 08:53:53 +02:00
bench perf bench: Fix perf bench syscall loop count 2025-04-10 14:37:33 +02:00
dlfilters
Documentation perf: script: add raw|disasm arguments to --insn-trace option 2024-06-27 13:49:14 +02:00
include/perf
jvmti
pmu-events perf stat: Do not fail on metrics on s390 z/VM systems 2024-06-12 11:12:15 +02:00
python
scripts perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3 2025-06-19 15:28:27 +02:00
tests perf tests switch-tracking: Fix timestamp comparison 2025-06-19 15:28:28 +02:00
trace
ui perf ui browser hists: Set actions->thread before calling do_zoom_thread() 2025-06-19 15:28:25 +02:00
util perf evsel: Missed close() when probing hybrid core PMUs 2025-06-27 11:09:04 +01:00
.gitignore
Build
builtin-annotate.c perf ui/browser/annotate: Use global annotation_options 2024-10-04 16:29:24 +02:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c
builtin-config.c
builtin-daemon.c perf daemon: Fix file leak in daemon_session__control 2024-06-12 11:12:30 +02:00
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c perf ftrace latency: Fix unit on histogram first entry when using --use-nsec 2024-12-09 10:32:25 +01:00
builtin-help.c
builtin-inject.c perf inject: Fix leader sampling inserting additional samples 2024-10-04 16:29:23 +02:00
builtin-kallsyms.c
builtin-kmem.c libsubcmd: Don't free the usage string 2024-10-17 15:24:13 +02:00
builtin-kvm.c libsubcmd: Don't free the usage string 2024-10-17 15:24:13 +02:00
builtin-kwork.c libsubcmd: Don't free the usage string 2024-10-17 15:24:13 +02:00
builtin-list.c perf list: Fix topic and pmu_name argument order 2024-12-09 10:32:28 +01:00
builtin-lock.c perf lock: Fix parse_lock_type which only retrieve one lock flag 2025-02-08 09:52:09 +01:00
builtin-mem.c libsubcmd: Don't free the usage string 2024-10-17 15:24:13 +02:00
builtin-probe.c
builtin-record.c perf record: Fix incorrect --user-regs comments 2025-06-19 15:28:28 +02:00
builtin-report.c perf report: Fix misleading help message about --demangle 2025-02-08 09:52:08 +01:00
builtin-sched.c libsubcmd: Don't free the usage string 2024-10-17 15:24:13 +02:00
builtin-script.c perf script: Show also errors for --insn-trace option 2024-06-27 13:49:14 +02:00
builtin-stat.c perf stat: Fix affinity memory leaks on error path 2024-12-09 10:32:24 +01:00
builtin-timechart.c
builtin-top.c perf top: Don't complain about lack of vmlinux when not resolving some kernel samples 2025-02-08 09:52:07 +01:00
builtin-trace.c perf trace: Always print return value for syscalls returning a pid 2025-06-19 15:28:28 +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:28:25 +02:00
Makefile.perf perf bpf: Clean up the generated/copied vmlinux.h 2024-03-26 18:19:45 -04:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c
perf.h