From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57791 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFQAz-0004AN-7h for qemu-devel@nongnu.org; Fri, 21 May 2010 07:14:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFQAw-0005ub-65 for qemu-devel@nongnu.org; Fri, 21 May 2010 07:14:00 -0400 Received: from david.siemens.de ([192.35.17.14]:19633) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFQAv-0005tm-TZ for qemu-devel@nongnu.org; Fri, 21 May 2010 07:13:58 -0400 Message-ID: <4BF66AED.5080201@siemens.com> Date: Fri, 21 May 2010 13:13:49 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1274434947-2863-1-git-send-email-stefanha@linux.vnet.ibm.com> <1274434947-2863-2-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1274434947-2863-2-git-send-email-stefanha@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 1/2] trace: Add simple tracing support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , qemu-devel@nongnu.org, kvm@vger.kernel.org, Prerna Saxena Stefan Hajnoczi wrote: > Trace events should be defined in trace.h. Events are written to > /tmp/trace.log and can be formatted using trace.py. Remember to add > events to trace.py for pretty-printing. When already writing to a file, why not reusing QEMU's logging infrastructure ("log " / "-d foo")? Shouldn't make a huge performance difference if the data is saved in clear-text. Also, having support for ftrace's user space markers would be a very nice option (only an option as it's Linux-specific), see http://lwn.net/Articles/366796. This allows to correlate kernel events (KVM as well as others) with what goes on in QEMU. It simply enables integration with the whole kernel tracing infrastructure, e.g. KernelShark (http://people.redhat.com/srostedt/kernelshark/HTML). Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux