Hello Ravindra,

the basic structure is now similar to the LTTNG output. The next step is to produce a packet header identical to LTTNG:

trace {
        major = 1;
        minor = 8;
        uuid = "6a7715d0-b502-4c65-8678-6777ac7f755a";
        byte_order = le;
        packet.header := struct {
                uint32_t magic;
                uint8_t  uuid[16];
                uint32_t stream_id;
                uint64_t stream_instance_id;
        };
};

Move the generation of the metadata file to the record client.

Generate the clock dynamically, e.g. the use the current CLOCK_REALTIME to set the offset.

clock {
        name = "monotonic";
        uuid = "234d669d-7651-4bc1-a7fd-af581ecc6232";
        description = "Monotonic Clock";
        freq = 1000000000; /* Frequency, in Hz */
        /* clock value offset from Epoch is: offset * (1/freq) */
        offset = 1539783991179109789;
};

Add a LTTNG compatible packet context:

struct packet_context {
        uint64_clock_monotonic_t timestamp_begin;
        uint64_clock_monotonic_t timestamp_end;
        uint64_t content_size;
        uint64_t packet_size;
        uint64_t packet_seq_num;
        unsigned long events_discarded;
        uint32_t cpu_id;
};

--
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
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to