Question about LTTng Context

Kienan Stewart kstewart at efficios.com
Thu Dec 11 09:30:23 EST 2025


Hi Amir,

On 12/10/25 9:40 PM, Amir Najafi Zadeh via lttng-dev wrote:
> Hello everyone,
> 
> I hope you’re doing well. My name is Amir, and I’m a PhD student in the 
> Computer Science department at Stony Brook University, New York.
> 
> I have a question about the LTTng context that I haven’t been able to 
> find an answer for in the docs or man pages. Does LTTng support adding 
> the cgroup ID or cgroup path as a context field? I want to filter my 
> trace results based on cgroups.
> 

I think you're looking for the `cgroup_ns` context which adds the inum 
of the cgroup namespace as a context field.

thanks,
kienan

> If this isn’t supported, are there any plans to add it in future 
> versions, such as 2.14?
> 
> For reference, I’m currently using LTTng 2.13 on Ubuntu 24.04 with 
> kernel 6.8.0-87-generic.
> 
> Cheers,
> Amir
> -- 
> *Amirhossein Najafizadeh*
> *PhD Student, Computer Science Department, Stony Brook University, N.Y.
> File systems and Storage Lab (FSL)
> 
> *
> najafizadeh21 at gmail.com <mailto:najafizadeh21 at gmail.com>
> https://amirhnajafiz.github.io/ <https://amirhnajafiz.github.io/>



More information about the lttng-dev mailing list