diff options
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r-- | tools/perf/util/symbol.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index b1bf490aff88..00014e32c288 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -207,7 +207,6 @@ struct dso *dso__new(const char *name) | |||
207 | dso__set_short_name(self, self->name); | 207 | dso__set_short_name(self, self->name); |
208 | for (i = 0; i < MAP__NR_TYPES; ++i) | 208 | for (i = 0; i < MAP__NR_TYPES; ++i) |
209 | self->symbols[i] = self->symbol_names[i] = RB_ROOT; | 209 | self->symbols[i] = self->symbol_names[i] = RB_ROOT; |
210 | self->slen_calculated = 0; | ||
211 | self->origin = DSO__ORIG_NOT_FOUND; | 210 | self->origin = DSO__ORIG_NOT_FOUND; |
212 | self->loaded = 0; | 211 | self->loaded = 0; |
213 | self->sorted_by_name = 0; | 212 | self->sorted_by_name = 0; |
@@ -1525,8 +1524,8 @@ int dso__load(struct dso *self, struct map *map, symbol_filter_t filter) | |||
1525 | symbol_conf.symfs, self->long_name); | 1524 | symbol_conf.symfs, self->long_name); |
1526 | break; | 1525 | break; |
1527 | case DSO__ORIG_GUEST_KMODULE: | 1526 | case DSO__ORIG_GUEST_KMODULE: |
1528 | if (map->groups && map->groups->machine) | 1527 | if (map->groups && machine) |
1529 | root_dir = map->groups->machine->root_dir; | 1528 | root_dir = machine->root_dir; |
1530 | else | 1529 | else |
1531 | root_dir = ""; | 1530 | root_dir = ""; |
1532 | snprintf(name, size, "%s%s%s", symbol_conf.symfs, | 1531 | snprintf(name, size, "%s%s%s", symbol_conf.symfs, |