Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: matthew.khouzam@ericsson.com (Matthew Khouzam)
Subject: [ltt-dev] UST manual
Date: Mon, 28 Feb 2011 17:21:47 -0500	[thread overview]
Message-ID: <4D6C1FFB.7020702@ericsson.com> (raw)
In-Reply-To: <AANLkTikTzBq5ztzLTZQHdtVkxE5EWi-Nv+LKF6Phk8xQ@mail.gmail.com>



On 11-02-22 01:45 AM, Amir wrote:
> Hi,
> I'm really new to UST and generating user-space traces for software 
> systems.
> I followed the instruction provided at: 
> http://lttng.org/files/ust/manual/ust.html
> Packages were successfully installed and I could generate a trace 
> following the provided example for markers.
> Still I have a few questions for which I couldn?t find answers in the 
> manual.
> - what are 'event categories' and 'channels'?
A channel is as it's name indicates a way to communicate with UST. In 
the trace, each channel has N files allocated to it where N is the 
number of cores you have. Each channel also has a certain amount of 
memory allocated to to. I tend to only use the channel "UST" as it makes 
my life easier, but then again, I am a very bad person who's been caught 
doing unsavory things to programs for a long while and that says 640k 
ought to be enough for anybody without signs of irony.

Perhaps someone more knowledgeable in UST can show me the error in my ways.
> - is it possible to generate a method call trace using markers? would 
> it work just for C applications?
You mean like "
void trace_result( int n ) {
trace_mark(  ust, myevent, "%d" ,n);
}" ?
Yes, it's what I do... look into tracepoints though, you're halfway 
there with that.


> - it seems like 'Appendix x' is missing, how would it be possible to 
> have some information about the formatting
>
I think Appendix X was a placeholder, not sure, I didn't write it ;) .
> Thanks,
> Amir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110228/a8780704/attachment-0002.htm>


WARNING: multiple messages have this Message-ID
From: matthew.khouzam@ericsson.com (Matthew Khouzam)
Subject: [ltt-dev] UST manual
Date: Mon, 28 Feb 2011 17:21:47 -0500	[thread overview]
Message-ID: <4D6C1FFB.7020702@ericsson.com> (raw)
Message-ID: <20110228222147.lgF8XYAwj10vpqhyEe9CRv58gBDfvP2mqUS9A0-l_Lo@z> (raw)
In-Reply-To: <AANLkTikTzBq5ztzLTZQHdtVkxE5EWi-Nv+LKF6Phk8xQ@mail.gmail.com>



On 11-02-22 01:45 AM, Amir wrote:
> Hi,
> I'm really new to UST and generating user-space traces for software 
> systems.
> I followed the instruction provided at: 
> http://lttng.org/files/ust/manual/ust.html
> Packages were successfully installed and I could generate a trace 
> following the provided example for markers.
> Still I have a few questions for which I couldn?t find answers in the 
> manual.
> - what are 'event categories' and 'channels'?
A channel is as it's name indicates a way to communicate with UST. In 
the trace, each channel has N files allocated to it where N is the 
number of cores you have. Each channel also has a certain amount of 
memory allocated to to. I tend to only use the channel "UST" as it makes 
my life easier, but then again, I am a very bad person who's been caught 
doing unsavory things to programs for a long while and that says 640k 
ought to be enough for anybody without signs of irony.

Perhaps someone more knowledgeable in UST can show me the error in my ways.
> - is it possible to generate a method call trace using markers? would 
> it work just for C applications?
You mean like "
void trace_result( int n ) {
trace_mark(  ust, myevent, "%d" ,n);
}" ?
Yes, it's what I do... look into tracepoints though, you're halfway 
there with that.


> - it seems like 'Appendix x' is missing, how would it be possible to 
> have some information about the formatting
>
I think Appendix X was a placeholder, not sure, I didn't write it ;) .
> Thanks,
> Amir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110228/a8780704/attachment-0001.htm>


WARNING: multiple messages have this Message-ID
From: matthew.khouzam@ericsson.com (Matthew Khouzam)
Subject: [ltt-dev] UST manual
Date: Mon, 28 Feb 2011 17:21:47 -0500	[thread overview]
Message-ID: <4D6C1FFB.7020702@ericsson.com> (raw)
Message-ID: <20110228222147.VzwpM4Ry3rUuTSfGbqyCS05t3PRC4aKkrnSVbI964Ig@z> (raw)
In-Reply-To: <AANLkTikTzBq5ztzLTZQHdtVkxE5EWi-Nv+LKF6Phk8xQ@mail.gmail.com>



On 11-02-22 01:45 AM, Amir wrote:
> Hi,
> I'm really new to UST and generating user-space traces for software 
> systems.
> I followed the instruction provided at: 
> http://lttng.org/files/ust/manual/ust.html
> Packages were successfully installed and I could generate a trace 
> following the provided example for markers.
> Still I have a few questions for which I couldn?t find answers in the 
> manual.
> - what are 'event categories' and 'channels'?
A channel is as it's name indicates a way to communicate with UST. In 
the trace, each channel has N files allocated to it where N is the 
number of cores you have. Each channel also has a certain amount of 
memory allocated to to. I tend to only use the channel "UST" as it makes 
my life easier, but then again, I am a very bad person who's been caught 
doing unsavory things to programs for a long while and that says 640k 
ought to be enough for anybody without signs of irony.

Perhaps someone more knowledgeable in UST can show me the error in my ways.
> - is it possible to generate a method call trace using markers? would 
> it work just for C applications?
You mean like "
void trace_result( int n ) {
trace_mark(  ust, myevent, "%d" ,n);
}" ?
Yes, it's what I do... look into tracepoints though, you're halfway 
there with that.


> - it seems like 'Appendix x' is missing, how would it be possible to 
> have some information about the formatting
>
I think Appendix X was a placeholder, not sure, I didn't write it ;) .
> Thanks,
> Amir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110228/a8780704/attachment.htm>


  parent reply	other threads:[~2011-02-28 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22  6:45 Amir
2011-02-22  6:45 ` Amir
2011-02-22  6:45 ` Amir
2011-02-28 22:21 ` Matthew Khouzam [this message]
2011-02-28 22:21   ` Matthew Khouzam
2011-02-28 22:21   ` Matthew Khouzam

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=4D6C1FFB.7020702@ericsson.com \
    --to=matthew.khouzam@ericsson.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