[lttng-dev] lttng view on --live session vs direct babeltrace use on UST

Staffan Tjernstrom staffan at eternaltraveller.com
Wed Sep 14 20:49:21 UTC 2016


I create a session with

lttng create --live 100000

add my events

lttng enable-event -u "my_provider:*"

start it

lttng start

then view the results.

lttng view

works fine, but I need to fine-tune the output fields (I need the
date, and utc time, in particular).

lttng view -e "/usr/bin/babeltrace --clock-date --clock-gmt"

produces the following error:

Trace directory:
net://localhost/host/e7ch1sapphire01.faction.local/auto-20160914-150040

[error] Unable to open trace directory
"net://localhost/host/e7ch1sapphire01.faction.local/auto-20160914-150040".
[warning] [Context] Cannot open_trace of format ctf at path
net://localhost/host/e7ch1sapphire01.faction.local/auto-20160914-150040.
[warning] [Context] cannot open trace
"net://localhost/host/e7ch1sapphire01.faction.local/auto-20160914-150040"
for reading.
[warning] errors occurred when opening trace
"net://localhost/host/e7ch1sapphire01.faction.local/auto-20160914-150040"
for reading, continuing anyway.

When I don't use a live session, the explicit version of lttng view
works as one would expect.

Does anyone have any good ideas where I'm going wrong?:

Kind Regards,
Staffan Tj.



More information about the lttng-dev mailing list