[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Counting barrier instructions in ARM
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] Counting barrier instructions in ARM |
Date: |
Fri, 17 Oct 2014 11:43:04 +0100 |
Pranith Kumar <address@hidden> writes:
> Hi Peter,
>
> On Thu, Oct 16, 2014 at 4:05 AM, Peter Maydell <address@hidden> wrote:
>> On 16 October 2014 03:45, Pranith Kumar <address@hidden> wrote:
>>> The problem I am facing is that this seems to be crashing when run with a
>>> multi-threaded executable.
>>
>> This is nothing to do with your changes -- user-mode QEMU does not
>> support multi-threaded guest executables. QEMU may crash, hang,
>> or stop with an assertion failure, fairly randomly. Don't try
>> to run multithreaded guests :-)
>
> OK, I will try to gather the statistics in system mode. Is there any
> way to indicate from within the system to qemu to start collecting the stats?
>
> I dont want to collect the stats for bootup and other unrelated code
> paths.
You could enable CONTEXTIDR in the kernel and then make your counts
against an array indexed by it. I've used that technique before to
profile guest hot-blocks and work out which guest PID was responsible.
--
Alex Bennée