|
|
@@ -1238,18 +1238,17 @@ static void ip__resolve_data(struct machine *machine, struct thread *thread,
|
|
|
ams->map = al.map;
|
|
|
}
|
|
|
|
|
|
-struct mem_info *machine__resolve_mem(struct machine *machine,
|
|
|
- struct thread *thr,
|
|
|
- struct perf_sample *sample,
|
|
|
- u8 cpumode)
|
|
|
+struct mem_info *sample__resolve_mem(struct perf_sample *sample,
|
|
|
+ struct addr_location *al)
|
|
|
{
|
|
|
struct mem_info *mi = zalloc(sizeof(*mi));
|
|
|
|
|
|
if (!mi)
|
|
|
return NULL;
|
|
|
|
|
|
- ip__resolve_ams(machine, thr, &mi->iaddr, sample->ip);
|
|
|
- ip__resolve_data(machine, thr, cpumode, &mi->daddr, sample->addr);
|
|
|
+ ip__resolve_ams(al->machine, al->thread, &mi->iaddr, sample->ip);
|
|
|
+ ip__resolve_data(al->machine, al->thread, al->cpumode,
|
|
|
+ &mi->daddr, sample->addr);
|
|
|
mi->data_src.val = sample->data_src;
|
|
|
|
|
|
return mi;
|