diff options
-rw-r--r-- | tools/perf/util/dso.c | 10 | ||||
-rw-r--r-- | tools/perf/util/dso.h | 10 | ||||
-rw-r--r-- | tools/perf/util/symbol.c | 8 |
3 files changed, 14 insertions, 14 deletions
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index eef166212324..4ddeecb9ff85 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c | |||
@@ -148,7 +148,7 @@ static int open_dso(struct dso *dso, struct machine *machine) | |||
148 | if (machine) | 148 | if (machine) |
149 | root_dir = machine->root_dir; | 149 | root_dir = machine->root_dir; |
150 | 150 | ||
151 | if (dso__read_binary_type_filename(dso, dso->data_type, | 151 | if (dso__read_binary_type_filename(dso, dso->binary_type, |
152 | root_dir, name, PATH_MAX)) { | 152 | root_dir, name, PATH_MAX)) { |
153 | free(name); | 153 | free(name); |
154 | return -EINVAL; | 154 | return -EINVAL; |
@@ -168,19 +168,19 @@ int dso__data_fd(struct dso *dso, struct machine *machine) | |||
168 | }; | 168 | }; |
169 | int i = 0; | 169 | int i = 0; |
170 | 170 | ||
171 | if (dso->data_type != DSO_BINARY_TYPE__NOT_FOUND) | 171 | if (dso->binary_type != DSO_BINARY_TYPE__NOT_FOUND) |
172 | return open_dso(dso, machine); | 172 | return open_dso(dso, machine); |
173 | 173 | ||
174 | do { | 174 | do { |
175 | int fd; | 175 | int fd; |
176 | 176 | ||
177 | dso->data_type = binary_type_data[i++]; | 177 | dso->binary_type = binary_type_data[i++]; |
178 | 178 | ||
179 | fd = open_dso(dso, machine); | 179 | fd = open_dso(dso, machine); |
180 | if (fd >= 0) | 180 | if (fd >= 0) |
181 | return fd; | 181 | return fd; |
182 | 182 | ||
183 | } while (dso->data_type != DSO_BINARY_TYPE__NOT_FOUND); | 183 | } while (dso->binary_type != DSO_BINARY_TYPE__NOT_FOUND); |
184 | 184 | ||
185 | return -EINVAL; | 185 | return -EINVAL; |
186 | } | 186 | } |
@@ -475,7 +475,7 @@ struct dso *dso__new(const char *name) | |||
475 | dso->symbols[i] = dso->symbol_names[i] = RB_ROOT; | 475 | dso->symbols[i] = dso->symbol_names[i] = RB_ROOT; |
476 | dso->cache = RB_ROOT; | 476 | dso->cache = RB_ROOT; |
477 | dso->symtab_type = DSO_BINARY_TYPE__NOT_FOUND; | 477 | dso->symtab_type = DSO_BINARY_TYPE__NOT_FOUND; |
478 | dso->data_type = DSO_BINARY_TYPE__NOT_FOUND; | 478 | dso->binary_type = DSO_BINARY_TYPE__NOT_FOUND; |
479 | dso->loaded = 0; | 479 | dso->loaded = 0; |
480 | dso->rel = 0; | 480 | dso->rel = 0; |
481 | dso->sorted_by_name = 0; | 481 | dso->sorted_by_name = 0; |
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index aa3384745d75..cd7d6f078cdd 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
@@ -83,7 +83,7 @@ struct dso { | |||
83 | enum dso_kernel_type kernel; | 83 | enum dso_kernel_type kernel; |
84 | enum dso_swap_type needs_swap; | 84 | enum dso_swap_type needs_swap; |
85 | enum dso_binary_type symtab_type; | 85 | enum dso_binary_type symtab_type; |
86 | enum dso_binary_type data_type; | 86 | enum dso_binary_type binary_type; |
87 | u8 adjust_symbols:1; | 87 | u8 adjust_symbols:1; |
88 | u8 has_build_id:1; | 88 | u8 has_build_id:1; |
89 | u8 has_srcline:1; | 89 | u8 has_srcline:1; |
@@ -159,14 +159,14 @@ size_t dso__fprintf(struct dso *dso, enum map_type type, FILE *fp); | |||
159 | 159 | ||
160 | static inline bool dso__is_vmlinux(struct dso *dso) | 160 | static inline bool dso__is_vmlinux(struct dso *dso) |
161 | { | 161 | { |
162 | return dso->data_type == DSO_BINARY_TYPE__VMLINUX || | 162 | return dso->binary_type == DSO_BINARY_TYPE__VMLINUX || |
163 | dso->data_type == DSO_BINARY_TYPE__GUEST_VMLINUX; | 163 | dso->binary_type == DSO_BINARY_TYPE__GUEST_VMLINUX; |
164 | } | 164 | } |
165 | 165 | ||
166 | static inline bool dso__is_kcore(struct dso *dso) | 166 | static inline bool dso__is_kcore(struct dso *dso) |
167 | { | 167 | { |
168 | return dso->data_type == DSO_BINARY_TYPE__KCORE || | 168 | return dso->binary_type == DSO_BINARY_TYPE__KCORE || |
169 | dso->data_type == DSO_BINARY_TYPE__GUEST_KCORE; | 169 | dso->binary_type == DSO_BINARY_TYPE__GUEST_KCORE; |
170 | } | 170 | } |
171 | 171 | ||
172 | void dso__free_a2l(struct dso *dso); | 172 | void dso__free_a2l(struct dso *dso); |
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 9ee4b80dac57..923d00040bbf 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1089,9 +1089,9 @@ static int dso__load_kcore(struct dso *dso, struct map *map, | |||
1089 | * dso__data_read_addr(). | 1089 | * dso__data_read_addr(). |
1090 | */ | 1090 | */ |
1091 | if (dso->kernel == DSO_TYPE_GUEST_KERNEL) | 1091 | if (dso->kernel == DSO_TYPE_GUEST_KERNEL) |
1092 | dso->data_type = DSO_BINARY_TYPE__GUEST_KCORE; | 1092 | dso->binary_type = DSO_BINARY_TYPE__GUEST_KCORE; |
1093 | else | 1093 | else |
1094 | dso->data_type = DSO_BINARY_TYPE__KCORE; | 1094 | dso->binary_type = DSO_BINARY_TYPE__KCORE; |
1095 | dso__set_long_name(dso, strdup(kcore_filename), true); | 1095 | dso__set_long_name(dso, strdup(kcore_filename), true); |
1096 | 1096 | ||
1097 | close(fd); | 1097 | close(fd); |
@@ -1368,9 +1368,9 @@ int dso__load_vmlinux(struct dso *dso, struct map *map, | |||
1368 | 1368 | ||
1369 | if (err > 0) { | 1369 | if (err > 0) { |
1370 | if (dso->kernel == DSO_TYPE_GUEST_KERNEL) | 1370 | if (dso->kernel == DSO_TYPE_GUEST_KERNEL) |
1371 | dso->data_type = DSO_BINARY_TYPE__GUEST_VMLINUX; | 1371 | dso->binary_type = DSO_BINARY_TYPE__GUEST_VMLINUX; |
1372 | else | 1372 | else |
1373 | dso->data_type = DSO_BINARY_TYPE__VMLINUX; | 1373 | dso->binary_type = DSO_BINARY_TYPE__VMLINUX; |
1374 | dso__set_long_name(dso, vmlinux, vmlinux_allocated); | 1374 | dso__set_long_name(dso, vmlinux, vmlinux_allocated); |
1375 | dso__set_loaded(dso, map->type); | 1375 | dso__set_loaded(dso, map->type); |
1376 | pr_debug("Using %s for symbols\n", symfs_vmlinux); | 1376 | pr_debug("Using %s for symbols\n", symfs_vmlinux); |