<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19px">I am trying to use the babeltrace lib to read a trace file. So here it the flow: 1. babeltrace /var/log/some_trace > trc.txt 2. My program does this in trying to add a trace after creating context:</p><pre style="margin-top:0px;padding:5px;border:0px;font-size:13px;overflow:auto;width:auto;max-height:600px;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;word-wrap:normal"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit">code
int err = bt_context_add_trace(ctx, path, "text", nullptr,
nullptr, nullptr);
code
</code></pre><ol start="3" style="margin:0px 0px 1em 30px;padding:0px;border:0px;font-size:15px;list-style-position:initial;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19px"><li style="margin:0px 0px 0.5em;padding:0px;border:0px;word-wrap:break-word">Compile and Run the program gives this error: code [error] [Context] Format "text" unknown. code</li></ol><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19px">The idea is that i have trace generated on multiple machines - and though I can read use my program to directly read the binary trace files on my local system, for other systems, i convert the trace using babeltrace and then process all these traces together.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19px">The package i have installed is this: babeltrace-devel-1.2.4-1.el7.x86_64</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19px"><br></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19px"><a href="http://stackoverflow.com/questions/33289656/babeltrace-format-text-unknown">http://stackoverflow.com/questions/33289656/babeltrace-format-text-unknown</a> <br></p><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-ganesh</div></div>
</div>