Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] Thread names in LTTV-gui
@ 2011-04-01 11:12 Ali Günhan Akyürek
  2011-04-01 11:12 ` Ali Günhan Akyürek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ali Günhan Akyürek @ 2011-04-01 11:12 UTC (permalink / raw)


Hi all,

I use the following triple and the kernel 2.6.31.6
lttng: 0.173
lttv: 0.12.29
ltt-control: 0.81

When I start my application and then start ltt deamon, I see the names of
the threads created by my application the under Process column of control
flow viewer in the lttv gui analyzer.

But if i start lttd deamon first and then start my application later, I see
the executable name of my application for all threads in the gui.
Do you have an idea, how i can solve it?

Thanks,
Best regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110401/1ac6561d/attachment-0003.htm>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ltt-dev] Thread names in LTTV-gui
  2011-04-01 11:12 [ltt-dev] Thread names in LTTV-gui Ali Günhan Akyürek
@ 2011-04-01 11:12 ` Ali Günhan Akyürek
  2011-04-01 11:12 ` Ali Günhan Akyürek
  2011-04-01 15:24 ` Mathieu Desnoyers
  2 siblings, 0 replies; 4+ messages in thread
From: Ali Günhan Akyürek @ 2011-04-01 11:12 UTC (permalink / raw)


Hi all,

I use the following triple and the kernel 2.6.31.6
lttng: 0.173
lttv: 0.12.29
ltt-control: 0.81

When I start my application and then start ltt deamon, I see the names of
the threads created by my application the under Process column of control
flow viewer in the lttv gui analyzer.

But if i start lttd deamon first and then start my application later, I see
the executable name of my application for all threads in the gui.
Do you have an idea, how i can solve it?

Thanks,
Best regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20110401/1ac6561d/attachment.htm>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ltt-dev] Thread names in LTTV-gui
  2011-04-01 11:12 [ltt-dev] Thread names in LTTV-gui Ali Günhan Akyürek
  2011-04-01 11:12 ` Ali Günhan Akyürek
@ 2011-04-01 11:12 ` Ali Günhan Akyürek
  2011-04-01 15:24 ` Mathieu Desnoyers
  2 siblings, 0 replies; 4+ messages in thread
From: Ali Günhan Akyürek @ 2011-04-01 11:12 UTC (permalink / raw)


Hi all,

I use the following triple and the kernel 2.6.31.6
lttng: 0.173
lttv: 0.12.29
ltt-control: 0.81

When I start my application and then start ltt deamon, I see the names of
the threads created by my application the under Process column of control
flow viewer in the lttv gui analyzer.

But if i start lttd deamon first and then start my application later, I see
the executable name of my application for all threads in the gui.
Do you have an idea, how i can solve it?

Thanks,
Best regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110401/1ac6561d/attachment-0002.htm>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ltt-dev] Thread names in LTTV-gui
  2011-04-01 11:12 [ltt-dev] Thread names in LTTV-gui Ali Günhan Akyürek
  2011-04-01 11:12 ` Ali Günhan Akyürek
  2011-04-01 11:12 ` Ali Günhan Akyürek
@ 2011-04-01 15:24 ` Mathieu Desnoyers
  2 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2011-04-01 15:24 UTC (permalink / raw)


* Ali G?nhan Aky?rek (aliakyurek at gmail.com) wrote:
> Hi all,
> 
> I use the following triple and the kernel 2.6.31.6
> lttng: 0.173
> lttv: 0.12.29
> ltt-control: 0.81
> 
> When I start my application and then start ltt deamon, I see the names of
> the threads created by my application the under Process column of control
> flow viewer in the lttv gui analyzer.

Because this uses the "enum_process_state", triggered by the events
saved by the statedump module executed at trace start to gather various
information about processes and other resources. For the process, I
think it uses its "comm" name as string identifier for process name.

> 
> But if i start lttd deamon first and then start my application later, I see
> the executable name of my application for all threads in the gui.
> Do you have an idea, how i can solve it?

Hrm, I think you might want to consider instrumenting prctl() system
call (see prctl(2)). The one you are interested into is, I think
"PR_SET_NAME". I'm not entirely sure, but it should do. If this works,
we might consider pulling this new instrumentation point in the lttng
project.

Currently, we only use "exec()" instrumentation to get the process name.
I would only make sense to allow be sensitive to the explicit name
changes done by prctl.

Thanks,

Mathieu

> 
> Thanks,
> Best regards,
> Ali

> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-01 15:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 11:12 [ltt-dev] Thread names in LTTV-gui Ali Günhan Akyürek
2011-04-01 11:12 ` Ali Günhan Akyürek
2011-04-01 11:12 ` Ali Günhan Akyürek
2011-04-01 15:24 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox