mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
perf tools: Use tid in mmap/mmap2 events to find maps
Now that we can properly synthesize threads system-wide, make sure the mmap and mmap2 events use tids instead of pids to locate their maps. Signed-off-by: Don Zickus <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
2c86c7ca76
commit
11c9abf227
2 changed files with 3 additions and 2 deletions
|
|
@ -101,6 +101,7 @@ static struct machine *setup_fake_machine(struct machines *machines)
|
|||
.mmap = {
|
||||
.header = { .misc = PERF_RECORD_MISC_USER, },
|
||||
.pid = fake_mmap_info[i].pid,
|
||||
.tid = fake_mmap_info[i].pid,
|
||||
.start = fake_mmap_info[i].start,
|
||||
.len = 0x1000ULL,
|
||||
.pgoff = 0ULL,
|
||||
|
|
|
|||
|
|
@ -1027,7 +1027,7 @@ int machine__process_mmap2_event(struct machine *machine,
|
|||
}
|
||||
|
||||
thread = machine__findnew_thread(machine, event->mmap2.pid,
|
||||
event->mmap2.pid);
|
||||
event->mmap2.tid);
|
||||
if (thread == NULL)
|
||||
goto out_problem;
|
||||
|
||||
|
|
@ -1075,7 +1075,7 @@ int machine__process_mmap_event(struct machine *machine, union perf_event *event
|
|||
}
|
||||
|
||||
thread = machine__findnew_thread(machine, event->mmap.pid,
|
||||
event->mmap.pid);
|
||||
event->mmap.tid);
|
||||
if (thread == NULL)
|
||||
goto out_problem;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue