<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> +/* 1024 events are defined. The events are taking values from 0 to 1023. */<br>
> +typedef enum events_e : uint64_t {<br>
Does this make the enum forced into a 64-bit integer type?<br></blockquote><div>Yes, the rtems_record_event variable is 64 bit. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> +} rtems_record_event;<br>
> +<br>
> +trace {<br>
> +    major = 1;<br>
> +    minor = 8;<br>
> +    byte_order = le;<br>
The byte order may depend on the architecture of the CPU that<br>
generates the trace, right?<br></blockquote><div>Yes. It can depend on architecture as well. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> +};<br>
> +<br>
> +stream {<br>
> +    event.header := struct {<br>
> +        uint32_t id;<br>
> +    };<br>
> +};<br>
> +<br>
> +event {<br>
> +    name = "RTEMS_RECORDING_EVENT";<br>
> +    id=0;<br>
> +    fields := struct {<br>
> +               timestamp_t                  ns;<br>
> +               uint32_t                     cpu;<br>
> +        rtems_record_event           events;<br>
Is the rtems_record_event in a stream 64-bits?<br></blockquote><div>Yes.</div><div><br></div><div>I am really stuck here. I am trying every possible way but only one variable is printing the wrong value in babeltrace.</div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4"><b>Ravindra Kumar Meena</b></font>,<div><span style="color:rgb(102,102,102)">B. Tech. Computer Science and Engineering,<br></span></div><div><span style="color:rgb(102,102,102)"><a href="https://www.iitism.ac.in/" style="color:rgb(17,85,204)" target="_blank">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div></div>