diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-25 17:40:32 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-26 19:47:10 +0300 |
commit | 329f0adef39aedb8ac4be279c3394f32b53b1a88 (patch) | |
tree | 4ad7853c13ba6c6573a69ff05f834decdbfd1c3b /tools/perf/util/machine.h | |
parent | 68a741868a0612408a46fda4c06663315d40c544 (diff) | |
download | linux-329f0adef39aedb8ac4be279c3394f32b53b1a88.tar.xz |
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 <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-5dhgh7x8g9hx5hpxlp3k08jp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/machine.h')
-rw-r--r-- | tools/perf/util/machine.h | 10 |
1 files changed, 8 insertions, 2 deletions
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, |