From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51290 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsuBY-0004mc-N3 for qemu-devel@nongnu.org; Tue, 07 Sep 2010 05:09:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsuBX-0001UN-CH for qemu-devel@nongnu.org; Tue, 07 Sep 2010 05:09:48 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:54274) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsuBX-0001UI-6H for qemu-devel@nongnu.org; Tue, 07 Sep 2010 05:09:47 -0400 Received: by vws19 with SMTP id 19so4160959vws.4 for ; Tue, 07 Sep 2010 02:09:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4C8520FF.1090105@codemonkey.ws> References: <1283786051-29530-1-git-send-email-stefanha@linux.vnet.ibm.com> <20100906165147.GL4777@redhat.com> <4C8520FF.1090105@codemonkey.ws> Date: Tue, 7 Sep 2010 10:09:46 +0100 Message-ID: Subject: Re: [Qemu-devel] [PATCH v3 00/14] trace: Add static tracing to QEMU From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Blue Swirl , Prerna Saxena On Mon, Sep 6, 2010 at 6:12 PM, Anthony Liguori wro= te: > On 09/06/2010 11:51 AM, Daniel P. Berrange wrote: >> >> On Mon, Sep 06, 2010 at 04:13:57PM +0100, Stefan Hajnoczi wrote: >> >>> >>> This patch series adds static tracing to QEMU. =A0It can be used to >>> instrument >>> QEMU code by means of lightweight logging called trace events. >>> >>> Prerna and I are now posting the entire patch series with a serious eye >>> towards >>> checking we meet users' and developers' tracing needs and with the goal >>> of >>> getting this functionality merged into qemu.git. >>> >> >> The main question would be why create a tracing framework and probe >> markup macros specific to QEMU ? It looks like quite a few major >> open source projects (PostgreSQL, Python, TCL, OpenJDK) are using >> DTrace static probe markers for code instrumentation. IIUC this >> is accessible on Solaris, (Free/Net?)-BSD, OS-X and also Linux via >> SystemTAP's DTrace compat layer. Is this QEMU specific probe markup >> flexible enough to make it possible to also support DTrace/SystemTAP >> without having to add a second set of source code markers to every >> probe point ? >> > > Yes, there's a simple generator which converts are marker format to any t= ype > of backend. =A0It can be =A0LTTng, dtrace, or something simpler. > > If you look at some of the earlier threads, the basic problem is that no > single trace point infrastructure seems to be sufficiently mature today s= o > using an intermediary to delay the decision of which backend should be us= ed > seemed like the prudent thing to do. When the dust settles and userspace tracing works out-of-the-box. Right now tracers are just not there yet. They are not upstream, they are not packaged, or they require other admin setup. That is not an issue for developers with sufficient time, but it is blocker for someone who's seeing a problem on a production system. LTTng UST support is included in this patchset. Adding DTrace static probes should be easy too since QEMU's trace events are independent of the trace backend. Stefan