Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils: Lower the debug level after dwfl_module_getdwarf #1911

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

honggyukim
Copy link
Collaborator

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

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: namhyung#1905
Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
Copy link
Owner

@namhyung namhyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@namhyung namhyung merged commit 1d6e832 into namhyung:master Apr 11, 2024
3 checks passed
@honggyukim honggyukim deleted the check/misc-fix1 branch April 11, 2024 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

too many "symbol: cannot find debug file: No DWARF information found" messages
2 participants