mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
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>
This commit is contained in:
parent
ff9d07a0e7
commit
a1645ce12a
30 changed files with 1407 additions and 316 deletions
|
@ -78,6 +78,7 @@ static struct map *kmaps[MAP__NR_TYPES];
|
|||
/* Initialize symbol maps and path of vmlinux */
|
||||
static int init_vmlinux(void)
|
||||
{
|
||||
struct dso *kernel;
|
||||
int ret;
|
||||
|
||||
symbol_conf.sort_by_name = true;
|
||||
|
@ -91,8 +92,12 @@ static int init_vmlinux(void)
|
|||
goto out;
|
||||
}
|
||||
|
||||
kernel = dso__new_kernel(symbol_conf.vmlinux_name);
|
||||
if (kernel == NULL)
|
||||
die("Failed to create kernel dso.");
|
||||
|
||||
map_groups__init(&kmap_groups);
|
||||
ret = map_groups__create_kernel_maps(&kmap_groups, kmaps);
|
||||
ret = __map_groups__create_kernel_maps(&kmap_groups, kmaps, kernel);
|
||||
if (ret < 0)
|
||||
pr_debug("Failed to create kernel maps.\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue