aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/machine.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-04-25 11:40:32 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-04-26 13:47:10 -0300
commit329f0adef39aedb8ac4be279c3394f32b53b1a88 (patch)
tree4ad7853c13ba6c6573a69ff05f834decdbfd1c3b /tools/perf/util/machine.h
parentperf machine: Introduce machine__kernel_maps() (diff)
downloadlinux-dev-329f0adef39aedb8ac4be279c3394f32b53b1a88.tar.xz
linux-dev-329f0adef39aedb8ac4be279c3394f32b53b1a88.zip
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.h10
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,