SWDEV-286150 - Add detailed thread trace support in RGP

- Create hash values for binaries
- Add the binaries into RGP trace
- Add corresponding hash value for every dispatch

Change-Id: I2c3ce004d69f37d0d46bc4744e12f24273517f5e
This commit is contained in:
German Andryeyev
2021-11-03 16:24:04 -04:00
parent b2de4f625c
commit 2a298f2ec3
5 changed files with 110 additions and 26 deletions
+4
View File
@@ -200,6 +200,9 @@ class HSAILProgram : public device::Program {
return executable_->GetSymbol(symbol_name, agent);
}
//! Returns API hash value of the program for RGP thread trace
uint64_t ApiHash() const { return apiHash_; }
protected:
bool saveBinaryAndSetType(type_t type);
@@ -246,6 +249,7 @@ class HSAILProgram : public device::Program {
//!< in the program by individual kernel
uint maxVgprs_; //!< Maximum number of VGPR(s) used
//!< in the program by individual kernel
uint64_t apiHash_ = 0; //!< API hash value for RGP thread trace
std::list<Sampler*> staticSamplers_; //!< List od internal static samplers