diff options
Diffstat (limited to 'tools/perf/util/dso.c')
-rw-r--r-- | tools/perf/util/dso.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index c4374f07603c..e3c1ff8512c8 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c | |||
@@ -78,6 +78,8 @@ int dso__binary_type_file(struct dso *dso, enum dso_binary_type type, | |||
78 | symbol_conf.symfs, build_id_hex, build_id_hex + 2); | 78 | symbol_conf.symfs, build_id_hex, build_id_hex + 2); |
79 | break; | 79 | break; |
80 | 80 | ||
81 | case DSO_BINARY_TYPE__VMLINUX: | ||
82 | case DSO_BINARY_TYPE__GUEST_VMLINUX: | ||
81 | case DSO_BINARY_TYPE__SYSTEM_PATH_DSO: | 83 | case DSO_BINARY_TYPE__SYSTEM_PATH_DSO: |
82 | snprintf(file, size, "%s%s", | 84 | snprintf(file, size, "%s%s", |
83 | symbol_conf.symfs, dso->long_name); | 85 | symbol_conf.symfs, dso->long_name); |
@@ -93,11 +95,14 @@ int dso__binary_type_file(struct dso *dso, enum dso_binary_type type, | |||
93 | dso->long_name); | 95 | dso->long_name); |
94 | break; | 96 | break; |
95 | 97 | ||
98 | case DSO_BINARY_TYPE__KCORE: | ||
99 | case DSO_BINARY_TYPE__GUEST_KCORE: | ||
100 | snprintf(file, size, "%s", dso->long_name); | ||
101 | break; | ||
102 | |||
96 | default: | 103 | default: |
97 | case DSO_BINARY_TYPE__KALLSYMS: | 104 | case DSO_BINARY_TYPE__KALLSYMS: |
98 | case DSO_BINARY_TYPE__VMLINUX: | ||
99 | case DSO_BINARY_TYPE__GUEST_KALLSYMS: | 105 | case DSO_BINARY_TYPE__GUEST_KALLSYMS: |
100 | case DSO_BINARY_TYPE__GUEST_VMLINUX: | ||
101 | case DSO_BINARY_TYPE__JAVA_JIT: | 106 | case DSO_BINARY_TYPE__JAVA_JIT: |
102 | case DSO_BINARY_TYPE__NOT_FOUND: | 107 | case DSO_BINARY_TYPE__NOT_FOUND: |
103 | ret = -1; | 108 | ret = -1; |
@@ -419,6 +424,7 @@ struct dso *dso__new(const char *name) | |||
419 | dso->symtab_type = DSO_BINARY_TYPE__NOT_FOUND; | 424 | dso->symtab_type = DSO_BINARY_TYPE__NOT_FOUND; |
420 | dso->data_type = DSO_BINARY_TYPE__NOT_FOUND; | 425 | dso->data_type = DSO_BINARY_TYPE__NOT_FOUND; |
421 | dso->loaded = 0; | 426 | dso->loaded = 0; |
427 | dso->rel = 0; | ||
422 | dso->sorted_by_name = 0; | 428 | dso->sorted_by_name = 0; |
423 | dso->has_build_id = 0; | 429 | dso->has_build_id = 0; |
424 | dso->kernel = DSO_TYPE_USER; | 430 | dso->kernel = DSO_TYPE_USER; |