[lttng-dev] LTTng 2.6.0: Corrupt metadata?
Neil Bryan
Neil.Bryan at ttp.com
Thu Mar 5 11:56:53 EST 2015
Thanks for the update Jérémie.
When something is not working and you are looking for an explanation, blobs of binary in a mostly text file ring alarm bells.
I’m impressed that the parser for the metadata can deal with this. It is very helpful to have a reference like this on the mailing list for future devs looking for answers.
Thanks to you all.
From: jeremie.galarneau at gmail.com [mailto:jeremie.galarneau at gmail.com] On Behalf Of Jeremie Galarneau
Sent: Thursday, March 05, 2015 4:50 PM
To: Neil Bryan
Cc: lttng-dev at lists.lttng.org; glenkeane.94 at gmail.com
Subject: Re: [lttng-dev] LTTng 2.6.0: Corrupt metadata?
On Thu, Mar 5, 2015 at 8:58 AM, Neil Bryan <Neil.Bryan at ttp.com<mailto:Neil.Bryan at ttp.com>> wrote:
From my first post:
If I try and parse recovered traces using Babeltrace, it fails with a segmentation fault.
nbryan at meteorubuntu-OptiPlex-7010:/data/nbryan/Meteor/altera_trace$ babeltrace --help
BabelTrace Trace Viewer and Converter 1.0.0-rc1
nbryan at meteorubuntu-OptiPlex-7010:/data/nbryan/Meteor/altera_trace$ babeltrace auto-20150304-091109/
Segmentation fault (core dumped)
I downloaded, built and installed this version:
nbryan at meteorubuntu-OptiPlex-7010:/data/nbryan/Meteor/altera_trace$ babeltrace --help
BabelTrace Trace Viewer and Converter 1.2.4
And it now parses the captured traces. This is interesting as maybe the metadata is well-formed after all!
I shall now investigate the Eclipse-side of things.
Glad to know it all worked out!
To add to Glen's great explanation, the binary blobs you see mid-way in the metadata file are padding + the next packet's header. The amount of padding is the difference between the packet_size and the content_size.
Jérémie
_______________________________________________
lttng-dev mailing list
lttng-dev at lists.lttng.org<mailto:lttng-dev at lists.lttng.org>
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150305/ad90a760/attachment-0001.html>
More information about the lttng-dev
mailing list