|
@@ -133,6 +133,9 @@ static pid_t perf_event__synthesize_comm(struct perf_tool *tool,
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (machine__is_default_guest(machine))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
snprintf(filename, sizeof(filename), "%s/proc/%d/task",
|
|
snprintf(filename, sizeof(filename), "%s/proc/%d/task",
|
|
machine->root_dir, pid);
|
|
machine->root_dir, pid);
|
|
|
|
|
|
@@ -183,6 +186,9 @@ static int perf_event__synthesize_mmap_events(struct perf_tool *tool,
|
|
FILE *fp;
|
|
FILE *fp;
|
|
int rc = 0;
|
|
int rc = 0;
|
|
|
|
|
|
|
|
+ if (machine__is_default_guest(machine))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
snprintf(filename, sizeof(filename), "%s/proc/%d/maps",
|
|
snprintf(filename, sizeof(filename), "%s/proc/%d/maps",
|
|
machine->root_dir, pid);
|
|
machine->root_dir, pid);
|
|
|
|
|
|
@@ -409,6 +415,9 @@ int perf_event__synthesize_threads(struct perf_tool *tool,
|
|
if (mmap_event == NULL)
|
|
if (mmap_event == NULL)
|
|
goto out_free_comm;
|
|
goto out_free_comm;
|
|
|
|
|
|
|
|
+ if (machine__is_default_guest(machine))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir);
|
|
snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir);
|
|
proc = opendir(proc_path);
|
|
proc = opendir(proc_path);
|
|
|
|
|