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

wrap: Do not print "dlopen is called for '(null)'" #1912

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

honggyukim
Copy link
Collaborator

If dlopen is called with (null) for the filename, it does nothing so it's not useful to print a debug message for such case.

But the current implementation shows too many message as follows.

  $ sudo apt install vulkan-tools

  $ uftrace record -P. -la -v vkcube
      ...
  wrap: dlopen is called for 'libVkLayer_MESA_device_select.so'
  wrap: dlopen is called for '(null)'
  wrap: dlopen is called for '(null)'
      (... repeated 18 more times ...)
  mcount: shmem_finish: tid: 10312 seqnum = 2 curr = 0, nr_buf = 2 max_buf = 2

This patch is to avoid printing these unhelpful messages.

If dlopen is called with (null) for the filename, it does nothing so
it's not useful to print a debug message for such case.

But the current implementation shows too many message as follows.

  $ sudo apt install vulkan-tools

  $ uftrace record -P. -la -v vkcube
      ...
  wrap: dlopen is called for 'libVkLayer_MESA_device_select.so'
  wrap: dlopen is called for '(null)'
  wrap: dlopen is called for '(null)'
      (... repeated 18 more times ...)
  mcount: shmem_finish: tid: 10312 seqnum = 2 curr = 0, nr_buf = 2 max_buf = 2

This patch is to avoid printing these unhelpful messages.

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 6ea5ba2 into namhyung:master Apr 11, 2024
3 checks passed
@honggyukim honggyukim deleted the check/misc-fix2 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.

None yet

2 participants