Re: perf: record segfaults for cycles event when collecting data on a VM

Ingo Molnar
2012-02-09T07:30:33Z

* Joerg Roedel <joerg.roedel@amd.com> wrote:

> > which makes sense. It forces
> > perf_session__find_machine_for_cpumode() to return the host
> > machine always.
>
> Great, thanks. I will send two patches tomorrow to fix Jason's
> problem and change the default for perf_guest.

Well, if the crash is fixed then the the default can stay,
right?

Generally we should treat all input data in a perf.data or even
the bits we get in the ring-buffer as external data that has to
be checked carefully, with no assumptions made about data.

Thanks,

Ingo