Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201181
b: refs/heads/master
c: 70a7cb3
h: refs/heads/master
i:
  201179: c02c6cb
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jul 22, 2010
1 parent 1cff0ff commit 3d6fd22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07fca0e57fca925032526349f4370f97ed580cc9
refs/heads/master: 70a7cb3b39994ff366ff100b46f9dc97b1510c0f
8 changes: 6 additions & 2 deletions trunk/tools/perf/util/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,13 +976,17 @@ static int hist_entry__parse_objdump_line(struct hist_entry *self, FILE *file,
* Parse hexa addresses followed by ':'
*/
line_ip = strtoull(tmp, &tmp2, 16);
if (*tmp2 != ':' || tmp == tmp2)
if (*tmp2 != ':' || tmp == tmp2 || tmp2[1] == '\0')
line_ip = -1;
}

if (line_ip != -1) {
u64 start = map__rip_2objdump(self->ms.map, sym->start);
u64 start = map__rip_2objdump(self->ms.map, sym->start),
end = map__rip_2objdump(self->ms.map, sym->end);

offset = line_ip - start;
if (offset < 0 || (u64)line_ip > end)
offset = -1;
}

objdump_line = objdump_line__new(offset, line);
Expand Down

0 comments on commit 3d6fd22

Please sign in to comment.