[lttng-dev] Babeltrace with python bindings unable to read ust trace

Shehab Elsayed shehabyomn at gmail.com
Mon Mar 5 21:07:29 EST 2018


Hello All,

I am running into this problem where using babeltrace with python bindings
is unable to read a ust trace even though the trace can be processed
normally if I run babeltrace from the command line.

I have tried the example given in the LTTng documentation for using
babeltrace with python bindings. It works normally with a kernel trace.
However, when I give it a ust trace (just to see if it can open it) I get
the following error:

Unable to open metadata.
[warning] Unable to open trace metadata for path "/md1200/home/elsayed9/
LTTng/lttng-traces/hello-test-session-20180219-184952/ust/".
[warning] [Context] Cannot open_trace of format ctf at path
/md1200/home/elsayed9/LTTng/lttng-traces/hello-test-session-20180219-184952/
ust/.
Traceback (most recent call last):
  File "test.py", line 70, in <module>
    sys.exit(0 if top5proc() else 1)
  File "test.py", line 18, in top5proc
    raise RuntimeError('Cannot add trace')
RuntimeError: Cannot add trace

Any ideas on how to solve this problem are greatly appreciated.

Thanks,
Shehab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20180305/9ef38361/attachment.html>


More information about the lttng-dev mailing list