Received: from eggs.gnu.org ([2001:4830:134:3::10]:45418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAMKe-00008g-4n for qemu-devel@nongnu.org; Mon, 03 Feb 2014 11:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAMKV-00023W-SL for qemu-devel@nongnu.org; Mon, 03 Feb 2014 11:25:12 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:38896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAMKV-0001uS-F5 for qemu-devel@nongnu.org; Mon, 03 Feb 2014 11:25:03 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20140131160902.32741.2680.stgit@fimbulvetr.bsc.es> <20140203144001.GA12840@stefanha-thinkpad.redhat.com> Date: Mon, 03 Feb 2014 17:24:43 +0100 In-Reply-To: <20140203144001.GA12840@stefanha-thinkpad.redhat.com> (Stefan Hajnoczi's message of "Mon, 3 Feb 2014 15:40:01 +0100") Message-ID: <87r47k9nas.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 00/12] trace: [tcg] Allow tracing guest events in TCG-generated code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Stefan Weil , Peter Maydell , qemu-devel@nongnu.org, Aurelien Jarno , Richard Henderson Stefan Hajnoczi writes: > On Fri, Jan 31, 2014 at 05:09:03PM +0100, Llu=C3=ADs Vilanova wrote: >> Adds the base ability to specify which events in the "trace-events" file= may be >> used to trace guest activity in the TCG code (using the "tcg" event prop= ery). >>=20 >> Such events generate an extra set of tracing functions that can be calle= d during >> TCG code generation and will automatically redirect a call to the approp= riate >> backend-dependent tracing functions when the guest code is executed. > I've never worked on TCG but this seems like a good idea: a way to plant > trace events in TCG-generated code. > CCing TCG folks to check they are happy with the approach > Once any high-level discussion is done I'll review the tracing changes. I have some other guest code events on other patches (e.g., instruction/BBL execution), but memory accesses are useful and simple enough to show how it works. Another question is whether the tracing functions called during translation (trace_${name}_tcg) should also be themselves traceable (e.g., to see in a = trace how many times and which instructions are translated by QEMU). Thanks, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth