From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro YUNOMAE Subject: Re: Re: Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace Date: Wed, 25 Jul 2012 18:13:08 +0900 Message-ID: <500FB8A4.6060503@hitachi.com> References: <20120724023657.6600.52706.stgit@ltc189.sdl.hitachi.co.jp> <500E810A.4030309@hitachi.com> <500E84D7.7060103@hitachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; Format="flowed" Content-Transfer-Encoding: base64 Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Stefan Hajnoczi Cc: Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Frederic Weisbecker , Dhaval Giani , linux-kernel@vger.kernel.org, Borislav Petkov , qemu-devel@nongnu.org, Amit Shah , "Franch Ch. Eigler" , Ingo Molnar , Mathieu Desnoyers , Steven Rostedt , Anthony Liguori , yrl.pp-manager.tt@hitachi.com, Masami Hiramatsu , virtualization@lists.linux-foundation.org, Srikar Dronamraju List-Id: virtualization@lists.linuxfoundation.org SGkgU3RlZmFuLAoKKDIwMTIvMDcvMjQgMjI6NDEpLCBTdGVmYW4gSGFqbm9jemkgd3JvdGU6Cj4g T24gVHVlLCBKdWwgMjQsIDIwMTIgYXQgMTI6MTkgUE0sIFlvc2hpaGlybyBZVU5PTUFFCj4gPHlv c2hpaGlyby55dW5vbWFlLmV6QGhpdGFjaGkuY29tPiB3cm90ZToKPj4+PiBBcmUgeW91IHVzaW5n IHRleHQgZm9ybWF0dGVkIGZ0cmFjZT8KPj4gTm8sIGN1cnJlbnRseSB1c2luZyByYXcgZm9ybWF0 LCBidXTjgIB3ZSdkIGxpa2UgdG8gcmVmb3JtYXQgaXQgaW4gdGV4dC4KPgo+IENhcHR1cmluZyB0 aGUgaW5mbyBuZWNlc3NhcnkgdG8gdHJhbnNsYXRlIG51bW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WFyY2ggTGFib3JhdG9yeQpFLW1haWw6IHlvc2hpaGlyby55dW5vbWFl LmV6QGhpdGFjaGkuY29tCgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX18KVmlydHVhbGl6YXRpb24gbWFpbGluZyBsaXN0ClZpcnR1YWxpemF0aW9uQGxpc3Rz LmxpbnV4LWZvdW5kYXRpb24ub3JnCmh0dHBzOi8vbGlzdHMubGludXhmb3VuZGF0aW9uLm9yZy9t YWlsbWFuL2xpc3RpbmZvL3ZpcnR1YWxpemF0aW9u From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756045Ab2GYJNS (ORCPT ); Wed, 25 Jul 2012 05:13:18 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:57225 "EHLO mail7.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897Ab2GYJNR (ORCPT ); Wed, 25 Jul 2012 05:13:17 -0400 X-AuditID: b753bd60-914c2ba0000047ca-f6-500fb8a9f267 X-AuditID: b753bd60-914c2ba0000047ca-f6-500fb8a9f267 Message-ID: <500FB8A4.6060503@hitachi.com> Date: Wed, 25 Jul 2012 18:13:08 +0900 From: Yoshihiro YUNOMAE User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:13.0) Gecko/20120604 Thunderbird/13.0 MIME-Version: 1.0 To: Stefan Hajnoczi Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, Herbert Xu , Arnd Bergmann , Frederic Weisbecker , yrl.pp-manager.tt@hitachi.com, qemu-devel@nongnu.org, Borislav Petkov , virtualization@lists.linux-foundation.org, "Franch Ch. Eigler" , Ingo Molnar , Mathieu Desnoyers , Steven Rostedt , Anthony Liguori , Greg Kroah-Hartman , Amit Shah , Srikar Dronamraju , Dhaval Giani Subject: Re: Re: Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace References: <20120724023657.6600.52706.stgit@ltc189.sdl.hitachi.co.jp> <500E810A.4030309@hitachi.com> <500E84D7.7060103@hitachi.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, (2012/07/24 22:41), Stefan Hajnoczi wrote: > On Tue, Jul 24, 2012 at 12:19 PM, Yoshihiro YUNOMAE > wrote: >>>> Are you using text formatted ftrace? >> No, currently using raw format, but we'd like to reformat it in text. > > Capturing the info necessary to translate numbers into symbols is one > of the problems of host<->guest tracing so I'm curious how you handle > this :). Right, your consideration is true. > Apologies for my lack of ftrace knowledge but how useful is the raw > tracing data on the host? How do you pretty-print it in > human-readable form? perf and trace-cmd can actually translate raw-formatted trace data to text-formatted trace data by using information of kernel or trace format under tracing/events directory in debugfs. In the same way, if the information of a guest is exported to a host, we can translate raw trace data of a guest to text trace data on a host. We will use 9pfs to export that. Thank you, -- Yoshihiro YUNOMAE Software Platform Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: yoshihiro.yunomae.ez@hitachi.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Stxel-0003YQ-Mf for qemu-devel@nongnu.org; Wed, 25 Jul 2012 05:13:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Stxeh-0005V9-9a for qemu-devel@nongnu.org; Wed, 25 Jul 2012 05:13:23 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:57229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Stxeg-0005Us-R6 for qemu-devel@nongnu.org; Wed, 25 Jul 2012 05:13:19 -0400 Message-ID: <500FB8A4.6060503@hitachi.com> Date: Wed, 25 Jul 2012 18:13:08 +0900 From: Yoshihiro YUNOMAE MIME-Version: 1.0 References: <20120724023657.6600.52706.stgit@ltc189.sdl.hitachi.co.jp> <500E810A.4030309@hitachi.com> <500E84D7.7060103@hitachi.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable 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: Stefan Hajnoczi Cc: Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Frederic Weisbecker , Dhaval Giani , linux-kernel@vger.kernel.org, Borislav Petkov , qemu-devel@nongnu.org, Amit Shah , "Franch Ch. Eigler" , Ingo Molnar , Mathieu Desnoyers , Steven Rostedt , Anthony Liguori , yrl.pp-manager.tt@hitachi.com, Masami Hiramatsu , virtualization@lists.linux-foundation.org, Srikar Dronamraju Hi Stefan, (2012/07/24 22:41), Stefan Hajnoczi wrote: > On Tue, Jul 24, 2012 at 12:19 PM, Yoshihiro YUNOMAE > wrote: >>>> Are you using text formatted ftrace? >> No, currently using raw format, but=E3=80=80we'd like to reformat it i= n text. > > Capturing the info necessary to translate numbers into symbols is one > of the problems of host<->guest tracing so I'm curious how you handle > this :). Right, your consideration is true. > Apologies for my lack of ftrace knowledge but how useful is the raw > tracing data on the host? How do you pretty-print it in > human-readable form? perf and trace-cmd can actually translate raw-formatted trace data to text-formatted trace data by using information of kernel or trace format under tracing/events directory in debugfs. In the same way, if the information of a guest is exported to a host, we can translate raw trace data of a guest to text trace data on a host. We will use 9pfs to export that. Thank you, --=20 Yoshihiro YUNOMAE Software Platform Research Dept. Linux Technology Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: yoshihiro.yunomae.ez@hitachi.com