<div dir="ltr"><p class="gmail-isSelectedEnd">Added <span class="gmail-hover:entity-accent entity-underline gmail-inline gmail-cursor-pointer gmail-align-baseline"><span class="gmail-whitespace-normal">LTTng</span></span> dev to <span class="gmail-hover:entity-accent entity-underline gmail-inline gmail-cursor-pointer gmail-align-baseline"><span class="gmail-whitespace-normal">BCC</span></span> to avoid spamming.<br><br>Hi Kienan. Thanks for your response. I tried specifying the session name, but nothing changed.</p><p class="gmail-isSelectedEnd">Here is the output I get after adding the tracker:</p><pre dir="ltr"><code dir="ltr">Added 1002 to the group ID tracker inclusion set</code></pre><p class="gmail-isSelectedEnd">I don’t think the session name is the issue, because I also specified the session name when starting tracking. This is the session state after creating it:</p><pre dir="ltr"><code dir="ltr">$ sudo lttng list lttng-gid-test
Recording session lttng-gid-test: <span class="gmail-text-token-text-primary gmail-cursor-text gmail-rounded-sm">[active]</span>
    Trace output: /tmp/lttng/lttng-gid-test

=== Domain: Linux kernel ===

Tracked process attributes
  Process IDs:          none
  Virtual process IDs:  none
  User IDs:             none
  Virtual user IDs:     none
  Group IDs:            1002
  Virtual group IDs:    none</code></pre><p class="gmail-isSelectedEnd">And these are the logs I get:</p><pre dir="ltr"><code dir="ltr"><span class="gmail-text-token-text-primary gmail-cursor-text gmail-rounded-sm">[11:01:51.222277079]</span> (+0.000004846) dhcp15 ext4_get_inode_loc: { cpu_id = 3 }, { pid = 403653, tid = 403660, procname = "lttng-consumerd", gid = 0, uid = 0, vpid = 403653, vuid = 0, vgid = 0 }, { ip = 0xFFFFFFFFAC804940 }
...</code></pre><p>There are many logs like this from systemd, kworker, and processes belonging to other groups. Note that the GID 1002 that I want to trace currently has no active subjects.<br><br>Do you suggest switching to the recent version of LTTng (current version 2.13.11)? <br><br>Best,<br>Amir</p></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Apr 7, 2026 at 10:57 AM Kienan Stewart <<a href="mailto:kstewart@efficios.com">kstewart@efficios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Amir,<br>
<br>
On 2026-04-04 21:02, Amir Najafi Zadeh via lttng-dev wrote:<br>
> Hello all,<br>
> <br>
> I hope you are doing well.<br>
> <br>
> I have a quick question about LTTng tracking when using kernel probes. I <br>
> mainly use LTTng to trace file system functions in the Linux kernel, and <br>
> for that I use the LTTng kernel probe feature, which works very well. <br>
> However, when I tried filtering logs for a specific group ID, I noticed <br>
> that filters are not supported for kernel probes.<br>
> <br>
> Then I attempted to use the tracking feature to trace only a specific <br>
> GID, but this also did not work. From what I see in my logs, it appears <br>
> that for kernel probes all events are captured and recorded, regardless <br>
> of the tracking options.<br>
> <br>
> I wanted to know if this is a known limitation, and whether there is any <br>
> in-progress work or reason why this is not currently supported.<br>
> <br>
<br>
I just tried on the master branch (since I had easy access to it), and <br>
wasn't able to reproduce a situation where I added the gid tracking and <br>
had results for a different gid in lttng view.<br>
<br>
> For reference, here is my code. I am using LTTng 2.13.11 with kernel <br>
> 6.8.0-101-generic:<br>
> <br>
> ``` #!/bin/sh<br>
> SESSION_NAME="lttng-gid-test"<br>
> OUTPUT_DIR="/tmp/lttng/${SESSION_NAME}"<br>
> GROUP_ID=1002<br>
> <br>
> # create the lttng session<br>
> lttng create "$SESSION_NAME" -o "$OUTPUT_DIR"<br>
> <br>
> # create the lttng ring buffer channel<br>
> lttng enable-channel --session="$SESSION_NAME" --kernel channel0 \<br>
> --subbuf-size=16M \<br>
> --num-subbuf=2<br>
> <br>
> # add pid, tid, proc, and gid for tracing collection<br>
> lttng add-context --session="$SESSION_NAME" --channel=channel0 --kernel <br>
> --type pid<br>
> lttng add-context --session="$SESSION_NAME" --channel=channel0 --kernel <br>
> --type gid<br>
> <br>
> # enable the target probe<br>
> lttng enable-event --session="$SESSION_NAME" --channel=channel0 --kernel <br>
> --probe=ext4_get_inode_loc ext4_get_inode_loc<br>
> <br>
> # disable all tracks # NOTE: untracking doesn't make a difference<br>
> # lttng untrack --session="$SESSION_NAME" --kernel --all --gid<br>
> # lttng untrack --session="$SESSION_NAME" --kernel --all --pid<br>
> # lttng untrack --session="$SESSION_NAME" --kernel --all --vpid<br>
> # lttng untrack --session="$SESSION_NAME" --kernel --all --uid<br>
> # lttng untrack --session="$SESSION_NAME" --kernel --all --vuid<br>
> # lttng untrack --session="$SESSION_NAME" --kernel --all --vgid<br>
> # only enable gid 1002 track<br>
> lttng track --kernel --gid=1002<br>
> <br>
<br>
Could you check the output of your script after "lttng track --kernel <br>
--gid=1002"?<br>
<br>
The rest of your commands specify a session name, but this one does not. <br>
I wonder if  it's selecting a different default session that the one <br>
you're expecting?<br>
<br>
> # start lttng lttng start $SESSION_NAME<br>
> <br>
> ```<br>
> <br>
> Thank you for your time and guidance.<br>
> <br>
> Best regards,<br>
> Amir<br>
> <br>
> -- <br>
> *Amirhossein Najafizadeh*<br>
> *PhD Student, Computer Science Department, Stony Brook University, N.Y.<br>
> File systems and Storage Lab (FSL)<br>
> <br>
> *<br>
> <a href="mailto:najafizadeh21@gmail.com" target="_blank">najafizadeh21@gmail.com</a> <mailto:<a href="mailto:najafizadeh21@gmail.com" target="_blank">najafizadeh21@gmail.com</a>><br>
> <a href="https://amirhnajafiz.github.io/" rel="noreferrer" target="_blank">https://amirhnajafiz.github.io/</a> <<a href="https://amirhnajafiz.github.io/" rel="noreferrer" target="_blank">https://amirhnajafiz.github.io/</a>><br>
<br>
</blockquote></div>