perf tools: Remove compressed argument from is_kernel_module
tip-bot for Jiri Olsa
merge botCommit-ID: e746b3ea0d414b3382bb61c8cecc45cefb370fbf Gitweb: http://git.kernel.org/tip/e746b3ea0d414b3382bb61c8cecc45cefb370fbf Author: Jiri Olsa <[email protected]> AuthorDate: Thu, 12 Feb 2015 22:16:34 +0100 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Mon, 23 Mar 2015 12:39:30 -0300
perf tools: Remove compressed argument from is_kernel_module
We no longer need the 'compressed' argument, because all current users use 'NULL' for it.
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]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/dso.c | 5 +---- tools/perf/util/dso.h | 2 +- tools/perf/util/header.c | 2 +- tools/perf/util/machine.c | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-)
tools/perf/util/dso.c +1 -4
@@ -176,16 +176,13 @@ bool is_kmodule_extension(const char *ext)return false; } -bool is_kernel_module (const char *pathname,bool *compressed) +bool is_kernel_module (const char *pathname) {struct kmod_path m;if (kmod_path__parse (&m, pathname))return NULL ; -if (compressed) - *compressed = m.comp; -return m.kmod; }
tools/perf/util/dso.h +1 -1
@@ -191,7 +191,7 @@ int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type t 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 *compressed); +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);
tools/perf/util/header.c +1 -1
@@ -1266,7 +1266,7 @@ static int __event_process_build_id(struct build_id_event *bev,dso__set_build_id (dso, &bev->build_id); -if (!is_kernel_module (filename,NULL )) +if (!is_kernel_module (filename)) dso->kernel = dso_type; build_id__sprintf(dso->build_id, sizeof(dso->build_id),
tools/perf/util/machine.c +1 -1
@@ -1104,7 +1104,7 @@ static int machine__process_kernel_mmap_event(struct machine *machine,struct dso *dso;list_for_each_entry (dso, &machine->kernel_dsos.head, node) { -if (is_kernel_module (dso->long_name,NULL )) +if (is_kernel_module (dso->long_name))continue ; kernel = dso;