[lttng-dev] unable to profile example

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Apr 16 13:46:05 EDT 2019



----- On Apr 16, 2019, at 11:34 AM, Luis Ayuso luis.f.ayuso at gmail.com wrote:

> Dear Lttng community.

> I tried to profile the example code, as described in the documentation @ [
> https://lttng.org/docs/v2.10 | https://lttng.org/docs/v2.10 ]
> and I could not get any satisfactory result.

> I am using
> - lttng (LTTng Trace Control) 2.10.2 - KeKriek
> - Ubuntu 18.04.2

> I created the files hello-tp.c hello-tp.h hello.c as described in the
> documentation
> The code succesfully compiles.
> Kernel modules are loaded.
> lttng-sessiond --daemonize runs with not acknowledgement.

> nevertheless, lttng create session command returns an error I am unable to
> justify:
> lttng create test
> Session test created.
> Traces will be written in /home/luis/lttng-traces/test-20190416-173219
> Error: Unable to create config file
> Error: Command error

> - Do I need any extra setup step that is no documented in the web?
> - Is the package at ubuntu repos working correctly?
> - are there known conflicts with any other software

This message appears when lttng fails to create either:

- $LTTNG_HOME/.lttngrc (if the LTTNG_HOME environment variable is set), or
- $HOME/.lttngrc otherwise.

Please double-check the content of those environment variables and access rights
to the directories they lead to.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list