Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154617
b: refs/heads/master
c: 520f2c3
h: refs/heads/master
i:
  154615: d63d54f
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 22, 2009
1 parent 5f47bd2 commit beddd6c
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 74d5b5889ea71a95d8924c08f8a7c6e2bdcbc0ba
refs/heads/master: 520f2c346af463fa00924b236e092da482b344cc
5 changes: 3 additions & 2 deletions trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ resolve_symbol(struct thread *thread, struct map **mapp,
{
struct dso *dso = dsop ? *dsop : NULL;
struct map *map = mapp ? *mapp : NULL;
uint64_t ip = *ipp;
u64 ip = *ipp;

if (!thread)
return NULL;
Expand All @@ -814,7 +814,6 @@ resolve_symbol(struct thread *thread, struct map **mapp,
*mapp = map;
got_map:
ip = map->map_ip(map, ip);
*ipp = ip;

dso = map->dso;
} else {
Expand All @@ -828,6 +827,8 @@ resolve_symbol(struct thread *thread, struct map **mapp,
dso = kernel_dso;
}
dprintf(" ...... dso: %s\n", dso ? dso->name : "<not found>");
dprintf(" ...... map: %Lx -> %Lx\n", *ipp, ip);
*ipp = ip;

if (dsop)
*dsop = dso;
Expand Down
4 changes: 4 additions & 0 deletions trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
gelf_getshdr(sec, &shdr);
obj_start = sym.st_value;

if (verbose >= 2)
printf("adjusting symbol: st_value: %Lx sh_addr: %Lx sh_offset: %Lx\n",
(u64)sym.st_value, (u64)shdr.sh_addr, (u64)shdr.sh_offset);

sym.st_value -= shdr.sh_addr - shdr.sh_offset;

f = symbol__new(sym.st_value, sym.st_size,
Expand Down

0 comments on commit beddd6c

Please sign in to comment.