From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XenUw-0002Fr-RA for qemu-devel@nongnu.org; Thu, 16 Oct 2014 12:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XenUw-0004HO-2y for qemu-devel@nongnu.org; Thu, 16 Oct 2014 12:01:54 -0400 Received: from mail-vc0-x22c.google.com ([2607:f8b0:400c:c03::22c]:41232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XenUv-0004HK-VM for qemu-devel@nongnu.org; Thu, 16 Oct 2014 12:01:54 -0400 Received: by mail-vc0-f172.google.com with SMTP id lf12so2926645vcb.17 for ; Thu, 16 Oct 2014 09:01:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <543F232A.6080104@gmail.com> From: Pranith Kumar Date: Thu, 16 Oct 2014 12:01:23 -0400 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Counting barrier instructions in ARM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers Hi Peter, On Thu, Oct 16, 2014 at 4:05 AM, Peter Maydell wrote: > On 16 October 2014 03:45, Pranith Kumar 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. > >> Also the statistics gathered are not really accurate. > > This will be because you're using add rather than addi, > so you're adding effectively a random number to the count > every time (whatever TCG's "value in temporary 1" happens > to be, I expect). OK, I updated this when Max Filippov pointed it out. Thanks! -- Pranith