Skip to content

Add dlopen library locator#1646

Merged
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:add-dlopen-library-locator
Feb 20, 2026
Merged

Add dlopen library locator#1646
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:add-dlopen-library-locator

Conversation

@elezar
Copy link
Member

@elezar elezar commented Feb 10, 2026

@coveralls
Copy link

coveralls commented Feb 12, 2026

Pull Request Test Coverage Report for Build 22172411136

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 16 of 33 (48.48%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 39.156%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/lookup/dlopen.go 14 31 45.16%
Totals Coverage Status
Change from base Build 22142409534: 0.005%
Covered Lines: 5770
Relevant Lines: 14736

💛 - Coveralls

@elezar elezar force-pushed the add-dlopen-library-locator branch 4 times, most recently from 6f73162 to 369cc05 Compare February 18, 2026 14:06
@elezar elezar requested a review from klueska February 18, 2026 14:07
@elezar elezar marked this pull request as ready for review February 18, 2026 14:07

// NewDlopenLocator creats a locator that can be used for locating libraries
// through the dlopen mechanism.
func (f *Factory) NewDlopenLocator() Locator {
Copy link
Contributor

@cdesiniotis cdesiniotis Feb 18, 2026

Choose a reason for hiding this comment

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

Question -- do we want to make this method private initially? We recently made the constructor for the ldcache locator private in 8e35c22

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's a good point. The initial implementation of this predates the refactor (It was one of the motivators for the refactor). I didn't make it private after the rebase.

This change adds a library locator that uses dlopen to try to find
a library.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the add-dlopen-library-locator branch from 369cc05 to 633ddf3 Compare February 19, 2026 07:22
@elezar elezar merged commit 3767595 into NVIDIA:main Feb 20, 2026
16 checks passed
@elezar elezar deleted the add-dlopen-library-locator branch February 20, 2026 08:46
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.

3 participants