From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CP3GOJCaZGDbDQAAWB0awg (envelope-from ) for ; Wed, 31 Mar 2021 11:51:44 -0400 Received: by simark.ca (Postfix, from userid 112) id E6C711EE1B; Wed, 31 Mar 2021 11:51:44 -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,HTML_MESSAGE,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)) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7E16D1EE0E for ; Wed, 31 Mar 2021 11:51:43 -0400 (EDT) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4F9W5W0vsTzSFX; Wed, 31 Mar 2021 11:51:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1617205903; bh=FV/ymknzh1FmhUIGop1vw2p2zbUcDYEyyLGJBZ7mYhI=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=M79VMDy8FJSYjc5Us0pq9OgknaDeKcPSJ+NUuPSHzzdtMu75Sb75F91KC0OS1VDTP /0UANltHf8RFQTHt4ZpM4tn43FiAq8bZHzqOLTWyIn1eie+sK8TxgzMcYXah0YYmtN 5ZyhOmruEIF/XP3JgyDbwSPmQ+HLI2RWYJpXZQRit3aOWe4YwbTibwUuXcBImeEKfd wwFbifz98gv32HcWT97v4wlP2QvFZ6wFc3xfre46zXaWYqFzzxz05GJR3vb7FabzmM JRWgwpcvM8LMPWJVQ/wlr2+BgGircSq4Y021a3nzasPiayIBo45MYrnCJNAzvzAYLy mF6Id+NiiMqFA== Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lists.lttng.org (Postfix) with ESMTPS id 4F9W5V08h6zSFW for ; Wed, 31 Mar 2021 11:51:41 -0400 (EDT) Received: by mail-lj1-x236.google.com with SMTP id 184so24406953ljf.9 for ; Wed, 31 Mar 2021 08:51:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0gZHdAoCMakciXjaGl4gjLkLrGBiT0Sa16WPK1DHa0M=; b=IKH5xmEsE2HrZVd2pweiQpbre5G5rWTGH3NfuU1BmaOrZ34OxYZm0KcS7uMnr+WU+s LAFa0Y+9El3GHRrRfz3E3pomz9UmkW1hS9IrCp1PuaLim7/KeYRGZh4Ig666673vlkcZ 29YnwFKukgv7hIH6Csg6lFS2ft/+5ZA3ttRr4IlzWREvbbyJuG9nwCliMf91v6mVygjQ uDIfdKvWlI3sn1C+VPNMUwhO04k61jh3v+lYn7vJVMkh9L+2gQp/lBuGrcrRfvlqVwop yC6ls5/Wfxovmx2pevhIp+Pj6+QKYs2eSOuWiFLFk0J3no1FCj3NAnZtKvJkCBh4Evc3 eBlQ== X-Gm-Message-State: AOAM532wAFsmgPLH/uvzbFpdcN33CgNpbJS3sOf8XlXYk5EbSAz42IlO KQh3gJMwJCKQ93zTYbTwAIL/RKvFWWV/ks28RalrEmacSRSRUQ== X-Google-Smtp-Source: ABdhPJwd4snDEZSsAZcaEmgWbV75Cv8SB2kK4SYRNObVA3fy1cFXLKRKZEaMQt0jjjT6DdOZiDQRcXHHZ4Xu1EVcEPE= X-Received: by 2002:a2e:b6c6:: with SMTP id m6mr2428406ljo.411.1617205899853; Wed, 31 Mar 2021 08:51:39 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 31 Mar 2021 10:51:03 -0500 Message-ID: To: lttng-dev@lists.lttng.org Subject: [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: Ramesh Errabolu via lttng-dev Reply-To: Ramesh Errabolu Content-Type: multipart/mixed; boundary="===============0345384555615401094==" Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" --===============0345384555615401094== Content-Type: multipart/alternative; boundary="00000000000030839c05bed717f1" --00000000000030839c05bed717f1 Content-Type: text/plain; charset="UTF-8" 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). My experiments all *FAIL *i.e. there are no log files of the output. The link on lttng-ust-cyg-profile does not tell me where I can get them. 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 - LD_PRELOAD=liblttng-ust-cyg-profile.so ./rocminfo - Instrument the application as well for the gcc/clang flag along with the two libs - LD_PRELOAD=liblttng-ust-cyg-profile.so ./rocminfo 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 I noticed no kernel modules with substring "ltt" in it. Any help is appreciated. Regards, Ramesh --00000000000030839c05bed717f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 a= nd libhsakmt.so).

My experiments all FAIL i.e. there are no = log files of the output. The link on lttng-ust-cyg-profile does not tell me= where I can get them.
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 lib= raries to allow function tracing by the gcc/clang flags=C2=A0-finstrumen= t-functions=C2=A0and run workload as follows
    • LD_PRELOAD=3Dl= iblttng-ust-cyg-profile.so =C2=A0 ./rocminfo
  • Instrument the ap= plication as well for the gcc/clang flag along with the two libs
  • LD_PRELOAD=3Dliblttng-ust-cyg-profile.so =C2=A0 ./rocminfo
<= /ul>
I am using LTTng version=C2=A0Ubuntu: LTTng Stable 2.12 PPA
  • apt-get in= stall lttng-tools
  • apt-get install lttng-modules-dkms
  • apt-ge= t install liblttng-ust-dev
I noticed no kernel modules with sub= string "ltt" in it.

Any help is appreciated.
=
Regards,
Ramesh
--00000000000030839c05bed717f1-- --===============0345384555615401094== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============0345384555615401094==--