Re: [PATCH 1/3] perf, tool: Force guest machine definition option

From: Jiri Olsa
Date: Fri Apr 13 2012 - 08:42:04 EST


On Fri, Apr 13, 2012 at 06:21:54AM -0600, David Ahern wrote:
> On 4/13/12 5:32 AM, Jiri Olsa wrote:
> >>Even with guestmount specified you can hit this path -- e.g., no
> >>pid-based directory under guestmount for a VM.
> >
> >hm, something's wrong anyway..
> >
> >[root@dhcp-26-214 perf]# ./perf kvm --guest --guestkallsyms=./kallsyms record -p 1791
> >^C[ perf record: Woken up 1 times to write data ]
> >[ perf record: Captured and wrote 0.013 MB perf.data.guest (~576 samples) ]
> >[root@dhcp-26-214 perf]# ./perf kvm --guest --guestkallsyms=./kallsyms report --stdio
> >Segmentation fault (core dumped)
> >
> >it segfaults on guest mmap (attached bt) having NULL machine,
> >since no guest kernel buildid/dso was stored&loaded..
> >the host/guest machines code seems too 'complex' ;)
>
> That was fixed on Monday I believe. Patch is in Arnaldo's urgent queue.

I get same error even on acme's urgent branch.. do you mean
below one? It fixes the guest machine lookup for mmap event.

perf kvm: Finding struct machine fails for PERF_RECORD_MMAP
commit 7fb0a5ee8889488f7568ffddffeb66ddeb50917e
Author: Nikunj A. Dadhania <nikunj@xxxxxxxxxxxxxxxxxx>
Date: Mon Apr 9 13:52:23 2012 +0530

In my case it looks like for some reason the guest buildid DSO
is not stored in record phase (no hits maybe?), so report won't
create guest machine record at all and get NULL machine.

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/