diff options
author | Zhang, Yanmin <yanmin_zhang@linux.intel.com> | 2010-04-19 01:32:50 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-19 05:37:24 -0400 |
commit | a1645ce12adb6c9cc9e19d7695466204e3f017fe (patch) | |
tree | 5d31aaaf534997e6e9cebc07f38eca35f76986cf /tools/perf/util/probe-event.c | |
parent | ff9d07a0e7ce756a183e7c2e483aec452ee6b574 (diff) |
perf: 'perf kvm' tool for monitoring guest performance from host
Here is the patch of userspace perf tool.
Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
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 | ||