Not capturing ust events
David Aldrich
david.aldrich.ntml at gmail.com
Thu May 8 13:59:45 EDT 2025
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
More information about the lttng-dev
mailing list