From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNEaH-0006K6-Tr for qemu-devel@nongnu.org; Tue, 02 Apr 2013 23:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNEaF-0007dD-Be for qemu-devel@nongnu.org; Tue, 02 Apr 2013 23:42:01 -0400 Received: from mail7.hitachi.co.jp ([133.145.228.42]:44926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNEaF-0007cr-2f for qemu-devel@nongnu.org; Tue, 02 Apr 2013 23:41:59 -0400 From: Eiichi Tsukata Date: Wed, 3 Apr 2013 12:41:09 +0900 Message-Id: <1364960469-4462-3-git-send-email-eiichi.tsukata.xh@hitachi.com> In-Reply-To: <1364960469-4462-1-git-send-email-eiichi.tsukata.xh@hitachi.com> References: <1364960469-4462-1-git-send-email-eiichi.tsukata.xh@hitachi.com> Subject: [Qemu-devel] [PATCH 2/2] trace: document frace backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, stefanha@redhat.com Cc: Eiichi Tsukata Add documentation of ftrace backend. Signed-off-by: Eiichi Tsukata --- docs/tracing.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index cf53c17..60ff9c5 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -175,6 +175,22 @@ unless you have specific needs for more advanced backends. The "simple" backend currently does not capture string arguments, it simply records the char* pointer value instead of the string that is pointed to. +=== Ftrace === + +The "ftrace" backend writes trace data to ftrace marker. This effectively +sends trace events to ftrace ring buffer, and you can compare qemu trace +data and kernel(especially kvm.ko when using KVM) trace data. + +if you use KVM, enable kvm events in ftrace: + + # echo 1 > /sys/kernel/debug/tracing/events/kvm/enable + +After running qemu by root user, you can get the trace: + + # cat /sys/kernel/debug/tracing/trace + +Restriction: "ftrace" backend is restricted to Linux only. + ==== Monitor commands ==== * trace-file on|off|flush|set -- 1.8.1.4