<div dir="ltr"><div dir="ltr">Hi,<br></div><div dir="ltr"><br></div><div>Yesterday, I modified the metadata so that babeltrace can read the multiple stream files.</div><div><br></div><div>For this, I added the stream_id at the beginning of every stream file. e.g 0,1,.....31.</div><div><br></div><div><a href="https://github.com/rmeena840/rtems-tools/commit/7c6b27192e1dbdc405db7280b3f2f672ac32488b">https://github.com/rmeena840/rtems-tools/commit/7c6b27192e1dbdc405db7280b3f2f672ac32488b</a><br></div><div><br></div><div>I modified the metadata by keeping in the following format in mind:</div><div><strean_id> <ns> <event> <data> <ns> <event> <data>.....</div><div><br></div><div><a href="https://github.com/rmeena840/rtems-tools/commit/5acaea6b5983c903ce904f17220655664b57513b">https://github.com/rmeena840/rtems-tools/commit/5acaea6b5983c903ce904f17220655664b57513b</a><br></div><div><br></div><div>The babeltrace was able to read the values from each stream files.</div><div><br></div><div>Now, I came across trace compass examples which use one stream in metadata to read the multiple stream files. </div><div><br></div><div>I tried this approach but the babeltrace gives me following error:</div><div><br></div><div>[error] Stream 17 is not declared in metadata.<br>[error] Stream index creation error.<br>[error] Open file stream error.<br>[warning] [Context] Cannot open_trace of format ctf at path ctf.<br>[warning] [Context] cannot open trace "ctf" from ctf for reading.<br>[error] Cannot open any trace for reading.<br><br>[error] opening trace "ctf" for reading.<br><br>[error] none of the specified trace paths could be opened.<br></div><div><br></div><div>I even added packet.context in the stream but still, it reports me the same error.</div><div><br></div><div>struct packet_context {<br>   uint64_clock_monotonic_t timestamp_begin;<br>     uint64_clock_monotonic_t timestamp_end;<br>       uint64_t content_size;<br>        uint64_t packet_size;<br> uint64_t packet_seq_num;<br>uint32_t events_discarded;<br>  uint32_t cpu_id;<br>};<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><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>