diff options
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 203152729a68..6b13a1ecf1e7 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
| @@ -37,6 +37,7 @@ static bool use_modules; | |||
| 37 | 37 | ||
| 38 | static unsigned long page_size; | 38 | static unsigned long page_size; |
| 39 | static unsigned long mmap_window = 32; | 39 | static unsigned long mmap_window = 32; |
| 40 | const char *vmlinux_name; | ||
| 40 | 41 | ||
| 41 | struct sym_hist { | 42 | struct sym_hist { |
| 42 | u64 sum; | 43 | u64 sum; |
| @@ -637,7 +638,7 @@ static int __cmd_annotate(void) | |||
| 637 | exit(0); | 638 | exit(0); |
| 638 | } | 639 | } |
| 639 | 640 | ||
| 640 | if (kernel_maps__init(use_modules) < 0) { | 641 | if (kernel_maps__init(vmlinux_name, true, use_modules) < 0) { |
| 641 | pr_err("failed to create kernel maps for symbol resolution\b"); | 642 | pr_err("failed to create kernel maps for symbol resolution\b"); |
| 642 | return -1; | 643 | return -1; |
| 643 | } | 644 | } |
