diff options
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 5bf8ab034466..3967f8f63d0d 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -78,6 +78,7 @@ static struct map *kmaps[MAP__NR_TYPES]; | |||
78 | /* Initialize symbol maps and path of vmlinux */ | 78 | /* Initialize symbol maps and path of vmlinux */ |
79 | static int init_vmlinux(void) | 79 | static int init_vmlinux(void) |
80 | { | 80 | { |
81 | struct dso *kernel; | ||
81 | int ret; | 82 | int ret; |
82 | 83 | ||
83 | symbol_conf.sort_by_name = true; | 84 | symbol_conf.sort_by_name = true; |
@@ -91,8 +92,12 @@ static int init_vmlinux(void) | |||
91 | goto out; | 92 | goto out; |
92 | } | 93 | } |
93 | 94 | ||
95 | kernel = dso__new_kernel(symbol_conf.vmlinux_name); | ||
96 | if (kernel == NULL) | ||
97 | die("Failed to create kernel dso."); | ||
98 | |||
94 | map_groups__init(&kmap_groups); | 99 | map_groups__init(&kmap_groups); |
95 | ret = map_groups__create_kernel_maps(&kmap_groups, kmaps); | 100 | ret = __map_groups__create_kernel_maps(&kmap_groups, kmaps, kernel); |
96 | if (ret < 0) | 101 | if (ret < 0) |
97 | pr_debug("Failed to create kernel maps.\n"); | 102 | pr_debug("Failed to create kernel maps.\n"); |
98 | 103 | ||