From: Jiri Olsa Date: Thu, 12 Feb 2015 21:49:41 +0000 (+0100) Subject: perf tools: Remove is_kmodule_extension function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=907fb509f0f1e35848d9e20b00176319af79101c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf tools: Remove is_kmodule_extension function Because it's no longer needed. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-bb84vlg76t78q8y8fdeed2qn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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) return false; } -bool is_kmodule_extension(const char *ext) -{ - if (strncmp(ext, "ko", 2)) - return false; - - if (ext[2] == '\0' || (ext[2] == '.' && is_supported_compression(ext+3))) - return true; - - return false; -} - bool is_kernel_module(const char *pathname) { 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); int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type type, char *root_dir, char *filename, size_t size); bool is_supported_compression(const char *ext); -bool is_kmodule_extension(const char *ext); bool is_kernel_module(const char *pathname); bool decompress_to_file(const char *ext, const char *filename, int output_fd); bool dso__needs_decompress(struct dso *dso);