[lttng-dev] Can't trace function calls

Ramesh Errabolu ramesh.errabolu at gmail.com
Wed Mar 31 11:51:03 EDT 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20210331/8b26d3a4/attachment.htm>


More information about the lttng-dev mailing list