Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAjGB-0001HF-S9 for qemu-devel@nongnu.org; Wed, 09 Aug 2006 04:17:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAjGA-0001Gd-8q for qemu-devel@nongnu.org; Wed, 09 Aug 2006 04:17:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAjG9-0001GJ-W1 for qemu-devel@nongnu.org; Wed, 09 Aug 2006 04:17:50 -0400 Received: from [65.54.246.147] (helo=bay0-omc2-s11.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GAjKn-0003LZ-Vg for qemu-devel@nongnu.org; Wed, 09 Aug 2006 04:22:38 -0400 Message-ID: In-Reply-To: <200608081154.16758.vincent.palatin_qemu@polytechnique.org> From: "Steve Ellenoff" Subject: Re: [Qemu-devel] Log I/O from host Parallel Port? Date: Wed, 09 Aug 2006 08:17:45 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: vincent.palatin_qemu@polytechnique.org Cc: qemu-devel@nongnu.org Thanks Vincent! I guess I should have just looked in the parallel.c file.. Not being too familiar with linux, I just assumed the port was forwarded to linux, I didn't realize qemu had to code the transfer of data, and thus could easily log it. Now that I think about it, that's pretty stupid of me to think.. :) Thanks for setting me in the right direction. -Steve >From: Vincent Palatin >To: "Steve Ellenoff" >CC: qemu-devel@nongnu.org >Subject: Re: [Qemu-devel] Log I/O from host Parallel Port? >Date: Tue, 8 Aug 2006 11:54:16 +0200 > >On Tuesday 08 August 2006 11:05, Steve Ellenoff wrote: > > Is there any easy way to log all I/O data reads & writes to/from the >host > > parallel port, when using the -parallel /dev/parport0 option? > > > > My host is connected via parallel port to some custom hardware and I'd >like > > to be able to diagnose why the hardware's not working, by seeing the >data > > stream of the port. > >Near the top of the file "hw/parallel.c", you can find the following line : >//#define DEBUG_PARALLEL > >just uncomment it and rebuilt qemu, all parallel I/O will be written to >stdout. (or feel free to modify the printf traces) > >-- >Vincent