perf tools: Remove is_kmodule_extension function
authorJiri Olsa <[email protected]>
Thu, 12 Feb 2015 21:49:41 +0000 (22:49 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 23 Mar 2015 15:40:15 +0000 (12:40 -0300)
Because it's no longer needed.

Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/dso.c
tools/perf/util/dso.h

index 8803a69fc260b9b663fba01b08ce26d622c4e28c..0d3667f92023beba165c0b414cbf16acba2a28ee 100644 (file)
@@ -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;
index 54dd03a490ce9e05fbb2a9a519528d102e87fc71..88f345cc5be22518d458b4a75d79533db873d1ae 100644 (file)
@@ -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);