Aubstream header update

Change-Id: I68573223715e5cbb6a308b88d9bae35741ef9984
This commit is contained in:
Hoppe, Mateusz
2019-02-23 01:35:37 +01:00
committed by sys_ocldev
parent d79f1afdc2
commit 63ebe252eb
6 changed files with 36 additions and 33 deletions

View File

@@ -28,10 +28,10 @@ AubCenter::AubCenter(const HardwareInfo *pHwInfo, bool localMemoryEnabled, const
aubStreamMode = getAubStreamMode(aubFileName, type);
if (DebugManager.flags.AubDumpAddMmioRegistersList.get() != "unk") {
aub_stream::injectMMIOList = AubHelper::getAdditionalMmioList();
aub_stream::injectMMIOList(AubHelper::getAdditionalMmioList());
}
aub_stream::tbxServerIp = DebugManager.flags.TbxServer.get();
aub_stream::tbxServerPort = DebugManager.flags.TbxPort.get();
aub_stream::setTbxServerIp(DebugManager.flags.TbxServer.get());
aub_stream::setTbxServerPort(DebugManager.flags.TbxPort.get());
aubManager.reset(createAubManager(pHwInfo->pPlatform->eProductFamily, devicesCount, memoryBankSize, localMemoryEnabled, aubStreamMode));
}
@@ -57,6 +57,12 @@ AubCenter::AubCenter() {
subCaptureManager = std::make_unique<AubSubCaptureManager>("");
}
AubCenter::~AubCenter() {
if (DebugManager.flags.UseAubStream.get()) {
aub_stream::injectMMIOList(MMIOList{});
}
}
uint32_t AubCenter::getAubStreamMode(const std::string &aubFileName, uint32_t csrType) {
uint32_t mode = aub_stream::mode::aubFile;