Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182441
b: refs/heads/master
c: 6275ce2
h: refs/heads/master
i:
  182439: f5c3735
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Feb 4, 2010
1 parent 1f989a9 commit 30f4689
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 9de89fe7c577847877ae00ea1aa6315559b10243
refs/heads/master: 6275ce2d5f44ae4f8575c24724525cbb2a3a141b
13 changes: 11 additions & 2 deletions trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name,
if (curr_dso == NULL)
goto out_elf_end;
curr_map = map__new2(start, curr_dso,
MAP__FUNCTION);
map->type);
if (curr_map == NULL) {
dso__delete(curr_dso);
goto out_elf_end;
Expand All @@ -1021,6 +1021,7 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name,
curr_dso->origin = DSO__ORIG_KERNEL;
map_groups__insert(kmap->kmaps, curr_map);
dsos__add(&dsos__kernel, curr_dso);
dso__set_loaded(curr_dso, map->type);
} else
curr_dso = curr_map->dso;

Expand Down Expand Up @@ -1058,8 +1059,16 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name,
/*
* For misannotated, zeroed, ASM function sizes.
*/
if (nr > 0)
if (nr > 0) {
symbols__fixup_end(&self->symbols[map->type]);
if (kmap) {
/*
* We need to fixup this here too because we create new
* maps here, for things like vsyscall sections.
*/
__map_groups__fixup_end(kmap->kmaps, map->type);
}
}
err = nr;
out_elf_end:
elf_end(elf);
Expand Down

0 comments on commit 30f4689

Please sign in to comment.