diff options
Diffstat (limited to 'tools/perf/tests/code-reading.c')
| -rw-r--r-- | tools/perf/tests/code-reading.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c index 2af156a8d4e5..ff5bc6363a79 100644 --- a/tools/perf/tests/code-reading.c +++ b/tools/perf/tests/code-reading.c | |||
| @@ -263,7 +263,7 @@ static int read_object_code(u64 addr, size_t len, u8 cpumode, | |||
| 263 | * Converting addresses for use by objdump requires more information. | 263 | * Converting addresses for use by objdump requires more information. |
| 264 | * map__load() does that. See map__rip_2objdump() for details. | 264 | * map__load() does that. See map__rip_2objdump() for details. |
| 265 | */ | 265 | */ |
| 266 | if (map__load(al.map, NULL)) | 266 | if (map__load(al.map)) |
| 267 | return -1; | 267 | return -1; |
| 268 | 268 | ||
| 269 | /* objdump struggles with kcore - try each map only once */ | 269 | /* objdump struggles with kcore - try each map only once */ |
| @@ -511,7 +511,7 @@ static int do_test_code_reading(bool try_kcore) | |||
| 511 | 511 | ||
| 512 | /* Load kernel map */ | 512 | /* Load kernel map */ |
| 513 | map = machine__kernel_map(machine); | 513 | map = machine__kernel_map(machine); |
| 514 | ret = map__load(map, NULL); | 514 | ret = map__load(map); |
| 515 | if (ret < 0) { | 515 | if (ret < 0) { |
| 516 | pr_debug("map__load failed\n"); | 516 | pr_debug("map__load failed\n"); |
| 517 | goto out_err; | 517 | goto out_err; |
