Component(s) involved:


Component version:


System information:

 

Expected results: After running a kernel trace session, the file /tmp/my-kernel-trace/kernel/metadata should be plain text, starting with /* CTF 1.8 */, and be readable by Babeltrace2 and the Python bt2 bindings.


Actual results:

text

Apply

  /tmp/my-kernel-trace/kernel/metadata: Common Trace Format (CTF) packetized metadata (LE), v1.8

 WukzMW{L����^ltypealias integer { size = 8; align = 8; signed = false; } := uint8_t;

  typealias integer { size = 16; align = 8; signed = false; } := uint16_t;

  ...

 

Logs and context:

 

  At line 146 in metadata stream: Invalid character: char="", val=0x1d

  At line 146 in metadata stream: syntax error, unexpected CTF_ERROR, expecting CTF_TYPEASSIGN or CTF_EQUAL: token=""

 

 

Loaded kernel modules:

 

lsmod | grep lttng

lttng_clock            16384  0

lttng_kretprobes       16384  0

lttng_kprobes          16384  0

lttng_uprobes          16384  0

lttng_statedump       749568  0

lttng_wrapper          16384  1 lttng_statedump

...

 

Additional context:


What should happen:

The kernel tracer should write plain text CTF metadata, starting with /* CTF 1.8 */, so that Babeltrace2 and the Python bt2 bindings can parse the trace.What happens:The kernel tracer writes packetized (binary) metadata, which is not usable for analysis.


Thank you for your help! Please let me know if you need any more logs or information.

 

Regards

Shreya Tripathi