Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: milian.wolff@kdab.com (Milian Wolff)
Subject: [lttng-dev] Tracing a userspace app from startup
Date: Wed, 15 May 2019 22:08:18 +0200	[thread overview]
Message-ID: <27361403.iBIxfkJtIM@agathebauer> (raw)
In-Reply-To: <DF4PR8401MB0939224BB5C202B61D624D3BDF090@DF4PR8401MB0939.NAMPRD84.PROD.OUTLOOK.COM>

On Mittwoch, 15. Mai 2019 12:16:40 CEST Jones, Tim wrote:
> Hi,
> 
> I've been attempting to use LTTng to trace some apps but need to trace from
> their startup to shutdown. Is this possible with LTTng?
> 
> For example, I'd like to be able to run something along the lines of this:
> 
> lttng start -- <command> <args>
> 
> I've searched the docs and Google, but I can't find anything regarding this
> way of using LTTng!?

I asked this myself recently. Sadly, it's not supported. For now I'm using 
this script myself:

https://github.com/milianw/shell-helpers/blob/master/run_lttng_trace.sh

You may want to enable events explicitly, instead of enabling all of them. 
These traces can become quite large.

Cheers

-- 
Milian Wolff | milian.wolff at kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3826 bytes
Desc: not available
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20190515/aab7c7dc/attachment.bin>


      reply	other threads:[~2019-05-15 20:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15 10:16 Jones, Tim
2019-05-15 20:08 ` Milian Wolff [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=27361403.iBIxfkJtIM@agathebauer \
    --to=milian.wolff@kdab.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