diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index ebb48a623407..9d12aa6dd485 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -446,6 +446,9 @@ int perf_event__synthesize_threads(struct perf_tool *tool, | |||
446 | union perf_event *comm_event, *mmap_event, *fork_event; | 446 | union perf_event *comm_event, *mmap_event, *fork_event; |
447 | int err = -1; | 447 | int err = -1; |
448 | 448 | ||
449 | if (machine__is_default_guest(machine)) | ||
450 | return 0; | ||
451 | |||
449 | comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); | 452 | comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); |
450 | if (comm_event == NULL) | 453 | if (comm_event == NULL) |
451 | goto out; | 454 | goto out; |
@@ -458,9 +461,6 @@ int perf_event__synthesize_threads(struct perf_tool *tool, | |||
458 | if (fork_event == NULL) | 461 | if (fork_event == NULL) |
459 | goto out_free_mmap; | 462 | goto out_free_mmap; |
460 | 463 | ||
461 | if (machine__is_default_guest(machine)) | ||
462 | return 0; | ||
463 | |||
464 | snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir); | 464 | snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir); |
465 | proc = opendir(proc_path); | 465 | proc = opendir(proc_path); |
466 | 466 | ||