diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-25 11:40:32 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-26 13:47:10 -0300 |
commit | 329f0adef39aedb8ac4be279c3394f32b53b1a88 (patch) | |
tree | 4ad7853c13ba6c6573a69ff05f834decdbfd1c3b /tools/perf/util/machine.c | |
parent | 68a741868a0612408a46fda4c06663315d40c544 (diff) | |
download | linux-stable-329f0adef39aedb8ac4be279c3394f32b53b1a88.tar.gz linux-stable-329f0adef39aedb8ac4be279c3394f32b53b1a88.tar.bz2 linux-stable-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.c')
-rw-r--r-- | tools/perf/util/machine.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index fc71f2c69c8b..d39432c7db86 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -137,13 +137,11 @@ struct machine *machine__new_kallsyms(void) struct machine *machine = machine__new_host(); /* * FIXME: - * 1) MAP__FUNCTION will go away when we stop loading separate maps for - * functions and data objects. - * 2) We should switch to machine__load_kallsyms(), i.e. not explicitely + * 1) We should switch to machine__load_kallsyms(), i.e. not explicitely * ask for not using the kcore parsing code, once this one is fixed * to create a map per module. */ - if (machine && machine__load_kallsyms(machine, "/proc/kallsyms", MAP__FUNCTION) <= 0) { + if (machine && machine__load_kallsyms(machine, "/proc/kallsyms") <= 0) { machine__delete(machine); machine = NULL; } @@ -988,7 +986,7 @@ int machines__create_kernel_maps(struct machines *machines, pid_t pid) return machine__create_kernel_maps(machine); } -int machine__load_kallsyms(struct machine *machine, const char *filename, +int __machine__load_kallsyms(struct machine *machine, const char *filename, enum map_type type) { struct map *map = machine__kernel_map(machine); |