Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: stefanha@gmail.com (Stefan Hajnoczi)
Subject: [ltt-dev] UST use case: Tracing QEMU/KVM
Date: Sun, 23 May 2010 20:54:42 +0100	[thread overview]
Message-ID: <AANLkTinNkofN7tLVGtFXUo1oXNKGI6By6FPlS23BKny9@mail.gmail.com> (raw)

Here is feedback from adding UST tracing to QEMU/KVM.  Hopefully this
will be useful to developers and maybe I can learn a more about LTTng
UST from discussing hurdles I encountered.

The architecture of UST looks good: pure userspace tracing support,
tracepoints can be enumerated, enabled, and disabled at runtime.  The
manual at http://lttng.org/files/ust/manual/ust.html is a nice
quickstart although I suspect it only scratches the surface.

One note about the manual: the TP_PROTO() versus TPPROTO() change was
confusing.  Perhaps a note can be added to the manual that ust.git
uses TP_PROTO() but libust 0.4 uses TPPROTO()?

When running the instrumented binary, the listener thread outputs
noisy error messages:
libust[28133/28134]: Error: poll: Interrupted system call (in
multipoll_poll() at ../libustcomm/multipoll.c:84)
libust[28133/28134]: Error: error in multipoll_poll (in
listener_main() at tracectl.c:1015)

Strace shows:
poll([{fd=3, events=POLLIN}], 1, -1)    = ? ERESTART_RESTARTBLOCK (To
be restarted)
restart_syscall(<... resuming interrupted call ...>) = ?
ERESTART_RESTARTBLOCK (To be restarted)

Finally, I had to add #undefs to get QEMU to build after including UST
headers.  Unfortunately the UST headers include headers that pollute
the (macro) namespace.

Any thoughts on these issues?

My patch enabling UST sent to the QEMU mailing list:
http://www.mail-archive.com/kvm at vger.kernel.org/msg34830.html

Stefan



             reply	other threads:[~2010-05-23 19:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-23 19:54 Stefan Hajnoczi [this message]
2010-05-24  3:57 ` Pierre-Marc Fournier
2010-05-24  9:00   ` Stefan Hajnoczi
2010-05-26 22:46     ` Pierre-Marc Fournier
2010-05-27  5:21       ` Stefan Hajnoczi
2010-05-27 19:36         ` Pierre-Marc Fournier
2010-05-27 20:22           ` Stefan Hajnoczi
2010-05-27 20:26             ` Mathieu Desnoyers
2010-05-24  8:41 Stefan Hajnoczi
2010-05-27 16:08 ` Pierre-Marc Fournier

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=AANLkTinNkofN7tLVGtFXUo1oXNKGI6By6FPlS23BKny9@mail.gmail.com \
    --to=stefanha@gmail.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