Trace view presents wrong function without -g information

Describe the bug

Screenshot_2023-05-10_at_12.28.00_PM Database : roctx-without-debuginfo.tar.xz

Expected behavior

Screenshot_2023-05-10_at_12.26.41_PM Database: roctx-with-debuginfo.tar.xz

Platform (please complete the following information): ufront.cs

  • OS: [e.g. Windows, Linux, MacOS] Linux
  • Architecture [e.g. x86, ppc, arm] x86_64
  • Version [e.g. 22] 23.05 pre-release

Additional context

If you really want to reproduce, check out HPCToolkit branch mr-label-regions hpctoolkit!826 (closed) then build.

Source file is at ~wp11/work/testcodes/cpp-hip-dadd. To build:

module load rocm/5.4.3
hipcc dadd.hip.cpp -L$ROCM_PATH/lib -lroctx64

To run and collect measurement directory:

hpcrun -e REALTIME@500 -e gpu=amd -t ./a.out 1000000