Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169530
b: refs/heads/master
c: c88e4bf
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Oct 20, 2009
1 parent 46f51b1 commit 2ff1778
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 8f0b037398a909ccf703ad5f5803066db6327f22
refs/heads/master: c88e4bf60de6253a048cf4e6b3b0715e543e0460
7 changes: 4 additions & 3 deletions trunk/tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ static void parse_source(struct sym_entry *syme)
sprintf(command,
"objdump --start-address=0x%016Lx "
"--stop-address=0x%016Lx -dS %s",
sym->start, sym->end, path);
map->unmap_ip(map, sym->start),
map->unmap_ip(map, sym->end), path);

file = popen(command, "r");
if (!file)
Expand Down Expand Up @@ -173,11 +174,11 @@ static void parse_source(struct sym_entry *syme)

if (strlen(src->line)>8 && src->line[8] == ':') {
src->eip = strtoull(src->line, NULL, 16);
src->eip += map->start;
src->eip = map->unmap_ip(map, src->eip);
}
if (strlen(src->line)>8 && src->line[16] == ':') {
src->eip = strtoull(src->line, NULL, 16);
src->eip += map->start;
src->eip = map->unmap_ip(map, src->eip);
}
}
pclose(file);
Expand Down

0 comments on commit 2ff1778

Please sign in to comment.