diff options
author | Taeung Song <treeze.taeung@gmail.com> | 2017-04-07 20:52:25 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-11 15:22:23 -0400 |
commit | 986a5bc028a84d487c354a529730b48682d1fb41 (patch) | |
tree | 35c350a6ce5288912c7a0dd621a801eb61301dfa /tools/perf/util/annotate.c | |
parent | 4597cf0664d2fad785509dedfed22f8fe8951ebb (diff) |
perf annotate: Use stripped line instead of raw disassemble line
When parsing disassemble lines for source line number, use a stripped
line instead of raw line.
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1491612748-1605-3-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 204790db10f1..30498a2d4a6f 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -1159,8 +1159,8 @@ static int symbol__parse_objdump_line(struct symbol *sym, struct map *map, | |||
1159 | parsed_line = rtrim(line); | 1159 | parsed_line = rtrim(line); |
1160 | 1160 | ||
1161 | /* /filename:linenr ? Save line number and ignore. */ | 1161 | /* /filename:linenr ? Save line number and ignore. */ |
1162 | if (regexec(&file_lineno, line, 2, match, 0) == 0) { | 1162 | if (regexec(&file_lineno, parsed_line, 2, match, 0) == 0) { |
1163 | *line_nr = atoi(line + match[1].rm_so); | 1163 | *line_nr = atoi(parsed_line + match[1].rm_so); |
1164 | return 0; | 1164 | return 0; |
1165 | } | 1165 | } |
1166 | 1166 | ||