Merged
Conversation
db5b6a1 to
b0ebf5b
Compare
- pfelf.USDTProbe is now a type alias for usdt.Probe - pfelf.ParseUSDTProbes() delegates to usdt.ParseProbes() via adapter - pfelf.ParseUSDTArguments/USDTSpecToBytes delegate to usdt package - pfelfELFReader adapter implements usdt.ELFReader interface - All consumers (interpreter, processmanager, gpu, coredump) continue working transparently via the type alias
f4c0dd3 to
3abfe7d
Compare
The arm64 libparcagpucupti.so (Triton Proton) dropped libcupti.so from
DT_NEEDED and now loads it via runtime dlopen/dlsym. The old empty stub
had no CUPTI symbols, so dlsym("cuptiGetVersion") threw "Failed to load
libcupti.so".
Build mock libcupti.so and libcuda.so from the parcagpu repo's test
sources (test/mock_cupti.c, test/mock_cuda.c) which provide all CUPTI/
CUDA API functions that libparcagpucupti.so resolves at runtime. Minimal
type-definition headers are included so the mocks compile without the
CUDA SDK.
Set TRITON_CUPTI_LIB_PATH in the QEMU init script so the library finds
the mocks via the explicit path it checks first.
Read the registered CUPTI callbacks from the mock library's globals via
dlsym after InitializeInjection, since the mock has its own copy of
these symbols separate from the test binary.
InitializeInjection in libparcagpucupti.so is a singleton — it only
registers CUPTI callbacks on the first call. When TestCUDAEndToEndSingleShot
cleaned up and TestCUDAEndToEndMultiProbe called init_parcagpu again, the
singleton returned 1 without re-registering, leaving callback pointers NULL.
Load the library once in TestMain and clean up once at exit.
brancz
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor now that most of the usdt code has been moved to a separate repo.