diff options
author | 2019-10-10 11:36:48 -0700 | |
---|---|---|
committer | 2019-10-15 08:39:42 -0300 | |
commit | b34b45eef16d814a93a52f2e76db803bb38939a0 (patch) | |
tree | 2388e094c0cc7a0e927d1f4d4d20c061c89fb011 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf annotate: Don't pipe objdump output through 'grep' command (diff) | |
download | wireguard-linux-b34b45eef16d814a93a52f2e76db803bb38939a0.tar.xz wireguard-linux-b34b45eef16d814a93a52f2e76db803bb38939a0.zip |
perf annotate: Don't pipe objdump output through 'expand' command
Avoiding a pipe allows objdump command failures to surface. Move to the
caller of symbol__parse_objdump_line the call to strim that removes
leading and trailing tabs. Add a new expand_tabs function that if a tab
is present allocate a new line in which tabs are expanded. In
symbol__parse_objdump_line the line had no leading spaces, so simplify
the line_ip processing.
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-5-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