From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 32dsG3O0ZGD9DwAAWB0awg (envelope-from ) for ; Wed, 31 Mar 2021 13:42:11 -0400 Received: by simark.ca (Postfix, from userid 112) id 609A01EE1B; Wed, 31 Mar 2021 13:42:11 -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 B97671E789 for ; Wed, 31 Mar 2021 13:42:10 -0400 (EDT) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4F9YXy1PxSzSJs; Wed, 31 Mar 2021 13:42:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1617212530; bh=xKi5S422ge+AnG/Zcnpskxev6f0SoDXHejfXNMfxHVI=; 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=IUCDKptkt2hd1yO89tJyIFTv1X5Q45xBsAn4y6d+L2yCddyss4dlplaj5v53TvOaY vgCINi80omyq2Bm6rm+2x+lX69/AQGmdAmvBIsda2u/6MGkuRFhbNCc/v83Tc8iuxW tOtSTE668yKRlrb4EVSjS1BMwCBImEWVf186lPqmWswGcSnZqt2EKiXEjAdjFg05Ab mdZV+q5kMj1YMVURgQyoZ6JTveiJpyjww7u9qgFkhKzq26x/vJeV6+ccGjuD5hR6GV sU3801LLGGQWfrM/BiZVKyWltnPl/73UVvh273Qu0OeQDzhV4HxJzVuzA4ZaC6qA/K eYvbnYLjn9ubA== Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lists.lttng.org (Postfix) with ESMTPS id 4F9YXx39CMzSLl for ; Wed, 31 Mar 2021 13:42:09 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id EA7BF2F7A3C for ; Wed, 31 Mar 2021 13:42:03 -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 Y8FEfWW7l7lK; Wed, 31 Mar 2021 13:42:02 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id C32932F7C84; Wed, 31 Mar 2021 13:42:02 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com C32932F7C84 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 iw_Mvdbg3zZQ; Wed, 31 Mar 2021 13:42:02 -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 6D64D2F7333; Wed, 31 Mar 2021 13:42:02 -0400 (EDT) Date: Wed, 31 Mar 2021 13:42:01 -0400 To: Ramesh Errabolu Cc: lttng-dev@lists.lttng.org Message-ID: <20210331174201.GB28307@joraj-alpa> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [lttng-dev] Can't trace function calls 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, On Wed, Mar 31, 2021 at 10:51:03AM -0500, Ramesh Errabolu via lttng-dev wrote: > I am trying to capture the list of functions being called by an app. The > app relies on a couple of shared libraries (libhsa-runtime64.so and > libhsakmt.so). ok. > > My experiments all *FAIL *i.e. there are no log files of the output. Not sure what you mean here. But let's continue first. > The > link on lttng-ust-cyg-profile does not tell me where I can get them. Could you share the "link" in question? > Instrument the build files for the two libraries to allow function tracing > by the gcc/clang flags -finstrument-functions and run workload as follows > > - Instrument the build files for the two libraries to allow function > tracing by the gcc/clang flags *-finstrument-functions* and run workload > as follows Okai. I expect that you have read this: https://lttng.org/docs/v2.12/#doc-liblttng-ust-cyg-profile and this https://lttng.org/man/3/lttng-ust-cyg-profile/v2.12/ > I am using LTTng version Ubuntu: LTTng Stable 2.12 PPA > > - apt-get install lttng-tools > - apt-get install lttng-modules-dkms > - apt-get install liblttng-ust-dev > Looks good. > I noticed no kernel modules with substring "ltt" in it. Okai so this is where we need much more information. First of all, what are the lttng commands used for your experiments? (lttng create, lttng enable-channel, lttng enable-event...) Please provide a sample script of your experiments. Second, you are mostly performing userspace tracing here, lttng-modules ( the kernel tracer) might not even be needed here unless you also want to do kernel tracing. What do you mean by "there are no log files of the output."? LTTng produces traces encoded in CTF (Common Trace Format) that must be read by a reader (Babeltrace most of the time). Cheers -- Jonathan Rajotte-Julien EfficiOS _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev