From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id HMF5LaW00WkD1AcAWB0awg (envelope-from ) for ; Sat, 04 Apr 2026 21:02:29 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=lists.lttng.org header.i=@lists.lttng.org header.a=rsa-sha256 header.s=default header.b=kkYa3Lpp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id ACB261E08C; Sat, 04 Apr 2026 21:02:29 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from lists.lttng.org (lists.lttng.org [158.69.130.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1C4521E08C for ; Sat, 04 Apr 2026 21:02:29 -0400 (EDT) ARC-Filter: OpenARC Filter v1.2.1 lists.lttng.org 4fpDhN4p3cz1L75 ARC-Seal: i=2; d=lists.lttng.org; s=arc1; a=rsa-sha256; cv=fail; t=1775350948; b=DuU3KDgZb7jQEeJgTMqVOaB8b9ZLDuvsBb11c8ykaSUsYv0ReMHqH1wVgwFSE+hrClJ8 71tj59NAzqUpYyCLad+UczSetr39/bC+vfBHUGPr1lLw8RTc+vUVvdXjcOi07hUfDtLLb MDeL9Ucf+hY7oirHQGc/4sQ1VGOo+GKjWssMqk7hcnkvXDIEwRdfXHixbOLVaFg2hmwlu CrTbuLm2XKpfmWY1++bezHL2MSm9EK9lxNt4dwR80mQzKoma6glUvipa9aN3GxFLpHyXN FFTq2Q+aHMgxMuN+Hb564lPbTgWmjpzXSMS51sZgtUCJYdOTyyS61H/yq1XoFO9yM3A== ARC-Message-Signature: i=2; d=lists.lttng.org; s=arc1; a=rsa-sha256; c=relaxed/simple; t=1775350948; h=DKIM-Signature:MIME-Version:Date:Message-ID:Subject:To:From:From; bh=DXEvO/GqQ88VQSid4K/MxiYjdzExXhOh2cQKHDgdxFs=; b=CM8gxkSZC91C8DUM7mIcRwXGxHmMwPfAOlJur2Agccgu7v9H2YTDf4PKo+cnFJnCN3co yN/s1PfW3wmEWE/VuLFtDKBnhMfbi6Rp5pD05ifmAYuMN2gJfwz3iFNkUZBwyhLlV3fHS eT4qtsXYafFvJ8DbSDVNtEDqX8/UEFzhLIAOCNWhqbhgdhDRv2Kj2YIeH7IuRcSbZIjmU 61T6CY3AInUTgFCHjtN1qBMiiOkQutkF+1bV53cfI2DoXy5Q1gm5tj/E5nEwmu8vokBgR 8U+UKqsxhlMLURQunctHdrVvjn6qz4mfP38gd/FPKht/2g9WfqRbdpvyJn+yba9Ye9Q== ARC-Authentication-Results: i=2; lists.lttng.org; arc=fail smtp.remote-ip="::1" DKIM-Filter: OpenDKIM Filter v2.11.0 lists.lttng.org 4fpDhN4p3cz1L75 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.lttng.org; s=default; t=1775350948; bh=6PVH0dwBHha5OFCz4Zwqv09DTUH1WVJU+tZpfRKfcWA=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=kkYa3LppIno6WXdTx2AM7futfM66pgBsTNVcWozqWoZ49A2xMTxjOMZipd8FeKY9+ 06jVqEmWpMpYftlcjaSOov1O1UccpKCu4yMDu76HWSgUpn5OBZVHzZ39DJDCq+Sr5c wcw7b/c4oesu7F1+cuCrFCEtePaExnCMCaGFD/SmkD23rXO4qmo22Tiy79oBY4DPZT KHPQ2NsQjSpNoiBo2ZTcusk/J3GN8Cp4OqGZev9KAQ/azZ43nEw5MlxBR9CC1Kc3/J 1pZyBw1hIIp22d/bl0DEbSK88bQ6m496C74xMOJg08BfnQqA9H8M0vFKZTFRdnBNwx rxQhkOjJM1N+A== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4fpDhN4p3cz1L75; Sat, 4 Apr 2026 21:02:28 -0400 (EDT) ARC-Filter: OpenARC Filter v1.2.1 lists.lttng.org 4fpDhN1Sqfz1L6x DKIM-Filter: OpenDKIM Filter v2.11.0 lists.lttng.org 4fpDhN1Sqfz1L6x Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lists.lttng.org (Postfix) with ESMTPS id 4fpDhN1Sqfz1L6x for ; Sat, 4 Apr 2026 21:02:27 -0400 (EDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-41576c5c01cso1752912fac.3 for ; Sat, 04 Apr 2026 18:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775350942; cv=none; d=google.com; s=arc-20240605; b=gjFYlUMvH7Eyn8COEps0egTuTAIRI1NtCDoroASwrpctc0yhNTLPp1r2DHBXOqT2Ry +ejRai1Ez3c5S/E/dHTx3SUFQ/bwHcPedO8ghHWQX04SdXPGiiAjUq8ICSlbwE3sW1DG N2X56YfEwVvFCMZRo3c0RSXpN2qwXTU2aSSoq4bOqryeOeiqapICBByt/1Fk6rGJ35bH W5l5bH0+x7sZACcNhYSrkziXaoOXaPjurOUGsgcJoBK+UqA6QxWzmQ5efnAXmGUXMotA mL338EmJg+LibQRru8f8eDRQSJiNRWMqMFxOIeafZS1JL8Mzwk6VfjGHeumBb3mxNPdn zJRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=6PVH0dwBHha5OFCz4Zwqv09DTUH1WVJU+tZpfRKfcWA=; fh=Vi3MF25LmiCIknQyyhXLxIEZ5vqn+bls1ZIgHxHgtRU=; b=S6QaFPu90GvlnTyaXOiL0fXaRq0ACqHGcvVLPbBPa6bdIMewB0K3jfMPwcgiTNmLhy QhHUX7d2SgeYem5CEVy+Wn7s8yQmjnPzxK0vjtdD5totvKVtOlZNm7EfiV0vWoQI4Ktl nTC64RTdu6QtuAkvCYjwZb9rVPEnbeYtsSsqr3Ke91YI6DSaqyZfxCOobMQmcGkN3x/x VDkQ0+//jtkuUgMplcZOkBbgpPdAPfDmoz5OZguQgXPtseEA76dSArdHfPaeQeYQKa6C 0bNPpQXWWfjkV24zFHyZgXn4f0ThVOrVtHORQ+Tz0jaW0NZABRsXGdCeCjAZNVbBmRwk e1rg==; darn=lists.lttng.org ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775350942; x=1775955742; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6PVH0dwBHha5OFCz4Zwqv09DTUH1WVJU+tZpfRKfcWA=; b=o+dG48itEl47Q89RAJLmMZQ2ugnIfVEWjJrypfFA/t+5DqYKwe+B6h9rz4Arx8VF9k 1u7NnuxsOAYBDg7r0/VQltDQP9N4rtdRHcHCNPiyz7mQrZDM9SpmyWlCKRSMvE7BQJO4 RsAv2WI4HaOJIuHd/otfHefxCkNW0GJDNUjnh2jqRFcPpZyFJSNL2+I4rV/X3sBHsuJ7 4uSaeMN0hxcu3WL+3egoElGrMcTYI0kcMJZrM0yLsxJBQb9Hahq2x4O4C3vhQ+zMpPWa AjwmzakmeNk9huW7l6JzAd8yDNSbU+xahedAV3thubms7HoGivj1M9f2D3V2CE4nGyoS dUjw== X-Gm-Message-State: AOJu0YwzaVm4DPY5v04GJZP86efPp0OQw8dcTSsgWLxZPu1tSCoc+baL 3N7nuVvgzja4hi3Hu3qEnF1rQ1oMiB5bbsmkjb2g6kKzhIfZKK8EDtAFf3FOKT/MVZWmr6Lh05p s8sqPIP7zE5KBL/U7M6c0XEiCDuqj7lFkHHmJ+THOYUpcq+1Q78dSU6c= X-Gm-Gg: AeBDieuOL73V8QPH1EGppJum2obQ53QUwEn41bXOsfCLQGSSb1Kv+fkLVE2KjRhXpBC DrsisBxLW6kUcyS8LfDFo/5GG5+riFrb2OwHFAIvmXFg/cgzm5WUhrf+T9H+s+XyOmbOFG1KQoe eqFcg8dN948JGkw0nG0PXMqu9lG6sqOruNR104Sw14+cz9lvks/iQ2jhSbtHt9PqxDFsswa9N1c sE4wcZyYQITiRbpYudq/mB1F0zSH+qupsELCSwHEYwknSC6+NTTTtx6/3J0CoP+J2J+QEzRBV7k 5trjGp51di40KHF4XkNK2uv3IBI/IY8ZflEghUnDtkcTiREX X-Received: by 2002:a05:6870:8313:b0:41c:fdd7:5b4b with SMTP id 586e51a60fabf-4230fdcf7a4mr4542079fac.21.1775350941857; Sat, 04 Apr 2026 18:02:21 -0700 (PDT) MIME-Version: 1.0 Date: Sat, 4 Apr 2026 21:02:11 -0400 X-Gm-Features: AQROBzBwgePvh3VlE1LBJ6FiSsMzuHBrJu37U6jMlpBM0kBpdMjn2cxNyHlqMGk Message-ID: Subject: Question about LTTng Kernel Probe Tracking To: lttng-dev@lists.lttng.org Content-Type: multipart/alternative; boundary="0000000000003dca8e064eac1a48" X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Amir Najafi Zadeh via lttng-dev Reply-To: Amir Najafi Zadeh Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" --0000000000003dca8e064eac1a48 Content-Type: text/plain; charset="UTF-8" Hello all, I hope you are doing well. I have a quick question about LTTng tracking when using kernel probes. I mainly use LTTng to trace file system functions in the Linux kernel, and for that I use the LTTng kernel probe feature, which works very well. However, when I tried filtering logs for a specific group ID, I noticed that filters are not supported for kernel probes. Then I attempted to use the tracking feature to trace only a specific GID, but this also did not work. From what I see in my logs, it appears that for kernel probes all events are captured and recorded, regardless of the tracking options. I wanted to know if this is a known limitation, and whether there is any in-progress work or reason why this is not currently supported. For reference, here is my code. I am using LTTng 2.13.11 with kernel 6.8.0-101-generic: ``` #!/bin/sh SESSION_NAME="lttng-gid-test" OUTPUT_DIR="/tmp/lttng/${SESSION_NAME}" GROUP_ID=1002 # create the lttng session lttng create "$SESSION_NAME" -o "$OUTPUT_DIR" # create the lttng ring buffer channel lttng enable-channel --session="$SESSION_NAME" --kernel channel0 \ --subbuf-size=16M \ --num-subbuf=2 # add pid, tid, proc, and gid for tracing collection lttng add-context --session="$SESSION_NAME" --channel=channel0 --kernel --type pid lttng add-context --session="$SESSION_NAME" --channel=channel0 --kernel --type gid # enable the target probe lttng enable-event --session="$SESSION_NAME" --channel=channel0 --kernel --probe=ext4_get_inode_loc ext4_get_inode_loc # disable all tracks # NOTE: untracking doesn't make a difference # lttng untrack --session="$SESSION_NAME" --kernel --all --gid # lttng untrack --session="$SESSION_NAME" --kernel --all --pid # lttng untrack --session="$SESSION_NAME" --kernel --all --vpid # lttng untrack --session="$SESSION_NAME" --kernel --all --uid # lttng untrack --session="$SESSION_NAME" --kernel --all --vuid # lttng untrack --session="$SESSION_NAME" --kernel --all --vgid # only enable gid 1002 track lttng track --kernel --gid=1002 # start lttng lttng start $SESSION_NAME ``` Thank you for your time and guidance. Best regards, Amir -- *Amirhossein Najafizadeh* *PhD Student, Computer Science Department, Stony Brook University, N.Y.File systems and Storage Lab (FSL)* najafizadeh21@gmail.com https://amirhnajafiz.github.io/ --0000000000003dca8e064eac1a48 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello all,

I hope you are doing well.

I have a quick question about LTTng tracking when using kernel probes. I= mainly use LTTng to trace file system functions in the Linux kernel, and f= or that I use the LTTng kernel probe feature, which works very well. Howeve= r, when I tried filtering logs for a specific group ID, I noticed that filt= ers are not supported for kernel probes.

Then I attempted to use the tracking feature to trace only a specific GI= D, but this also did not work. From what I see in my logs, it appears that = for kernel probes all events are captured and recorded, regardless of the t= racking options.

I wanted to know if this is a known limitation, and whether there is any= in-progress work or reason why this is not currently supported.

For reference, here is my code. I am using LTTng 2.13.11 with kernel 6.8= .0-101-generic:

``` #!/bin/sh
SESSION_NAME=3D"lttng-gid-test"
OUTPUT_DIR=3D&quo= t;/tmp/lttng/${SESSION_NAME}"
GROUP_ID=3D1002

# create the l= ttng session
lttng create "$SESSION_NAME" -o "$OUTPUT_DIR= "

# create the lttng ring buffer channel
lttng enable-channe= l --session=3D"$SESSION_NAME" --kernel channel0 \
--subbuf-s= ize=3D16M \
--num-subbuf=3D2

# add pid, tid, proc, and gid for = tracing collection
lttng add-context --session=3D"$SESSION_NAME&quo= t; --channel=3Dchannel0 --kernel --type pid
lttng add-context --session= =3D"$SESSION_NAME" --channel=3Dchannel0 --kernel --type gid
# enable the target probe
lttng enable-event --session=3D"$SESSIO= N_NAME" --channel=3Dchannel0 --kernel --probe=3Dext4_get_inode_loc ext= 4_get_inode_loc

# disable all tracks # NOTE: untracking doesn't make a difference
# lttng untrack --sessi= on=3D"$SESSION_NAME" --kernel --all --gid
# lttng untrack --se= ssion=3D"$SESSION_NAME" --kernel --all --pid
# lttng untrack -= -session=3D"$SESSION_NAME" --kernel --all --vpid
# lttng untra= ck --session=3D"$SESSION_NAME" --kernel --all --uid
# lttng un= track --session=3D"$SESSION_NAME" --kernel --all --vuid
# lttn= g untrack --session=3D"$SESSION_NAME" --kernel --all --vgid
# only enable gid 1002 track
lttng track --kernel --gid=3D1002

= # start lttng lttng start $SESSION_NAME

```

Thank you for your time and guidance.

Best regards,
Amir

--=
Amirhossein Najafizadeh
PhD Student, Computer Science Department, Stony Broo= k University, N.Y.
File systems and Storage Lab (FSL)

=
--0000000000003dca8e064eac1a48--