projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4597cf0
)
perf annotate: Use stripped line instead of raw disassemble line
author
Taeung Song
<treeze.taeung@gmail.com>
Sat, 8 Apr 2017 00:52:25 +0000
(09:52 +0900)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 11 Apr 2017 19:22:23 +0000
(16:22 -0300)
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>
tools/perf/util/annotate.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/util/annotate.c
b/tools/perf/util/annotate.c
index 204790db10f1e3eba91998cffb4a96489e919b7d..30498a2d4a6f73b338786a3ebc9c2a5c7fbe57b4 100644
(file)
--- 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,
parsed_line = rtrim(line);
/* /filename:linenr ? Save line number and ignore. */
- if (regexec(&file_lineno, line, 2, match, 0) == 0) {
- *line_nr = atoi(line + match[1].rm_so);
+ if (regexec(&file_lineno,
parsed_
line, 2, match, 0) == 0) {
+ *line_nr = atoi(
parsed_
line + match[1].rm_so);
return 0;
}