diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-08-15 15:08:38 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-22 12:12:11 -0400 |
commit | 4b99375b38fa137f501cfa60b70e3f0a9da39c93 (patch) | |
tree | 8b19b82fd61e9f511ceef93e4964cc0de9f8015d | |
parent | d445dd2a78eed884adf3b3426b078fe69d2516d8 (diff) |
perf machine: Rename machine__get_kernel_start_addr() method
Rename machine__get_kernel_start_addr() to
machine__get_running_kernel_start() so that a new function, with a
similar name to the original name, can be added that gets the kernel
start address from the kernel map.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1408129739-17368-4-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/machine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index b093b93607fb..37f8dc557ec0 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
@@ -593,8 +593,8 @@ const char *ref_reloc_sym_names[] = {"_text", "_stext", NULL}; | |||
593 | * Returns the name of the start symbol in *symbol_name. Pass in NULL as | 593 | * Returns the name of the start symbol in *symbol_name. Pass in NULL as |
594 | * symbol_name if it's not that important. | 594 | * symbol_name if it's not that important. |
595 | */ | 595 | */ |
596 | static u64 machine__get_kernel_start_addr(struct machine *machine, | 596 | static u64 machine__get_running_kernel_start(struct machine *machine, |
597 | const char **symbol_name) | 597 | const char **symbol_name) |
598 | { | 598 | { |
599 | char filename[PATH_MAX]; | 599 | char filename[PATH_MAX]; |
600 | int i; | 600 | int i; |
@@ -621,7 +621,7 @@ static u64 machine__get_kernel_start_addr(struct machine *machine, | |||
621 | int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel) | 621 | int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel) |
622 | { | 622 | { |
623 | enum map_type type; | 623 | enum map_type type; |
624 | u64 start = machine__get_kernel_start_addr(machine, NULL); | 624 | u64 start = machine__get_running_kernel_start(machine, NULL); |
625 | 625 | ||
626 | for (type = 0; type < MAP__NR_TYPES; ++type) { | 626 | for (type = 0; type < MAP__NR_TYPES; ++type) { |
627 | struct kmap *kmap; | 627 | struct kmap *kmap; |
@@ -940,7 +940,7 @@ int machine__create_kernel_maps(struct machine *machine) | |||
940 | { | 940 | { |
941 | struct dso *kernel = machine__get_kernel(machine); | 941 | struct dso *kernel = machine__get_kernel(machine); |
942 | const char *name; | 942 | const char *name; |
943 | u64 addr = machine__get_kernel_start_addr(machine, &name); | 943 | u64 addr = machine__get_running_kernel_start(machine, &name); |
944 | if (!addr) | 944 | if (!addr) |
945 | return -1; | 945 | return -1; |
946 | 946 | ||