From 329f0adef39aedb8ac4be279c3394f32b53b1a88 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 25 Apr 2018 11:40:32 -0300 Subject: perf machine: Shorten machine__load_kallsyms() signature So far the only use is for MAP__FUNCTION, and since we're going to remove that split, remove the map_type argument in machine__load_kallsyms(). Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-5dhgh7x8g9hx5hpxlp3k08jp@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/machine.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tools/perf/util/machine.h') diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h index 92303ac718a6..dc95404959ee 100644 --- a/tools/perf/util/machine.h +++ b/tools/perf/util/machine.h @@ -237,8 +237,14 @@ struct map *machine__findnew_module_map(struct machine *machine, u64 start, const char *filename); int arch__fix_module_text_start(u64 *start, const char *name); -int machine__load_kallsyms(struct machine *machine, const char *filename, - enum map_type type); +int __machine__load_kallsyms(struct machine *machine, const char *filename, + enum map_type type); + +static inline int machine__load_kallsyms(struct machine *machine, const char *filename) +{ + return __machine__load_kallsyms(machine, filename, MAP__FUNCTION); +} + int machine__load_vmlinux_path(struct machine *machine, enum map_type type); size_t machine__fprintf_dsos_buildid(struct machine *machine, FILE *fp, -- cgit v1.2.3