aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2019-10-10 11:36:45 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-10-15 08:36:22 -0300
commit353dcaa2f979a04f9397306ae3165ccf9fc731df (patch)
tree54de0062f1a74a5922ae24889571770daeb93cb4 /tools/perf/scripts/python/export-to-postgresql.py
parentperf report: Add warning when libunwind not compiled in (diff)
downloadwireguard-linux-353dcaa2f979a04f9397306ae3165ccf9fc731df.tar.xz
wireguard-linux-353dcaa2f979a04f9397306ae3165ccf9fc731df.zip
perf annotate: Avoid reallocation in objdump parsing
Objdump output is parsed using getline which allocates memory for the read. Getline will realloc if the memory is too small, but currently the line is always freed after the call. Simplify parse_objdump_line by performing the reading in symbol__disassemble. Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jin Yao <yao.jin@linux.intel.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: Song Liu <songliubraving@fb.com> Cc: Stephane Eranian <eranian@google.com> Cc: clang-built-linux@googlegroups.com Link: http://lore.kernel.org/lkml/20191010183649.23768-2-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions