From: Jan Kiszka <jan.kiszka@web.de>
To: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org,
Prerna Saxena <prerna@linux.vnet.ibm.com>,
Anthony Liguori <aliguori@us.ibm.com>
Subject: Re: [PATCH 3/5] trace: Add LTTng Userspace Tracer backend
Date: Sun, 23 May 2010 17:50:30 +0200 [thread overview]
Message-ID: <4BF94EC6.3070700@web.de> (raw)
In-Reply-To: <1274562503-10713-4-git-send-email-stefanha@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 2002 bytes --]
Stefan Hajnoczi wrote:
> This patch adds LTTng Userspace Tracer (UST) backend support. The UST
> system requires no kernel support but libust and liburcu must be
> installed.
>
> $ ./configure --trace-backend ust
> $ make
>
> Start the UST daemon:
> $ ustd &
>
> List available tracepoints and enable some:
> $ ustctl --list-markers $(pgrep qemu)
> [...]
> {PID: 5458, channel/marker: ust/paio_submit, state: 0, fmt: "acb %p
> opaque %p sector_num %lu nb_sectors %lu type %lu" 0x4b32ba}
> $ ustctl --enable-marker "ust/paio_submit" $(pgrep qemu)
>
> Run the trace:
> $ ustctl --create-trace $(pgrep qemu)
> $ ustctl --start-trace $(pgrep qemu)
> [...]
> $ ustctl --stop-trace $(pgrep qemu)
> $ ustctl --destroy-trace $(pgrep qemu)
>
> Trace results can be viewed using lttv-gui.
>
> More information about UST:
> http://lttng.org/ust
>
> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
> ---
> I wrote this as part of trying out UST. Although UST is promising, the
> usability is poor at the moment.
I was hoping it would be better, but I'm not really surprised.
>
> The dependencies include the lttv trace viewer which I had to build from source
> (and it required a makefile tweak to build). Luckily libust, liburcu, and
> ust-bin are packaged on my distro.
>
> Error messages are periodically printed by the UST code when running QEMU. I
> haven't investigated but this is may be due to signals interrupting UST's
> thread in poll().
>
> Finally, the UST header files include some userspace ported kernel
> infrastructure and pollute the namespace. I had to add some #undefs to get
> QEMU to build after including UST headers.
>
> I don't see LTTng UST as a default option at the moment. Hopefully this will
> change in the future.
Unless you already did, please report this to LTTng. I bet they will be
interested in your feedback and maybe also in the fact that they gained
another use/test case.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Jan Kiszka <jan.kiszka@web.de>
To: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org,
Prerna Saxena <prerna@linux.vnet.ibm.com>
Subject: [Qemu-devel] Re: [PATCH 3/5] trace: Add LTTng Userspace Tracer backend
Date: Sun, 23 May 2010 17:50:30 +0200 [thread overview]
Message-ID: <4BF94EC6.3070700@web.de> (raw)
In-Reply-To: <1274562503-10713-4-git-send-email-stefanha@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 2002 bytes --]
Stefan Hajnoczi wrote:
> This patch adds LTTng Userspace Tracer (UST) backend support. The UST
> system requires no kernel support but libust and liburcu must be
> installed.
>
> $ ./configure --trace-backend ust
> $ make
>
> Start the UST daemon:
> $ ustd &
>
> List available tracepoints and enable some:
> $ ustctl --list-markers $(pgrep qemu)
> [...]
> {PID: 5458, channel/marker: ust/paio_submit, state: 0, fmt: "acb %p
> opaque %p sector_num %lu nb_sectors %lu type %lu" 0x4b32ba}
> $ ustctl --enable-marker "ust/paio_submit" $(pgrep qemu)
>
> Run the trace:
> $ ustctl --create-trace $(pgrep qemu)
> $ ustctl --start-trace $(pgrep qemu)
> [...]
> $ ustctl --stop-trace $(pgrep qemu)
> $ ustctl --destroy-trace $(pgrep qemu)
>
> Trace results can be viewed using lttv-gui.
>
> More information about UST:
> http://lttng.org/ust
>
> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
> ---
> I wrote this as part of trying out UST. Although UST is promising, the
> usability is poor at the moment.
I was hoping it would be better, but I'm not really surprised.
>
> The dependencies include the lttv trace viewer which I had to build from source
> (and it required a makefile tweak to build). Luckily libust, liburcu, and
> ust-bin are packaged on my distro.
>
> Error messages are periodically printed by the UST code when running QEMU. I
> haven't investigated but this is may be due to signals interrupting UST's
> thread in poll().
>
> Finally, the UST header files include some userspace ported kernel
> infrastructure and pollute the namespace. I had to add some #undefs to get
> QEMU to build after including UST headers.
>
> I don't see LTTng UST as a default option at the moment. Hopefully this will
> change in the future.
Unless you already did, please report this to LTTng. I bet they will be
interested in your feedback and maybe also in the fact that they gained
another use/test case.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2010-05-23 15:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-22 21:08 [RFC 0/5] Tracing backends Stefan Hajnoczi
2010-05-22 21:08 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-22 21:08 ` [PATCH 1/5] trace: Add trace-events file for declaring trace events Stefan Hajnoczi
2010-05-22 21:08 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-24 22:07 ` Anthony Liguori
2010-05-24 22:07 ` Anthony Liguori
2010-05-25 9:11 ` Avi Kivity
2010-05-25 9:11 ` Avi Kivity
2010-05-24 22:20 ` Anthony Liguori
2010-05-24 22:20 ` Anthony Liguori
2010-05-25 8:22 ` Stefan Hajnoczi
2010-05-25 8:22 ` Stefan Hajnoczi
2010-05-22 21:08 ` [PATCH 2/5] trace: Add simple built-in tracing backend Stefan Hajnoczi
2010-05-22 21:08 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-22 21:08 ` [PATCH 3/5] trace: Add LTTng Userspace Tracer backend Stefan Hajnoczi
2010-05-22 21:08 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-23 15:50 ` Jan Kiszka [this message]
2010-05-23 15:50 ` [Qemu-devel] " Jan Kiszka
2010-05-22 21:08 ` [PATCH 4/5] trace: Trace qemu_malloc() and qemu_vmalloc() Stefan Hajnoczi
2010-05-22 21:08 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-22 21:08 ` [PATCH 5/5] trace: Trace virtio-blk, multiwrite, and paio_submit Stefan Hajnoczi
2010-05-22 21:08 ` [Qemu-devel] " Stefan Hajnoczi
2010-05-23 15:48 ` [RFC 0/5] Tracing backends Jan Kiszka
2010-05-23 15:48 ` [Qemu-devel] " Jan Kiszka
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=4BF94EC6.3070700@web.de \
--to=jan.kiszka@web.de \
--cc=aliguori@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=prerna@linux.vnet.ibm.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.