From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StbwT-0007eV-4V for qemu-devel@nongnu.org; Tue, 24 Jul 2012 06:02:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StbwM-000469-Do for qemu-devel@nongnu.org; Tue, 24 Jul 2012 06:02:13 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:42403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StbwM-000463-68 for qemu-devel@nongnu.org; Tue, 24 Jul 2012 06:02:06 -0400 Received: by bkcji1 with SMTP id ji1so5183818bkc.4 for ; Tue, 24 Jul 2012 03:02:05 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120724023657.6600.52706.stgit@ltc189.sdl.hitachi.co.jp> References: <20120724023657.6600.52706.stgit@ltc189.sdl.hitachi.co.jp> Date: Tue, 24 Jul 2012 11:02:04 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [RFC PATCH 0/6] virtio-trace: Support virtio-trace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yoshihiro YUNOMAE Cc: Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Frederic Weisbecker , Dhaval Giani , qemu-devel@nongnu.org, Borislav Petkov , linux-kernel@vger.kernel.org, "Franch Ch. Eigler" , Ingo Molnar , Mathieu Desnoyers , Steven Rostedt , Anthony Liguori , yrl.pp-manager.tt@hitachi.com, Amit Shah , virtualization@lists.linux-foundation.org, Srikar Dronamraju On Tue, Jul 24, 2012 at 3:36 AM, Yoshihiro YUNOMAE wrote: > The performance of each method is compared as follows: > [1] Native > - only recording trace data to ring-buffer on a guest > [2] Virtio-trace > - running a trace agent on a guest > - a reader on a host opens FIFO using cat command > [3] IVRing > - A SystemTap script in a guest records trace data to IVRing. > -- probe points are same as ftrace. > [4] Virtio-serial(normal) > - A reader(using cat) on a guest output trace data to a host using > standard output via virtio-serial. The first time I read this I thought you are adding a new virtio-trace device. But it looks like this series really add splice support to virtio-console and that yields a big performance improvement when sending trace_pipe_raw. Guest ftrace is useful and I like this. Have you thought about controlling ftrace from the host? Perhaps a command could be added to the QEMU guest agent which basically invokes trace-cmd/perf. Are you using text formatted ftrace? Stefan