From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id odMAErNbW2AXYgAAWB0awg (envelope-from ) for ; Wed, 24 Mar 2021 11:33:07 -0400 Received: by simark.ca (Postfix, from userid 112) id 3794C1EF78; Wed, 24 Mar 2021 11:33:07 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 84D801E54D for ; Wed, 24 Mar 2021 11:33:06 -0400 (EDT) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4F5C1F6rNLzMLY; Wed, 24 Mar 2021 11:33:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1616599986; bh=nq/s8MgBBjwGWa4mqTsdFWYiQ7vYe8ionneeIj8C7YM=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=fnsra7LBaDjeTiHQCHt+MMbGp3wiWMkuc1qf3UmWphI3iA6JYuxL/n+29WU9u0a7s SJtWF0I7eFquQ3p8m60mfdwGHd3gOF8eLIkjcZ9k9CXzv3A/BtlHmzmJLBAdE/Fjtn 9yMqpHnMBA+RHvzegpwrIEo2Vf1KITXdc8aJjJs885RkTupCBcVN6Fk7DbIJHMuaBh LA1HCQ/+AhrplbPS9bAJPFa+P/FYnIiTMkJrrw+7OjtAL9dTqVLrnnmXHZzlXXo+Kq 3Z0/934uJVgog65GbIVeNX97zs48b7FxuCwa6rWXjfdNOqXMxESCOcOrFxAna7nklD QviW+z4+JpsMg== Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lists.lttng.org (Postfix) with ESMTPS id 4F5C1D3YPjzM6T for ; Wed, 24 Mar 2021 11:33:04 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 06AD4248EEC for ; Wed, 24 Mar 2021 11:32:58 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8TuuZRH1owJN; Wed, 24 Mar 2021 11:32:56 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id C6A6D2493B3; Wed, 24 Mar 2021 11:32:56 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com C6A6D2493B3 X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tnhlUay2TyE5; Wed, 24 Mar 2021 11:32:56 -0400 (EDT) Received: from joraj-alpa (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id 793762493B2; Wed, 24 Mar 2021 11:32:56 -0400 (EDT) Date: Wed, 24 Mar 2021 11:32:55 -0400 To: MONTET Julien Cc: lttng-dev Message-ID: <20210324153255.GC344120@joraj-alpa> References: <20210324142540.GB344120@joraj-alpa> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [lttng-dev] Issues on basic LTTng trace userspace (tutorial) X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jonathan Rajotte-Julien via lttng-dev Reply-To: Jonathan Rajotte-Julien Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Hi Julien, Please always keep the mailing list in CC. > I am running 'lttng list --userspace' with the application running in another terminal (like the tutorial, and also with a while that loop on tracepoint(...). ok. > > You can find here the Ubuntu paste : Ubuntu Pastebin Based on this, it seems like lttng-ust is unable to find the socket for a sessiond either locally (for your user) [1] or a global one (root lttng-sessiond) [2]. [1] 43: libust[207688/207690]: Info: sessiond not accepting connections to local apps socket (in ust_listener_thread() at lttng-ust-comm.c:1822) [2] 45: libust[207688/207689]: Info: sessiond not accepting connections to global apps socket (in ust_listener_thread() at lttng-ust-comm.c:1822) Since you installed via the PPA, a systemd service control service is installed that control a global (root) lttng-sessiond. First let's stop it. sudo systemctl stop lttng-sessiond.service Then in a console, again use a paste service to share the content of /tmp/lttng-sessiond.log with us sudo lttng-sessiond -vvv > /tmp/lttng-sessiond.log 2>&1 In another console, while the lttng-sessiond process is running, please have a look at the /var/run/lttng directory: ls -la /var/run/lttng/ Again use a paste service to share this with us. Also can you provide the output of the following while using the user you are normally using to play with lttng: groups You can also try to spawn a local lttng-sessiond for the user. Note that a global and many local lttng-sessiond can coexist but for the sake of debugging we will only have one of each at a time. Kill the root lttng-sessiond we started earlier and start a local one: lttng-sessiond -vvv > /tmp/lttng-sessiond-local.log 2>&1 Note the absence of `sudo` here. Again please share the content of /tmp/lttng-sessiond-local.log via a paste service. >From there you can retry your experiment with the `lttng list` command. Cheers > The command lines entered to compile are quite the same, I just had to modify : > this : gcc -o hello hello.o hello-tp.o > to this : gcc -o hello hello.o hello-tp.o -L/usr/local/lib -llttng-ust -ldl As per the doc [3]: gcc -o hello hello.o hello-tp.o -llttng-ust -ldl [3] https://lttng.org/docs/v2.12/#doc-tracing-your-own-user-application Bullet point #6 Cheers _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev