Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] problems while printing the array
@ 2012-04-25  8:35 Vijay Kare
  2012-04-26 21:21 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Vijay Kare @ 2012-04-25  8:35 UTC (permalink / raw)


Dear All,
I am trying to print the array format using trace_mark function.
I have an requirement to print an integer array of 16 elements in one of
the kernel function.
I tried below but didnt get array printed in ltt dump.

trace_mark(xxxx, xxxx_send,"#a %p #lu %lu #lu %lu",pointer,
sizeof(int),PRINTSIZE);

Any help, I am not sure if array format is supported in LTT currently ?

Thank you in advance.
VJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120425/c4fdd028/attachment.html>


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

* [lttng-dev] problems while printing the array
  2012-04-25  8:35 [lttng-dev] problems while printing the array Vijay Kare
@ 2012-04-26 21:21 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2012-04-26 21:21 UTC (permalink / raw)


* Vijay Kare (vijay.kare at gmail.com) wrote:
> Dear All,
> I am trying to print the array format using trace_mark function.
> I have an requirement to print an integer array of 16 elements in one of
> the kernel function.
> I tried below but didnt get array printed in ltt dump.
> 
> trace_mark(xxxx, xxxx_send,"#a %p #lu %lu #lu %lu",pointer,
> sizeof(int),PRINTSIZE);
> 
> Any help, I am not sure if array format is supported in LTT currently ?

Array format support in markers has never been implemented in LTTng 0.x,
even though LTTV was ready to parse it.

The new LTTng 2.0 can produce and read those arrays. See the lttng
website to get the new versions. It does not rely on markers anymore
though, you'll need to move to TRACE_EVENT for kernel tracing, and
TRACEPOINT_EVENT for user-space tracing.

Thanks,

Mathieu

> 
> Thank you in advance.
> VJ

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


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



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

end of thread, other threads:[~2012-04-26 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25  8:35 [lttng-dev] problems while printing the array Vijay Kare
2012-04-26 21:21 ` Mathieu Desnoyers

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