From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Fri, 20 Apr 2012 11:00:25 -0400 Subject: [lttng-dev] babeltrace-log In-Reply-To: <524C960C5DFC794E82BE548D825F05CF29FBE8@EU-MBX-04.mgc.mentorg.com> References: <20120418235138.GB14058@Krystal> <524C960C5DFC794E82BE548D825F05CF29FBE8@EU-MBX-04.mgc.mentorg.com> Message-ID: <20120420150025.GA14908@Krystal> * Oestman, Fredrik (Fredrik_Oestman at mentor.com) wrote: > Mathieu Desnoyers wrote: > > The "babeltrace-log" command converts from a text log to a CTF trace. > > I did this: > > $ babeltrace --no-delta --clock-seconds --clock-raw combined > combined.log > $ babeltrace-log combined_new < combined.log > $ babeltrace --no-delta --clock-seconds --clock-raw combined_new > combined_new.log > [error] Invalid magic number 0x2BCAB7F7 at packet 196 (file offset 6422528). > [error] Open file stream error. > [warning] [Context] Cannot open_trace of the format combined.ctf . > > [warning] [Context] opening trace "combined.ctf" from combined.ctf for reading. > > Am I doing something obviously wrong, or is just a bit more care needed when using babeltrace-log? make sure you have an up to date babeltrace version. If the problem persists with an updated version, can you send me a link to your original "combined" trace files ? (a .tar.gz would be perfect). This use-case works fine here. Please note that babeltrace-log will simply take a text log and save each line into a CTF trace (as a string). Thanks, Mathieu > > "combined" is a trace containing events in both kernel and ust domains. > > > Cheers, > > Fredrik ?stman > > > _______________________________________________ > 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