From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5wI5-0008Cp-BW for qemu-devel@nongnu.org; Tue, 20 Sep 2011 05:06:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5wHz-00085d-Ea for qemu-devel@nongnu.org; Tue, 20 Sep 2011 05:06:57 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:43665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5wHy-00085W-Mm for qemu-devel@nongnu.org; Tue, 20 Sep 2011 05:06:51 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp01.au.ibm.com (8.14.4/8.13.1) with ESMTP id p8K956YB026702 for ; Tue, 20 Sep 2011 19:05:06 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8K94gow790672 for ; Tue, 20 Sep 2011 19:04:43 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8K96aBh005864 for ; Tue, 20 Sep 2011 19:06:36 +1000 Message-ID: <4E785769.403@vnet.linux.ibm.com> Date: Tue, 20 Sep 2011 17:05:45 +0800 From: hkran MIME-Version: 1.0 References: <1315561022-25386-1-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1315561022-25386-1-git-send-email-stefanha@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/2] Make simpletrace work on Windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Jan Kiszka , qemu-devel@nongnu.org On 09/09/2011 05:37 PM, Stefan Hajnoczi wrote: > The 'simple' trace backend uses pthreads and does not work on Windows. These > patches switch from pthreads to glib so that the code builds on all platforms > supported by glib. > > Only one thing I'm unhappy about: the simpletrace write-out thread used to > block all signals. I have removed that code and don't expect glib to do it for > me. I'm not sure if there is a problem if signal handlers are invoked in the > write-out thread instead of a QEMU thread. Any thoughts? > > Stefan Hajnoczi (2): > trace: portable simple trace backend using glib > trace: use binary file open mode in simpletrace > > trace/simple.c | 58 ++++++++++++++++++++++++++----------------------------- > 1 files changed, 27 insertions(+), 31 deletions(-) > Stefan, I applied the patch and make &install it. After a round of running of the qemu with the patch, a trace file is here, but when I want to open it like this, ./simpletrace.py trace-events trace-29948 //trace-29948 is my tracefile an error occurs: Traceback (most recent call last): File "./simpletrace.py", line 151, in run(Formatter()) File "./simpletrace.py", line 131, in run events = parse_events(open(sys.argv[1], 'r')) IOError: [Errno 2] No such file or directory: 'trace-events' Am I using it in a right way? Additionally, There is something about WIN32 in patch, How can I compile a qemu running on windows? Could you give a reference? thanks