|
@@ -325,8 +325,8 @@ int perf_event__synthesize_mmap_events(struct perf_tool *tool,
|
|
if (machine__is_default_guest(machine))
|
|
if (machine__is_default_guest(machine))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- snprintf(filename, sizeof(filename), "%s/proc/%d/maps",
|
|
|
|
- machine->root_dir, pid);
|
|
|
|
|
|
+ snprintf(filename, sizeof(filename), "%s/proc/%d/task/%d/maps",
|
|
|
|
+ machine->root_dir, pid, pid);
|
|
|
|
|
|
fp = fopen(filename, "r");
|
|
fp = fopen(filename, "r");
|
|
if (fp == NULL) {
|
|
if (fp == NULL) {
|