namhyung / uftrace

Function graph tracer for C/C++/Rust/Python
https://uftrace.github.io/slide/
GNU General Public License v2.0
2.92k stars 419 forks source link

utils: Lower the debug level after dwfl_module_getdwarf #1911

Closed honggyukim closed 2 months ago

honggyukim commented 3 months ago

The current return value check after dwfl_module_getdwarf shows too many repeated debug messages as follows.

  $ sudo apt install vulkan-tools

  $ uftrace record -P. -la -v vkcube
  uftrace: running uftrace v0.15.2-32-g1919a ( x86_64 dwarf python3 luajit tui perf sched dynamic kernel )
  uftrace: checking binary /usr/bin/vkcube
  uftrace: removing uftrace.data.old directory
  uftrace: using /home/honggyu/usr/lib/uftrace/libmcount.so library for tracing
  uftrace: creating 2 thread(s) for recording
  mcount: initializing mcount library
  symbol: cannot find debug file: No DWARF information found
  symbol: cannot find debug file: No DWARF information found
      (... repeated about 40 times ...)
  symbol: cannot find debug file: No DWARF information found
  symbol: cannot find debug file: No DWARF information found
  dwarf: prepare debug info
  dynamic: dynamic patch type: vkcube: 0 (none)
  plthook: setup nested PLT hooking "/usr/bin/vkcube"
  mcount: mcount setup done

so it'd be better to lower the debug level to pr_dbg2.

Fixed: #1905