[lttng-dev] babeltrace-log

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Apr 20 11:00:25 EDT 2012


* 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



More information about the lttng-dev mailing list