linux/tools/perf
Namhyung Kim b7b75a60b2 perf srcline: Fix memory leak in addr2inlines()
When libbfd is not used, addr2inlines() executes `addr2line -i` and
process output line by line.  But it resets filename to NULL in the loop
so getline() allocates additional memory everytime instead of realloc.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20171031020654.31163-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-11-01 11:43:56 -03:00
..
arch perf annotate: Remove arch::cpuid_parse callback 2017-10-23 11:20:54 -03:00
bench
Documentation perf script: Allow creating per-event dump files 2017-10-27 09:10:10 -03:00
jvmti
pmu-events perf vendor events: Add Goldmont Plus V1 event file 2017-10-23 16:30:54 -03:00
python
scripts perf script python: Add support for sqlite3 to call-graph-from-sql.py 2017-08-15 17:03:38 -03:00
tests perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
trace perf trace beauty kcmp: Beautify arguments 2017-10-31 16:17:04 -03:00
ui perf report: Remove code to handle inline frames from browsers 2017-10-24 09:59:55 -03:00
util perf srcline: Fix memory leak in addr2inlines() 2017-11-01 11:43:56 -03:00
.gitignore
Build perf trace: Only build tools/perf/trace/beauty/ when building 'perf trace' 2017-07-18 23:13:52 -03:00
builtin-annotate.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-bench.c
builtin-buildid-cache.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-buildid-list.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-c2c.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-config.c perf config: Write a config file just once 2017-09-13 09:49:15 -03:00
builtin-data.c perf data: Add doc when no conversion support compiled 2017-07-28 16:30:45 -03:00
builtin-diff.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-evlist.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-ftrace.c tools include: Adopt strstarts() from the kernel 2017-07-20 15:46:10 -03:00
builtin-help.c tools include: Adopt strstarts() from the kernel 2017-07-20 15:46:10 -03:00
builtin-inject.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-kallsyms.c
builtin-kmem.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-kvm.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-list.c perf list: Add metric groups to perf list 2017-09-13 09:49:13 -03:00
builtin-lock.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-mem.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-probe.c perf buildid-cache: Support binary objects from other namespaces 2017-07-18 23:14:11 -03:00
builtin-record.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-report.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-sched.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-script.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-stat.c perf stat: Move the shadow stats scale computation in perf_stat__update_shadow_stats 2017-10-30 13:40:33 -03:00
builtin-timechart.c perf tools: Add struct perf_data_file 2017-10-30 13:37:37 -03:00
builtin-top.c perf top: Add option to set the number of thread for event synthesize 2017-10-03 09:27:54 -03:00
builtin-trace.c perf trace beauty kcmp: Beautify arguments 2017-10-31 16:17:04 -03:00
builtin-version.c
builtin.h
check-headers.sh tools include uapi: Grab a copy of linux/kcmp.h 2017-10-31 16:17:03 -03:00
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config perf tools: Robustify detection of clang binary 2017-08-28 16:44:46 -03:00
Makefile.perf perf trace beauty kcmp: Beautify arguments 2017-10-31 16:17:04 -03:00
MANIFEST perf tools: Get all of tools/{arch,include}/ in the MANIFEST 2017-09-25 10:39:43 -03:00
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h perf tools: Use default CPUINFO_PROC where it fits 2017-08-17 16:58:21 -03:00
perf-with-kcore.sh
perf.c perf tools: Support running perf binaries with a dash in their name 2017-09-12 12:48:54 -03:00
perf.h perf record: Support direct --user-regs arguments 2017-09-13 09:49:14 -03:00