Instrumentation refactoring

Use bool instead of int where it should be.
Tweak naming.
Removed unused members

Change-Id: I468be28d78e9da7c7fa1632e362ed077929fb91a
This commit is contained in:
Artur Harasimiuk
2018-01-05 13:35:03 +01:00
committed by sys_ocldev
parent dd601ff73a
commit 3883f790cc
19 changed files with 196 additions and 139 deletions

View File

@ -444,10 +444,10 @@ bool CommandQueue::setPerfCountersEnabled(bool perfCountersEnabled, cl_uint conf
perfCounters->shutdown();
return false;
}
InstrReadRegsCfg *pUserCounters = &perfConfigurationData->readRegs;
for (uint32_t i = 0; i < pUserCounters->regsCount; ++i) {
InstrReadRegsCfg *pUserCounters = &perfConfigurationData->ReadRegs;
for (uint32_t i = 0; i < pUserCounters->RegsCount; ++i) {
perfCountersUserRegistersNumber++;
if (pUserCounters->reg[i].bitSize > 32) {
if (pUserCounters->Reg[i].BitSize > 32) {
perfCountersUserRegistersNumber++;
}
}