GSoC Project | Basic Support for Trace Compass
Ravindra Kumar Meena
rmeena840 at gmail.com
Fri Jul 19 04:08:41 UTC 2019
Hi,
I had a look at the variant examples documented here
https://diamon.org/ctf/#ex-variants. The examples explain how variant work.
First, it takes the id and on the basis of id passed it selects the
struct(compact, extended) present in variant data-type.
If id passed to the variant is in the range is [0,30] then variant selects
compact struct and if id=31 is passed to the variant then extended struct
is selected.
Since our recording timestamp is of 64 bit. So we have to pass 31 in enum
id. Our recording final event.header in binary stream file will look this:
<enum_id=31> <event_id=0> <64-bit timestamp>
https://github.com/rmeena840/rtems-tools/commit/da100caecda9c69a08f73edbe849fad022fe1384
It was not previously before because I forgot to add event.header size in
both content_size and packet_size.
I tested the babeltrace output with/without event_header_compact. The
babeltrace is printing the same output.
[19:32:26.679052982] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: {
cpu_id = 18 }, { event = ( "RTEMS_RECORD_THREAD_SWITCH_IN" : container =
215 ), data = 167837739 }
[19:32:26.679099590] (+0.000046608) Record_Item RTEMS_RECORDING_EVENT: {
cpu_id = 5 }, { event = ( "RTEMS_RECORD_THREAD_SWITCH_OUT" : container =
216 ), data = 167837707 }
[19:32:26.679099590] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: {
cpu_id = 5 }, { event = ( "RTEMS_RECORD_THREAD_STACK_CURRENT" : container =
209 ), data = 32320 }
[19:32:26.679099590] (+0.000000000) Record_Item RTEMS_RECORDING_EVENT: {
cpu_id = 5 }, { event = ( "RTEMS_RECORD_THREAD_SWITCH_IN" : container = 215
), data = 151060501 }
I have also added the env object in the metadata. Please check it's member
value if they are up to the requirement of rtems.
https://github.com/rmeena840/rtems-tools/commit/96b082a6a31a1ebf6ea05b475a7e6c8378e456e7
Have a look
Thanks
--
*Ravindra Kumar Meena*,
B. Tech. Computer Science and Engineering,
Indian Institute of Technology (Indian School of Mines)
<https://www.iitism.ac.in/>, Dhanbad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190719/06f6713e/attachment-0002.html>
More information about the devel
mailing list