From: Eiichi Tsukata <eiichi.tsukata.xh@hitachi.com>
To: qemu-devel@nongnu.org
Cc: Eiichi Tsukata <eiichi.tsukata.xh@hitachi.com>
Subject: [Qemu-devel] [PATCH 2/2] trace: document frace backend
Date: Wed, 3 Apr 2013 15:30:59 +0900 [thread overview]
Message-ID: <1364970659-5715-3-git-send-email-eiichi.tsukata.xh@hitachi.com> (raw)
In-Reply-To: <1364970659-5715-1-git-send-email-eiichi.tsukata.xh@hitachi.com>
Add documentation of ftrace backend.
Signed-off-by: Eiichi Tsukata <eiichi.tsukata.xh@hitachi.com>
---
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 <path>
--
1.8.1.4
next prev parent reply other threads:[~2013-04-03 6:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 6:30 [Qemu-devel] [PATCH 0/2] New trace backend: ftrace Eiichi Tsukata
2013-04-03 6:30 ` [Qemu-devel] [PATCH 1/2] trace: Add ftrace tracing backend Eiichi Tsukata
2013-04-08 14:10 ` Stefan Hajnoczi
2013-04-09 10:47 ` Eiichi Tsukata
2013-04-03 6:30 ` Eiichi Tsukata [this message]
2013-04-08 14:12 ` [Qemu-devel] [PATCH 0/2] New trace backend: ftrace Stefan Hajnoczi
-- strict thread matches above, loose matches on Subject: below --
2013-04-03 3:41 Eiichi Tsukata
2013-04-03 3:41 ` [Qemu-devel] [PATCH 2/2] trace: document frace backend Eiichi Tsukata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364970659-5715-3-git-send-email-eiichi.tsukata.xh@hitachi.com \
--to=eiichi.tsukata.xh@hitachi.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).