diff options
Diffstat (limited to 'tools/perf/util/data_map.c')
-rw-r--r-- | tools/perf/util/data_map.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/perf/util/data_map.c b/tools/perf/util/data_map.c index f318d19b2562..b238462b8983 100644 --- a/tools/perf/util/data_map.c +++ b/tools/perf/util/data_map.c | |||
@@ -101,8 +101,6 @@ out: | |||
101 | 101 | ||
102 | int mmap_dispatch_perf_file(struct perf_header **pheader, | 102 | int mmap_dispatch_perf_file(struct perf_header **pheader, |
103 | const char *input_name, | 103 | const char *input_name, |
104 | const char *vmlinux_name, | ||
105 | bool try_vmlinux_path, | ||
106 | int force, | 104 | int force, |
107 | int full_paths, | 105 | int full_paths, |
108 | int *cwdlen, | 106 | int *cwdlen, |
@@ -172,12 +170,6 @@ int mmap_dispatch_perf_file(struct perf_header **pheader, | |||
172 | curr_handler->sample_type_check(sample_type) < 0) | 170 | curr_handler->sample_type_check(sample_type) < 0) |
173 | goto out_delete; | 171 | goto out_delete; |
174 | 172 | ||
175 | err = -ENOMEM; | ||
176 | if (kernel_maps__init(vmlinux_name, try_vmlinux_path, true) < 0) { | ||
177 | pr_err("failed to setup the kernel maps to resolve symbols\n"); | ||
178 | goto out_delete; | ||
179 | } | ||
180 | |||
181 | if (!full_paths) { | 173 | if (!full_paths) { |
182 | if (getcwd(__cwd, sizeof(__cwd)) == NULL) { | 174 | if (getcwd(__cwd, sizeof(__cwd)) == NULL) { |
183 | pr_err("failed to get the current directory\n"); | 175 | pr_err("failed to get the current directory\n"); |