|
@@ -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);
|