* Re: Using LTTng to monitr several thread in one process (under vanilla 3.4.7)
[not found] <FF6E89F18E7D48F8A07EEA74C1E66CC5@ZviVeredPC>
@ 2013-08-16 19:38 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-08-16 19:38 UTC (permalink / raw)
To: Zvi Vered; +Cc: lttng-dev
* Zvi Vered (veredz72@gmail.com) wrote:
> Hello,
>
> I’m using vanilla 3.4.7 on an Intel's Ivy-Bridge PC104.
> The application (compiled and built with intel compiler) contains 8 threads.
>
> My goal it to use “LTTng Project” to display all threads on a graph.
> Each thread will have its own “line” and I will be able to see when the
> CPU is idle and when a specific thread works.
>
> In my PC104, Intel’s Ivy-Bridge has 4 cores. LTTng has to know on which
> core a thread is currently running.
>
> Is it possible to do such things with Lttng ?
Yes, LTTng-UST (user space tracer) knows this information already. E.g.:
[15:33:02.414096656] (+0.000002546) thinkos ust_tests_hello:tptest: { cpu_id = 2 }, { intfield = 832, intfield2 = 0x340, longfield = 832, netintfield = 832, netintfieldhex = 0x340, arrfield1 = [ [0] = 1, [1] = 2, [2] = 3 ], arrfield2 = "test", _seqfield1_length = 4, seqfield1 = [ [0] = 116, [1] = 101, [2] = 115, [3] = 116 ], _seqfield2_length = 4, seqfield2 = "test", stringfield = "test", floatfield = 2222, doublefield = 2, boolfield = 1 }
(see the "cpu_id" field above)
You can also record the vtid context with each event in lttng-ust. See
lttng(1) man page for more info.
Best regards,
Mathieu
> I asked this question long time ago and the answer was - no
>
> If yes, should I patch the kernel for this purpose ?
>
> Thanks,
> Zvika
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
* Using LTTng to monitr several thread in one process (under vanilla 3.4.7)
@ 2013-08-16 19:29 Zvi Vered
0 siblings, 0 replies; 2+ messages in thread
From: Zvi Vered @ 2013-08-16 19:29 UTC (permalink / raw)
To: lttng-dev
Hello,
I’m using vanilla 3.4.7 on an Intel's Ivy-Bridge PC104.
The application (compiled and built with intel compiler) contains 8 threads.
My goal it to use “LTTng Project” to display all threads on a graph.
Each thread will have its own “line” and I will be able to see when the CPU
is idle and when a specific thread works.
In my PC104, Intel’s Ivy-Bridge has 4 cores. LTTng has to know on which core
a thread is currently running.
Is it possible to do such things with Lttng ?
I asked this question long time ago and the answer was - no
If yes, should I patch the kernel for this purpose ?
Thanks,
Zvika
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-16 19:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <FF6E89F18E7D48F8A07EEA74C1E66CC5@ZviVeredPC>
2013-08-16 19:38 ` Using LTTng to monitr several thread in one process (under vanilla 3.4.7) Mathieu Desnoyers
2013-08-16 19:29 Zvi Vered
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.