From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Thu, 26 Apr 2012 17:21:11 -0400 Subject: [lttng-dev] problems while printing the array In-Reply-To: References: Message-ID: <20120426212111.GD1646@Krystal> * 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