Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169824
b: refs/heads/master
c: 1de8e24
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Nov 27, 2009
1 parent 8b27dfd commit b42998f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: 95011c600740837288a3b34b411244a4d9157c4e
refs/heads/master: 1de8e24520ffdcf2a90c842eed937f59079a2abd
6 changes: 5 additions & 1 deletion trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ static int dso__split_kallsyms(struct dso *self, struct map *map, struct thread

module = strchr(pos->name, '\t');
if (module) {
if (!thread->use_modules)
goto discard_symbol;

*module++ = '\0';

if (strcmp(self->name, module)) {
Expand Down Expand Up @@ -420,7 +423,7 @@ static int dso__split_kallsyms(struct dso *self, struct map *map, struct thread
}

if (filter && filter(curr_map, pos)) {
rb_erase(&pos->rb_node, root);
discard_symbol: rb_erase(&pos->rb_node, root);
symbol__delete(pos);
} else {
if (curr_map != map) {
Expand Down Expand Up @@ -1635,6 +1638,7 @@ int symbol__init(struct symbol_conf *conf)
return -1;
}

kthread->use_modules = pconf->use_modules;
if (pconf->use_modules && thread__create_module_maps(kthread) < 0)
pr_debug("Failed to load list of modules in use, "
"continuing...\n");
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ struct thread {
struct rb_root maps[MAP__NR_TYPES];
struct list_head removed_maps[MAP__NR_TYPES];
pid_t pid;
bool use_modules;
char shortname[3];
char *comm;
int comm_len;
Expand Down

0 comments on commit b42998f

Please sign in to comment.