aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r--tools/perf/util/machine.c8
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 */
596static u64 machine__get_kernel_start_addr(struct machine *machine, 596static 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,
621int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel) 621int __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