qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] docs: Update stderr and simple backend, add systemtap backend
Date: Sun, 6 Mar 2011 19:12:00 +0100	[thread overview]
Message-ID: <20110306181200.GE32068@volta.aurel32.net> (raw)
In-Reply-To: <1298469621-23393-1-git-send-email-stefanha@linux.vnet.ibm.com>

On Wed, Feb 23, 2011 at 02:00:21PM +0000, Stefan Hajnoczi wrote:
> The following additions to the tracing documentation are included:
> 
> 1. Move "stderr" backend documentation to top-level and out of "simple"
>    backend.  Include hints on when this backend is useful.
> 
> 2. Document the "simple" backend thread-safety limitation.
> 
> 3. Document the "dtrace" backend for SystemTap.
> 
> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
> ---
>  docs/tracing.txt |   30 ++++++++++++++++++++++++++----
>  1 files changed, 26 insertions(+), 4 deletions(-)

Thanks, applied.

> diff --git a/docs/tracing.txt b/docs/tracing.txt
> index 21183f9..a6cc56f 100644
> --- a/docs/tracing.txt
> +++ b/docs/tracing.txt
> @@ -126,6 +126,14 @@ The "nop" backend generates empty trace event functions so that the compiler
>  can optimize out trace events completely.  This is the default and imposes no
>  performance penalty.
>  
> +=== Stderr ===
> +
> +The "stderr" backend sends trace events directly to standard error.  This
> +effectively turns trace events into debug printfs.
> +
> +This is the simplest backend and can be used together with existing code that
> +uses DPRINTF().
> +
>  === Simpletrace ===
>  
>  The "simple" backend supports common use cases and comes as part of the QEMU
> @@ -133,10 +141,10 @@ source tree.  It may not be as powerful as platform-specific or third-party
>  trace backends but it is portable.  This is the recommended trace backend
>  unless you have specific needs for more advanced backends.
>  
> -=== Stderr ===
> -
> -The "stderr" backend sends trace events directly to standard error output
> -during emulation.
> +Warning: the "simple" backend is not thread-safe so only enable trace events
> +that are executed while the global mutex is held.  Much of QEMU meets this
> +requirement but some utility functions like qemu_malloc() or thread-related
> +code cannot be safely traced using the "simple" backend.
>  
>  ==== Monitor commands ====
>  
> @@ -187,3 +195,17 @@ consistent.
>  The "ust" backend uses the LTTng Userspace Tracer library.  There are no
>  monitor commands built into QEMU, instead UST utilities should be used to list,
>  enable/disable, and dump traces.
> +
> +=== SystemTap ===
> +
> +The "dtrace" backend uses DTrace sdt probes but has only been tested with
> +SystemTap.  When SystemTap support is detected a .stp file with wrapper probes
> +is generated to make use in scripts more convenient.  This step can also be
> +performed manually after a build in order to change the binary name in the .stp
> +probes:
> +
> +    scripts/tracetool --dtrace --stap \
> +                      --binary path/to/qemu-binary \
> +                      --target-type system \
> +                      --target-arch x86_64 \
> +                      <trace-events >qemu.stp
> -- 
> 1.7.2.3
> 
> 
> 

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

      reply	other threads:[~2011-03-06 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 14:00 [Qemu-devel] [PATCH] docs: Update stderr and simple backend, add systemtap backend Stefan Hajnoczi
2011-03-06 18:12 ` Aurelien Jarno [this message]

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=20110306181200.GE32068@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@linux.vnet.ibm.com \
    /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).