From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4vUYKwf742h72iEAWB0awg (envelope-from ) for ; Mon, 06 Oct 2025 13:23:19 -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=mx header.b=c5QulET0; 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=W/gu8XPh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9E42F1E0B6; Mon, 06 Oct 2025 13:23:19 -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_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, 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 m43-8.mailgun.net (m43-8.mailgun.net [69.72.43.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by simark.ca (Postfix) with UTF8SMTPS id 39B2E1E047 for ; Mon, 06 Oct 2025 13:23:18 -0400 (EDT) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=lists.lttng.org; q=dns/txt; s=mx; t=1759771397; x=1759778597; h=Sender: Sender: Reply-To: From: From: List-Subscribe: List-Help: List-Post: List-Archive: List-Unsubscribe: List-Id: Content-Type: Cc: To: To: Subject: Subject: Message-ID: Date: In-Reply-To: References: MIME-Version; bh=Z8zO7IF42bUMeQXqbW4fxPlVHBbqOZwWqo6Fhw2fH2I=; b=c5QulET0LyH9TbYrm0y5Kq/9n1RORx/7hSzbD32SpmwiqQaxCgmLueSnuXRVF7EgwV9AnWqwZjWh1CVR+grBgju3YDanx6ujrA0HdFCMLKwk8GV0krit+fFQAO7N1xpYQ49UtJng0vp3ve9aO5tCO8mbAQSg3Pp2ooDLBk2G8a8QHKVmb9UMk0Ijcq7RRZ8gANHexO962lTWLU8onQaFKwb4eSEgnExYyFKgHDRXHjvFeHLus2+KTVcnhrdWvPtnYT3VnH3OjpKEKLYcJo/1To8z9EGvvsNNmwCOBlozHF9QnXjpVbpj4U4OZoMajFFdSV+iPcdMgzD/c+jr2/kpyA== X-Mailgun-Sid: WyJkOTk2OCIsInB1YmxpYy1pbmJveEBzaW1hcmsuY2EiLCI2MDIzMjMiXQ== Received: from lists.lttng.org (lists.lttng.org [158.69.130.29]) by 0b4cb87810b2c098251a6e25be98a89095414dee5d237ee9cc2b70ca35f28dc7 with SMTP id 68e3fb05b8bc287729c6ceb5 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Mon, 06 Oct 2025 17:23:17 GMT X-Mailgun-Sending-Ip: 69.72.43.8 ARC-Filter: OpenARC Filter v1.2.1 lists.lttng.org 4cgR1c2T2Vz27hQ ARC-Seal: i=1; d=lists.lttng.org; s=arc1; a=rsa-sha256; cv=none; t=1759771396; b=eHtR1WTd5SfBIFKjzYlHnh+mCygLWdM4F08CKGxR2g9zqRWMkKln1zkp6tcZbIU4Vpks Ra7txMOOAu0CqPunTFiJQuB4q1ZMUpCj8EJDZabL084jkUVt2n83ouRDEayi+hhYR7vMQ Et3/N0fX5Z1pXtSK0zGUwVkRHbJlVVjGcY5lyjYtdvoiRki3WcSAaVQUCxCXhQRpsT1T8 roEyHWiiXZm8G0pSYeUMluKIwO4hSy58/alfxEs/I26EYM4IL3+cdqjHunbIJL3lQ+6+6 hKcVDkR+4U4BJ1u/iteKLqja7UUKzgThHG8UESH7KPsQHFJUW4ojE9ic0tA+bJMIEzg== ARC-Message-Signature: i=1; d=lists.lttng.org; s=arc1; a=rsa-sha256; c=relaxed/simple; t=1759771396; h=DKIM-Signature:MIME-Version:Date:Message-ID:Subject:To:From:From; bh=Z8zO7IF42bUMeQXqbW4fxPlVHBbqOZwWqo6Fhw2fH2I=; b=JBpTwZb+D9og14Udjgk09ABQHXHrwLPdxVz3F9SvYqM62D9Tifia6dPX91ELXcQPyQf5 9fUFNqDjrhOmlharmb6xiRTUJ+t/ojlijYK3stLEwVC2bwd7WaGHC1y3FcB66dMUzyYBI BUNa2NkFMPhrEwZhmYFAaNcwjXI2NUPqnznLrAb+SzoDPQX9IWiRr0fAZLcikjG+WpJEE sET22eV3SQYizwI5OicuHOTRRGPVps5+AJ5SVywgxF5Yjaiip+65qk85eqlWIaftOYQIx rV7/1SJg8xegbaKxTM3PNvrnkcsfGGYh4HhDFDdlI6LiUAxawKJlyz1zrJ6wlUKSOGQ== ARC-Authentication-Results: i=1; lists.lttng.org; arc=none smtp.remote-ip="::1" DKIM-Filter: OpenDKIM Filter v2.11.0 lists.lttng.org 4cgR1c2T2Vz27hQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1759771396; bh=Z8zO7IF42bUMeQXqbW4fxPlVHBbqOZwWqo6Fhw2fH2I=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=W/gu8XPhPiLBg9QvtU0tWpx8jw1obVONWntdq0PvxdIV6T1MPa4yMMto/OAg09xl8 udk//oSeog4HfBgJcxbwn/jGLvMtjTxZSioi4VijqqkY4OfCb1SIkinCpWxLJCwbMz KpmSB5Wgjd4j1NMvhC55bcFejFloSYxOc0zYU2GeBXlWTPu4gwR7velKJqFhWOOUC6 NXmc6EaIV2y2N968I6Cs5X5GAuYn2rgZW2hYBqedfuStlA+gfWEmz4ArIDrzzO+a3J i+ktzxXM/2N9j9yi2xdNLFn5SGgcsilYV0JxMNwpDvyDzNBfXGRjj9m4fj0mm1JwNZ dYWDpSOLaLQ+w== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4cgR1c2T2Vz27hQ; Mon, 6 Oct 2025 13:23:16 -0400 (EDT) ARC-Filter: OpenARC Filter v1.2.1 lists.lttng.org 4cgR1Z1bKmz27h9 DKIM-Filter: OpenDKIM Filter v2.11.0 lists.lttng.org 4cgR1Z1bKmz27h9 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lists.lttng.org (Postfix) with ESMTPS id 4cgR1Z1bKmz27h9 for ; Mon, 6 Oct 2025 13:23:13 -0400 (EDT) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-32eb45ab7a0so5679166a91.0 for ; Mon, 06 Oct 2025 10:23:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759771391; x=1760376191; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z8zO7IF42bUMeQXqbW4fxPlVHBbqOZwWqo6Fhw2fH2I=; b=MjAiYJV98/dOqP1T98fOtC2HfoI3xkPda/Re2itPfvOw3HUSHFxeb5PWwPc0266P/W UtQ9NnGq1sYcU7Jo67sUAndSIm7JMww+67n9oLCYCDy4OUIE0vPjETiFh22OyRyh/Q64 3V3LOmyY+a0Su7i38vNalfV5vsst3/3WPugknND16nYy6Z2BLDpPenO3OoggY6FM8Vlj LYmMcvK49SvvVRvRV2N+2A7ZHw/prvJNbQeiPXVxlfLMzFyZN/x+6e4lp+RfQrMGuBBe 5pn/BlaOdosBOquKr8mhSdQ0sj4oyd7k6Nq9YT2kCg6/X5ei+rlgYgFoNaZB0oe8iRwY +8DA== X-Gm-Message-State: AOJu0YxaAimDiyOlZuaq1JOxQmYxg+2sN0s2xrwBfncU4a5g9jLlfDSF +Q7A60ocZUIYfMLHJ+sv/hzM2Ag5Cv1aqde/O8TXFXTGfMLOZkbVLZVJjBW/ozr5QBCRZdd2lBP NrzWjUg70RpPTMmvLvn+4S6ijLVF/pvs= X-Gm-Gg: ASbGnctxLTb7QYMoNWnGaVpUMAuRFJkF1my7Ja3qJ1PgCdRT4Mie8KEbGyAYZAx26+j hmX8CmfdkM3G+biQGEYuBODtiHI6E0wAK7It1SaV3QbCafI66s4XySGpDApndLNCMMHFoSyTRi/ NfSCcoHvZ7ibq5BHwhTuYupsFhNuQ+kjxatFuFQ67YYSug8Xg37rZaqU0gjRTNxbsqcKcz6hivx zkjRBHsHtT1kGI91wQgbn06ORkejAxkn1fg/w== X-Google-Smtp-Source: AGHT+IFhub4dEA2E2vTq4hrlA64jdnW3pI12rm0vBFJSqJBJ+F2Lnauh7JIjQFCOhUalZNoP9Bnjm+JVs0v8yH0rES0= X-Received: by 2002:a17:90b:4f4e:b0:32e:e5:a90a with SMTP id 98e67ed59e1d1-339c26e495cmr17950707a91.8.1759771391071; Mon, 06 Oct 2025 10:23:11 -0700 (PDT) MIME-Version: 1.0 References: <870C2018-7321-4478-9609-9A75F99468A7@amazon.com> In-Reply-To: <870C2018-7321-4478-9609-9A75F99468A7@amazon.com> Date: Mon, 6 Oct 2025 10:22:34 -0700 X-Gm-Features: AS18NWDsNAVHhFjeDn9UPcSm-_KHAg55WLRtcEHYG9re4y_hOsJyOhYpRCxWb2s Message-ID: Subject: Re: Call stack context for user space trace points To: "Sunku, Sai" Cc: "lttng-dev@lists.lttng.org" Content-Type: multipart/alternative; boundary="000000000000a69871064080b4d0" 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: =?utf-8?q?Christophe_B=C3=A9dard_via_lttng-dev?= Reply-To: =?UTF-8?Q?Christophe_B=C3=A9dard?= Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" --000000000000a69871064080b4d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, The userspace callstack context is only available for the kernel domain. There are potential workarounds and solutions; take a look at the discussion in this mailing list thread from last year (hit "Next message"): https://lists.lttng.org/pipermail/lttng-dev/2024-December/030881.html Regards, Christophe On Mon, Oct 6, 2025 at 5:37=E2=80=AFAM Sunku, Sai via lttng-dev < lttng-dev@lists.lttng.org> wrote: > Hello, > > > > I have a complex, multithreaded benchmark that emits LTTng trace points a= t > various stages. I am trying to trace all malloc calls made by this > benchmark. I'm specifically trying to get malloc trace points also throug= h > LTTng so that I can identify when the malloc call was made relative to > other trace points from the benchmark. I also want to see the stack trace > for each malloc call so that I can identify where in the benchmark the > malloc call is coming from. > > > > If I preload the lttng libc wrapper with > `LD_PRELOAD=3Dliblttng-ust-libc-wrapper.so`, I'm able to see the trace po= ints > from malloc calls. > > > > But when I try to add the callstack-user context with this command `lttng > add-context --userspace --channel 1 --type callstack-user`, I get an erro= r > saying "Error: callstack-user: UST invalid context" > > > > I've successfully added user space stack traces for kernel trace points > with a similar command `lttng add-context --kernel --type callstack-user` > > > > Is the callstack-user context only available for kernel trace points? Is > there another way to get the call stack for malloc calls? > > > > Thank you, > > Sai Sunku > > > --000000000000a69871064080b4d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

The userspace callstack=C2=A0contex= t is only available for the kernel domain.

There a= re potential workarounds and solutions; take a look at the discussion in th= is mailing list thread from last year (hit "Next message"):=C2=A0= https://lists.lttng.org/pipermail/lttng-dev/2024-December/030881.htm= l

Regards,

Christophe=

On Mon, Oct 6, 2025 at 5:37=E2=80=AFAM Sunku,= Sai via lttng-dev <lttng-d= ev@lists.lttng.org> wrote:

Hello,

=C2=A0

I have a complex, multithreaded benchmark that emits= LTTng trace points at various stages. I am trying to trace all malloc call= s made by this benchmark. I'm specifically trying to get malloc trace p= oints also through LTTng so that I can identify when the malloc call was made relative to other trace points from= the benchmark. I also want to see the stack trace for each malloc call so = that I can identify where in the benchmark the malloc call is coming from.<= u>

=C2=A0

If I preload the lttng libc wrapper with `LD_PRELOAD= =3Dliblttng-ust-libc-wrapper.so`, I'm able to see the trace points from= malloc calls.

=C2=A0

But when I try to add the callstack-user context wit= h this command `lttng add-context --userspace --channel 1 --type callstack-= user`, I get an error saying "Error: callstack-user: UST invalid conte= xt"

=C2=A0

I've successfully added user space stack traces = for kernel trace points with a similar command `lttng add-context --kernel = --type callstack-user`

=C2=A0

Is the callstack-user context only available for ker= nel trace points? Is there another way to get the call stack for malloc cal= ls?

=C2=A0

Thank you,

Sai Sunku

=C2=A0

--000000000000a69871064080b4d0--