On 19/05/2019 14:48, Ravindra Kumar Meena wrote:
Hi Sebastian,

The task you gave me to convert trace data to CTF. I am currently studying the code base. I am figuring out how the files are linked to each other.

Yes, the trick is to only look at the relevant parts. The data structure for the record items is defined in <rtems/recorddata.h>. The BSP we currently use is a 32-bit target:

/**
 * @brief The 32-bit format record item.
 */
typedef struct {
  uint32_t event;
  uint32_t data;
} rtems_record_item_32;

So, you just have the event which consists of an event number and the timestamp. The data contains event specific content.

If you run the example in Qemu and connect to the record port, then you get a TCP stream of these record items. Your job is now to convert this data stream into a CTF stream.

On consumer of this CTF stream is the Trace Compass. Trace Compass is a complex consumer. So, to get started and for testing you can also use babeltrace to print your converted CTF stream as text.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to