SWDEV-77148 - Add UberTrace support to PAL device

This PR adds UberTrace-based tracing support to ROCclr's PAL device class.
Legacy RGP-based tracing is still available and is the default.
If UberTrace support is enabled tool-side, this new code path will activate.

Change-Id: I268b2dcef70e850a50e2caef8355f38bf51d4641
Cette révision appartient à :
Daniel Livingston
2024-07-12 17:02:10 -04:00
Parent 8ee065c5bd
révision e550032d25
9 fichiers modifiés avec 518 ajouts et 43 suppressions
+2 -2
Voir le fichier
@@ -804,8 +804,8 @@ bool LightningProgram::setKernels(void* binary, size_t binSize, amd::Os::FileDes
size_t foffset, std::string uri) {
#if defined(USE_COMGR_LIBRARY)
// Collect the information about compiled binary, except the trap handler
if (!isNull() && (palDevice().rgpCaptureMgr() != nullptr) && !isTrapHandler()) {
apiHash_ = palDevice().rgpCaptureMgr()->AddElfBinary(
if (!isNull() && (palDevice().captureMgr() != nullptr) && !isTrapHandler()) {
apiHash_ = palDevice().captureMgr()->AddElfBinary(
binary, binSize, binary, binSize, codeSegGpu_->iMem(), codeSegGpu_->offset());
}