Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169727
b: refs/heads/master
c: 90c8321
h: refs/heads/master
i:
  169725: 969c043
  169723: 1d1ae69
  169719: 655bc99
  169711: 31992d9
  169695: 716a34d
  169663: 77b98fa
  169599: 2e6fb7e
  169471: 81ebf26
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Nov 21, 2009
1 parent 57d1d3b commit bee6342
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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: 8904b18046c2f050107f6449e887e7c1142b9ab9
refs/heads/master: 90c83218c32d7c474da810cd3c9973a43ecbcb9b
17 changes: 10 additions & 7 deletions trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ static void kernel_maps__fixup_end(void)
curr = rb_entry(nd, struct map, rb_node);
prev->end = curr->start - 1;
}

/*
* We still haven't the actual symbols, so guess the
* last map final address.
*/
curr->end = ~0UL;
}

static struct symbol *symbol__new(u64 start, u64 len, const char *name)
Expand Down Expand Up @@ -1319,12 +1325,6 @@ static int kernel_maps__create_module_maps(void)
free(line);
fclose(file);

/*
* Now that we have all sorted out, just set the ->end of all
* maps:
*/
kernel_maps__fixup_end();

return dsos__set_modules_path();

out_delete_line:
Expand Down Expand Up @@ -1493,7 +1493,10 @@ int kernel_maps__init(bool use_modules)
if (use_modules && kernel_maps__create_module_maps() < 0)
pr_warning("Failed to load list of modules in use, "
"continuing...\n");

/*
* Now that we have all the maps created, just set the ->end of them:
*/
kernel_maps__fixup_end();
return 0;
}

Expand Down

0 comments on commit bee6342

Please sign in to comment.