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: Thu, 27 May 2010 06:21:27 +0100	[thread overview]
Message-ID: <AANLkTilzcnxmTBKHy6VkLyRY9qm12XsIQNVDHX0zAd_v@mail.gmail.com> (raw)
In-Reply-To: <4BFDA4BE.4020400@polymtl.ca>

On Wed, May 26, 2010 at 11:46 PM, Pierre-Marc Fournier
<pierre-marc.fournier at polymtl.ca> wrote:
>> For large programs or programs that closely manage resources, a
>> documented list of resources that libust uses would be useful. ?This
>> information can be used to understand whether libust might interfere
>> with the program being traced. ?For example, will heap allocations be
>> made after startup? ?Will file descriptors be held open? ?The listener
>> thread?
>
> Currently, ust is designed to be transparent to the running process in most
> cases. However, if your program makes very unusual assumptions about the
> usage of some resources, this could result in a conflict.
>
> - Yes, heap allocations can be made after startup.
> - Sockets will definitely be kept open by the listener thread.
> - Currently, I don't think any file descriptors are kept open, but it could
> be the case in the future.
> - SystemV shared memory segments are mapped in the address space.
> - A listener thread is always started to wait for connections from ustctl or
> ustd.
>
> If you feel it would be important to avoid some of these things, please let
> me know.

Thanks for explaining, sounds fine to me.  If you want to add this as
an appendix to the documentation I think it is useful information for
an application developer who wants to integrate UST support.

>> I don't understand the --create-trace, --alloc-trace, --destroy-trace,
>> and subbuf concepts that ustctl exposes. ?Perhaps these are documented
>> in kernel LTTng and I haven't read that.
>
> Normally you should not need to go to LTTng kernel tracer documentation to
> understand.
>
> I just pushed an updated manpage for ustctl in the git which clarifies these
> concepts. If you think things could be even clearer, let me know.

Great thanks, will check out the documentation.

Stefan




  reply	other threads:[~2010-05-27  5:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-23 19:54 Stefan Hajnoczi
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 [this message]
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=AANLkTilzcnxmTBKHy6VkLyRY9qm12XsIQNVDHX0zAd_v@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