|
@@ -593,8 +593,8 @@ const char *ref_reloc_sym_names[] = {"_text", "_stext", NULL};
|
|
|
* Returns the name of the start symbol in *symbol_name. Pass in NULL as
|
|
|
* symbol_name if it's not that important.
|
|
|
*/
|
|
|
-static u64 machine__get_kernel_start_addr(struct machine *machine,
|
|
|
- const char **symbol_name)
|
|
|
+static u64 machine__get_running_kernel_start(struct machine *machine,
|
|
|
+ const char **symbol_name)
|
|
|
{
|
|
|
char filename[PATH_MAX];
|
|
|
int i;
|
|
@@ -621,7 +621,7 @@ static u64 machine__get_kernel_start_addr(struct machine *machine,
|
|
|
int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel)
|
|
|
{
|
|
|
enum map_type type;
|
|
|
- u64 start = machine__get_kernel_start_addr(machine, NULL);
|
|
|
+ u64 start = machine__get_running_kernel_start(machine, NULL);
|
|
|
|
|
|
for (type = 0; type < MAP__NR_TYPES; ++type) {
|
|
|
struct kmap *kmap;
|
|
@@ -940,7 +940,7 @@ int machine__create_kernel_maps(struct machine *machine)
|
|
|
{
|
|
|
struct dso *kernel = machine__get_kernel(machine);
|
|
|
const char *name;
|
|
|
- u64 addr = machine__get_kernel_start_addr(machine, &name);
|
|
|
+ u64 addr = machine__get_running_kernel_start(machine, &name);
|
|
|
if (!addr)
|
|
|
return -1;
|
|
|
|