diff options
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r-- | tools/perf/util/machine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index cf826eca3aaf..83b2fbbeeb90 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
@@ -1378,6 +1378,7 @@ static int machine__set_modules_path(struct machine *machine) | |||
1378 | return map_groups__set_modules_path_dir(&machine->kmaps, modules_path, 0); | 1378 | return map_groups__set_modules_path_dir(&machine->kmaps, modules_path, 0); |
1379 | } | 1379 | } |
1380 | int __weak arch__fix_module_text_start(u64 *start __maybe_unused, | 1380 | int __weak arch__fix_module_text_start(u64 *start __maybe_unused, |
1381 | u64 *size __maybe_unused, | ||
1381 | const char *name __maybe_unused) | 1382 | const char *name __maybe_unused) |
1382 | { | 1383 | { |
1383 | return 0; | 1384 | return 0; |
@@ -1389,7 +1390,7 @@ static int machine__create_module(void *arg, const char *name, u64 start, | |||
1389 | struct machine *machine = arg; | 1390 | struct machine *machine = arg; |
1390 | struct map *map; | 1391 | struct map *map; |
1391 | 1392 | ||
1392 | if (arch__fix_module_text_start(&start, name) < 0) | 1393 | if (arch__fix_module_text_start(&start, &size, name) < 0) |
1393 | return -1; | 1394 | return -1; |
1394 | 1395 | ||
1395 | map = machine__findnew_module_map(machine, start, name); | 1396 | map = machine__findnew_module_map(machine, start, name); |