Re: Not capturing ust events

David Aldrich via lttng-dev <[email protected]> Thu, 8 May 2025 18:59:45 +0100
Newsgroups org.lttng.lists.lttng-dev
Message-ID <CAJK_iehC35W7LUWkR4b-+TEuJTOTngzJ_0sV7LSvBT6WcDPN4w@mail.gmail.com>
Hi Kienan

Thanks again for replying.

> Glad you caught that. I had assumed it was linked in :)

Yes, I should have spotted that earlier!

> Assuming the user you are running the `lttng` commands with is a member
> of the tracing group and a root lttng-sessiond is running, a complete
> example might look like:
>
> ```
> lttng create my_proj
> lttng enable-event --userspace 'lttng_ust_tracef:*' # this will
> automatically create a channel if one doesn't exist in the session
> lttng enable-channel --kernel --session my_proj kernel_channel # [1]
> lttng enable-event --kernel --all --channel kernel_channel --session
> my_proj # [2]
> lttng start
> ./my_app
> lttng stop
> lttng view
> ```

I now see:

$ lttng enable-channel --kernel --session my_proj kernel_channel
Error: Channel kernel_channel: Tracing the kernel requires a root
lttng-sessiond daemon, as well as "tracing" group membership or root
user ID for the lttng client (session my_proj)

I am a member of the tracing group, however I need to understand how
to configure the daemon. I'll have another look at the docs.

Best regards
David