From: tracemein@gmail.com (Naren)
Subject: [ltt-dev] UST - Problems in recording trace on a current process
Date: Tue, 9 Feb 2010 21:40:50 +0100 [thread overview]
Message-ID: <19fa8ef31002091240s57b513e0v81f524795b0f77ac@mail.gmail.com> (raw)
In-Reply-To: <201002091225.13893.pierre-marc.fournier@polymtl.ca>
Hi Pierre,
>>- the program you want to trace has been linked dynamically against
libust.
>>You can do so with the ldd tool
The program i want to trace is firefox with pid 1684.
Here are the results of ldd'ing firefox
*root at naren-laptop:/tmp# ldd /usr/lib/firefox-3.5.7/firefox-3.5*
* **linux-gate.so.1 => (0xb7f27000)*
* **libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7efc000)*
* **libasound.so.2 => /usr/lib/libasound.so.2 (0xb7e35000)*
* **libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e30000)*
* **libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7d3e000)*
* **libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d18000)*
* **libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cfa000)*
* **libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7bb5000)*
* **/lib/ld-linux.so.2 (0xb7f28000)*
* **librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7bab000)*
Here are the results of ldd'ing ustctl
*root at naren-laptop:/tmp# ldd /usr/local/bin/ustctl *
* **linux-gate.so.1 => (0xb80ce000)*
* **liburcu-bp.so.0 => /usr/local/lib/liburcu-bp.so.0 (0xb80b8000)*
* **libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7f73000)*
* **libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f59000)*
* **/lib/ld-linux.so.2 (0xb80cf000)*
*
*
Here are the results of ldd'ing ustd (i am not sure whether it is helpful)
*root at naren-laptop:/tmp# ldd -v /usr/local/bin/ustd*
* **linux-gate.so.1 => (0xb7fe9000)*
* **libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fbe000)*
* **liburcu-bp.so.0 => /usr/local/lib/liburcu-bp.so.0 (0xb7fba000)*
* **libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e74000)*
* **/lib/ld-linux.so.2 (0xb7fea000)*
*
*
* **Version information:*
* **/usr/local/bin/ustd:*
* **libc.so.6 (GLIBC_2.4) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.8) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.3.4) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6*
* **libpthread.so.0 (GLIBC_2.1) => /lib/tls/i686/cmov/libpthread.so.0*
* **libpthread.so.0 (GLIBC_2.3.3) => /lib/tls/i686/cmov/libpthread.so.0*
* **libpthread.so.0 (GLIBC_2.0) => /lib/tls/i686/cmov/libpthread.so.0*
* **/lib/tls/i686/cmov/libpthread.so.0:*
* **ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2*
* **libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.3.2) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_PRIVATE) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6*
* **/usr/local/lib/liburcu-bp.so.0:*
* **ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2*
* **libpthread.so.0 (GLIBC_2.0) => /lib/tls/i686/cmov/libpthread.so.0*
* **libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6*
* **/lib/tls/i686/cmov/libc.so.6:*
* **ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2*
>>you did a "make install" when you upgraded your ust. You would get this
>>error if ustctl and your traced program were linked against different
>>versions of libust.so
For what i infer, none of these are hooked up with libust. Have i missed out
any because i didn't even have the opportunity of starting a trace on
firefox, since i was not able to list markers.
*Moreover, another unrelated nitpick.*
In the manual http://lttng.org/files/ust/manual/ust.html, under section "5.2
Setting up the recording manually", the command given to enable markers "$
ustctl --enable-marker 1234 ust/mymark" . However, after some reverse
engineering, i found out that "parse_opts_long" function "ustctl.c" file
expects pid to be the last argument and it is giving
"*ustctl[1813/1813]: Error: The pid "ust/1" is invalid. (in
parse_opts_long() at ustctl.c:159)*" error. Hence it would be "$ ustctl
--enable-marker ust/mymark 1234". I am not sure of this though. Can you
clarify?
Regards,
Naren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100209/94c1ec89/attachment-0003.htm>
WARNING: multiple messages have this Message-ID
From: tracemein@gmail.com (Naren)
Subject: [ltt-dev] UST - Problems in recording trace on a current process
Date: Tue, 9 Feb 2010 21:40:50 +0100 [thread overview]
Message-ID: <19fa8ef31002091240s57b513e0v81f524795b0f77ac@mail.gmail.com> (raw)
Message-ID: <20100209204050.9MwPcWT0eaPmVaXXJ_J_v5pow3mbghofVPSxs8oBroM@z> (raw)
In-Reply-To: <201002091225.13893.pierre-marc.fournier@polymtl.ca>
Hi Pierre,
>>- the program you want to trace has been linked dynamically against
libust.
>>You can do so with the ldd tool
The program i want to trace is firefox with pid 1684.
Here are the results of ldd'ing firefox
*root at naren-laptop:/tmp# ldd /usr/lib/firefox-3.5.7/firefox-3.5*
* **linux-gate.so.1 => (0xb7f27000)*
* **libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7efc000)*
* **libasound.so.2 => /usr/lib/libasound.so.2 (0xb7e35000)*
* **libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e30000)*
* **libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7d3e000)*
* **libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d18000)*
* **libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cfa000)*
* **libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7bb5000)*
* **/lib/ld-linux.so.2 (0xb7f28000)*
* **librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7bab000)*
Here are the results of ldd'ing ustctl
*root at naren-laptop:/tmp# ldd /usr/local/bin/ustctl *
* **linux-gate.so.1 => (0xb80ce000)*
* **liburcu-bp.so.0 => /usr/local/lib/liburcu-bp.so.0 (0xb80b8000)*
* **libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7f73000)*
* **libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f59000)*
* **/lib/ld-linux.so.2 (0xb80cf000)*
*
*
Here are the results of ldd'ing ustd (i am not sure whether it is helpful)
*root at naren-laptop:/tmp# ldd -v /usr/local/bin/ustd*
* **linux-gate.so.1 => (0xb7fe9000)*
* **libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7fbe000)*
* **liburcu-bp.so.0 => /usr/local/lib/liburcu-bp.so.0 (0xb7fba000)*
* **libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e74000)*
* **/lib/ld-linux.so.2 (0xb7fea000)*
*
*
* **Version information:*
* **/usr/local/bin/ustd:*
* **libc.so.6 (GLIBC_2.4) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.8) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.3.4) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6*
* **libpthread.so.0 (GLIBC_2.1) => /lib/tls/i686/cmov/libpthread.so.0*
* **libpthread.so.0 (GLIBC_2.3.3) => /lib/tls/i686/cmov/libpthread.so.0*
* **libpthread.so.0 (GLIBC_2.0) => /lib/tls/i686/cmov/libpthread.so.0*
* **/lib/tls/i686/cmov/libpthread.so.0:*
* **ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2*
* **libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.3.2) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_PRIVATE) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6*
* **/usr/local/lib/liburcu-bp.so.0:*
* **ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2*
* **libpthread.so.0 (GLIBC_2.0) => /lib/tls/i686/cmov/libpthread.so.0*
* **libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6*
* **libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6*
* **/lib/tls/i686/cmov/libc.so.6:*
* **ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2*
* **ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2*
>>you did a "make install" when you upgraded your ust. You would get this
>>error if ustctl and your traced program were linked against different
>>versions of libust.so
For what i infer, none of these are hooked up with libust. Have i missed out
any because i didn't even have the opportunity of starting a trace on
firefox, since i was not able to list markers.
*Moreover, another unrelated nitpick.*
In the manual http://lttng.org/files/ust/manual/ust.html, under section "5.2
Setting up the recording manually", the command given to enable markers "$
ustctl --enable-marker 1234 ust/mymark" . However, after some reverse
engineering, i found out that "parse_opts_long" function "ustctl.c" file
expects pid to be the last argument and it is giving
"*ustctl[1813/1813]: Error: The pid "ust/1" is invalid. (in
parse_opts_long() at ustctl.c:159)*" error. Hence it would be "$ ustctl
--enable-marker ust/mymark 1234". I am not sure of this though. Can you
clarify?
Regards,
Naren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100209/94c1ec89/attachment-0002.htm>
next prev parent reply other threads:[~2010-02-09 20:40 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 21:49 Naren
2010-02-08 21:49 ` Naren
2010-02-08 22:19 ` Pierre-Marc Fournier
[not found] ` <19fa8ef31002081428x1e215acfgd81d505ee359ce9@mail.gmail.com>
[not found] ` <201002081744.06912.pierre-marc.fournier@polymtl.ca>
2010-02-08 23:54 ` Naren
2010-02-08 23:54 ` Naren
2010-02-09 1:37 ` soumyakanti chakraborty
2010-02-09 1:37 ` soumyakanti chakraborty
2010-02-09 1:48 ` soumyakanti chakraborty
2010-02-09 1:48 ` soumyakanti chakraborty
2010-02-09 5:45 ` Pierre-Marc Fournier
2010-02-09 14:44 ` Naren
2010-02-09 14:44 ` Naren
2010-02-09 14:51 ` Douglas Santos
2010-02-09 14:51 ` Douglas Santos
2010-02-09 16:43 ` Naren
2010-02-09 16:43 ` Naren
2010-02-09 17:11 ` Pierre-Marc Fournier
2010-02-09 16:42 ` Pierre-Marc Fournier
2010-02-09 17:11 ` Naren
2010-02-09 17:11 ` Naren
2010-02-09 17:25 ` Pierre-Marc Fournier
2010-02-09 20:40 ` Naren [this message]
2010-02-09 20:40 ` Naren
2010-02-09 21:25 ` Douglas Santos
2010-02-09 21:28 ` Pierre-Marc Fournier
2010-02-10 0:50 ` Naren
2010-02-10 0:50 ` Naren
2010-02-10 15:26 ` Pierre-Marc Fournier
2010-02-10 16:53 ` Naren
2010-02-10 16:53 ` Naren
2010-02-10 20:15 ` Pierre-Marc Fournier
2010-02-10 22:08 ` Naren
2010-02-10 22:08 ` Naren
2010-02-12 0:18 ` Pierre-Marc Fournier
2010-02-12 9:10 ` Naren
2010-02-12 9:10 ` Naren
2010-02-15 6:04 ` Pierre-Marc Fournier
2010-02-15 6:23 ` Naveh, Ido
2010-02-15 12:16 ` Mathieu Desnoyers
2010-02-15 11:42 ` Naren
2010-02-15 11:42 ` Naren
2010-02-15 14:53 ` Pierre-Marc Fournier
2010-02-18 17:47 ` Pierre-Marc Fournier
2010-02-18 22:58 ` Naren
2010-02-18 22:58 ` Naren
2010-02-18 22:58 ` Naren
2010-02-19 16:50 ` Pierre-Marc Fournier
2010-02-19 17:15 ` Naren
2010-02-19 17:15 ` Naren
2010-02-19 17:15 ` Naren
2010-02-22 0:46 ` soumyakanti chakraborty
2010-02-22 0:46 ` soumyakanti chakraborty
2010-02-22 0:46 ` soumyakanti chakraborty
2010-02-23 15:15 ` Pierre-Marc Fournier
2010-02-26 1:55 ` soumyakanti chakraborty
2010-02-26 1:55 ` soumyakanti chakraborty
2010-02-26 1:55 ` soumyakanti chakraborty
2010-02-26 5:35 ` Pierre-Marc Fournier
2010-02-09 14:46 ` Douglas Santos
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=19fa8ef31002091240s57b513e0v81f524795b0f77ac@mail.gmail.com \
--to=tracemein@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