[PATCH] Write event stream in file

Ravindra Kumar Meena rmeena840 at gmail.com
Fri Jun 21 14:51:17 UTC 2019


>
> >> I tried to parse the event stream file and metadata file through
> >> babeltrace gives the following error:
> >>
> >> [error] Invalid magic number 0x30302E30 at packet 0 (file offset 0).
> >> [error] Stream index creation error.
> >> [error] Open file stream error.
> >> [warning] [Context] Cannot open_trace of format ctf at path ctf.
> >> [warning] [Context] cannot open trace "ctf" from ctf/ for reading.
> >> [error] Cannot open any trace for reading.
> >>
> >> [error] opening trace "ctf/" for reading.
> >>
> >> [error] none of the specified trace paths could be opened.
> >>
> >> I think the metadata file is not compatible with event stream generated.
> >
> > Yes, indeed. I also think that the metadata doesn't describe the event
> > stream. The metadata should describe the struct ctf_item.
>
> In your current version you have also calls to fprintf() mixed into the
> fwrite() in print_item().
>

Should I comment the fprintf() and leave it there or just permanently
remove it?


-- 
*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/20190621/d844dc6f/attachment.html>


More information about the devel mailing list