diff options
author | Jiri Olsa <jolsa@kernel.org> | 2015-02-12 16:49:41 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-03-23 11:40:15 -0400 |
commit | 907fb509f0f1e35848d9e20b00176319af79101c (patch) | |
tree | d827d19e34fb67c79acd4610127f1fc7bcd228a6 /tools | |
parent | e746b3ea0d414b3382bb61c8cecc45cefb370fbf (diff) |
perf tools: Remove is_kmodule_extension function
Because it's no longer needed.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-bb84vlg76t78q8y8fdeed2qn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/dso.c | 11 | ||||
-rw-r--r-- | tools/perf/util/dso.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index 8803a69fc260..0d3667f92023 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c | |||
@@ -165,17 +165,6 @@ bool is_supported_compression(const char *ext) | |||
165 | return false; | 165 | return false; |
166 | } | 166 | } |
167 | 167 | ||
168 | bool is_kmodule_extension(const char *ext) | ||
169 | { | ||
170 | if (strncmp(ext, "ko", 2)) | ||
171 | return false; | ||
172 | |||
173 | if (ext[2] == '\0' || (ext[2] == '.' && is_supported_compression(ext+3))) | ||
174 | return true; | ||
175 | |||
176 | return false; | ||
177 | } | ||
178 | |||
179 | bool is_kernel_module(const char *pathname) | 168 | bool is_kernel_module(const char *pathname) |
180 | { | 169 | { |
181 | struct kmod_path m; | 170 | struct kmod_path m; |
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index 54dd03a490ce..88f345cc5be2 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
@@ -190,7 +190,6 @@ char dso__symtab_origin(const struct dso *dso); | |||
190 | int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type type, | 190 | int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type type, |
191 | char *root_dir, char *filename, size_t size); | 191 | char *root_dir, char *filename, size_t size); |
192 | bool is_supported_compression(const char *ext); | 192 | bool is_supported_compression(const char *ext); |
193 | bool is_kmodule_extension(const char *ext); | ||
194 | bool is_kernel_module(const char *pathname); | 193 | bool is_kernel_module(const char *pathname); |
195 | bool decompress_to_file(const char *ext, const char *filename, int output_fd); | 194 | bool decompress_to_file(const char *ext, const char *filename, int output_fd); |
196 | bool dso__needs_decompress(struct dso *dso); | 195 | bool dso__needs_decompress(struct dso *dso); |