android_kernel_sony_sdm845/tools/perf/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Riccardo Mancini e8ca4e96b7 perf test bpf: Free obj_buf
[ Upstream commit 937654ce497fb6e977a8c52baee5f7d9616302d9 ]

ASan reports some memory leaks when running:

  # perf test "42: BPF filter"

The first of these leaks is caused by obj_buf never being deallocated in
__test__bpf.

This patch adds the missing free.

Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
Fixes: ba1fae431e ("perf test: Add 'perf test BPF'")
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lore.kernel.org/lkml/60f3ca935fe6672e7e866276ce6264c9e26e4c87.1626343282.git.rickyman7@gmail.com
[ Added missing stdlib.h include ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-28 09:14:27 +02:00
..
attr
.gitignore
attr.c perf tools: Fix snprint warnings for gcc 8 2020-07-31 16:44:07 +02:00
attr.py
backward-ring-buffer.c
bitmap.c
bp_signal.c
bp_signal_overflow.c
bpf-script-example.c
bpf-script-test-kbuild.c
bpf-script-test-prologue.c
bpf-script-test-relocation.c
bpf.c perf test bpf: Free obj_buf 2021-07-28 09:14:27 +02:00
Build perf tools: Fix build with ARCH=x86_64 2018-01-23 19:57:07 +01:00
builtin-test.c perf tests: Fix indexing when invoking subtests 2018-11-10 07:42:56 -08:00
code-reading.c Revert "perf tests: Decompress kernel module before objdump" 2018-04-20 08:21:06 +02:00
cpumap.c
dso-data.c
dwarf-unwind.c
event-times.c
event_update.c
evsel-roundtrip-name.c
evsel-tp-sched.c perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test() 2019-04-20 09:07:49 +02:00
fdarray.c
hists_common.c
hists_common.h
hists_cumulate.c
hists_filter.c
hists_link.c
hists_output.c
is_printable_array.c
keep-tracking.c
kmod-path.c perf tests kmod-path: Don't fail if compressed modules aren't supported 2018-03-24 11:00:22 +01:00
llvm.c
llvm.h
make
mmap-basic.c
mmap-thread-lookup.c perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning 2019-08-04 09:33:40 +02:00
openat-syscall-all-cpus.c perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test 2019-04-20 09:07:49 +02:00
openat-syscall-tp-fields.c
openat-syscall.c
parse-events.c Revert "perf test 6: Fix missing kvm module load for s390" 2019-09-06 10:19:40 +02:00
parse-no-sample-id-all.c
perf-record.c
perf-targz-src-pkg
pmu.c perf test: Free formats for perf pmu parse test 2020-09-23 08:46:15 +02:00
python-use.c
sample-parsing.c perf test: Fix unaligned access in sample parsing test 2021-03-03 17:44:39 +01:00
sdt.c
stat.c
sw-clock.c
switch-tracking.c
task-exit.c perf test: Report failure for mmap events 2020-01-04 13:39:23 +01:00
tests.h
thread-map.c
thread-mg-share.c
topology.c perf test session topology: Fix test on s390 2018-08-24 13:12:32 +02:00
vmlinux-kallsyms.c perf tests: Use arch__compare_symbol_names to compare symbols 2018-05-30 07:50:50 +02:00