mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
fix: generate per process aub file name by default
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
465330ee6f
commit
03d87d27ef
@@ -37,7 +37,7 @@ DECLARE_DEBUG_VARIABLE(bool, UseAubStream, true, "Use aubstream for aub dumping"
|
||||
DECLARE_DEBUG_VARIABLE(bool, AUBDumpAllocsOnEnqueueReadOnly, false, "Force dumping buffers and images on clEnqueueReadBuffer/Image only (blocking calls)")
|
||||
DECLARE_DEBUG_VARIABLE(bool, AUBDumpAllocsOnEnqueueSVMMemcpyOnly, false, "Force dumping allocations on clEnqueueSVMMemcpy only (blocking calls)")
|
||||
DECLARE_DEBUG_VARIABLE(bool, AUBDumpForceAllToLocalMemory, false, "Force placing every allocation in local memory address space")
|
||||
DECLARE_DEBUG_VARIABLE(bool, GenerateAubFilePerProcessId, false, "Generate aub file with process id")
|
||||
DECLARE_DEBUG_VARIABLE(bool, GenerateAubFilePerProcessId, true, "Generate aub file with process id")
|
||||
DECLARE_DEBUG_VARIABLE(bool, SetBufferHostMemoryAlwaysAubWritable, false, "Make buffer host memory allocation always uploaded to AUB/TBX")
|
||||
|
||||
/*DEBUG FLAGS*/
|
||||
|
||||
@@ -31,7 +31,7 @@ UseAubStream = 1
|
||||
AUBDumpAllocsOnEnqueueReadOnly = 0
|
||||
AUBDumpAllocsOnEnqueueSVMMemcpyOnly = 0
|
||||
AUBDumpForceAllToLocalMemory = 0
|
||||
GenerateAubFilePerProcessId = 0
|
||||
GenerateAubFilePerProcessId = 1
|
||||
SetBufferHostMemoryAlwaysAubWritable = 0
|
||||
EnableSWTags = 0
|
||||
DumpSWTagsBXML = 0
|
||||
|
||||
@@ -961,13 +961,16 @@ HWTEST2_F(AubFileStreamTests, givenAubCommandStreamReceiverWhenCreateFullFilePat
|
||||
EXPECT_NE(std::string::npos, fullName.find("2tx"));
|
||||
}
|
||||
|
||||
HWTEST_F(AubFileStreamTests, givenAubCommandStreamReceiverWhenCreateFullFilePathIsCalledThenFileNameIsExtendedWithRootDeviceIndex) {
|
||||
HWTEST_F(AubFileStreamTests, givenDisabledGeneratingPerProcessAubNameAndAubCommandStreamReceiverWhenCreateFullFilePathIsCalledThenFileNameIsExtendedWithRootDeviceIndex) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.GenerateAubFilePerProcessId.set(0);
|
||||
|
||||
uint32_t rootDeviceIndex = 123u;
|
||||
auto fullName = AUBCommandStreamReceiver::createFullFilePath(*defaultHwInfo, "aubfile", rootDeviceIndex);
|
||||
EXPECT_NE(std::string::npos, fullName.find("_123_aubfile.aub"));
|
||||
}
|
||||
|
||||
HWTEST_F(AubFileStreamTests, givenGenerateAubFilePerProcessIdDebugFlagAndAubCommandStreamReceiverWhenCreateFullFilePathIsCalledThenFileNameIsExtendedRootDeviceIndex) {
|
||||
HWTEST_F(AubFileStreamTests, givenEnabledGeneratingAubFilePerProcessIdDebugFlagAndAubCommandStreamReceiverWhenCreateFullFilePathIsCalledThenFileNameIsExtendedRootDeviceIndex) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
|
||||
debugManager.flags.GenerateAubFilePerProcessId.set(1);
|
||||
@@ -977,6 +980,13 @@ HWTEST_F(AubFileStreamTests, givenGenerateAubFilePerProcessIdDebugFlagAndAubComm
|
||||
EXPECT_NE(std::string::npos, fullName.find(strExtendedFileName.str()));
|
||||
}
|
||||
|
||||
HWTEST_F(AubFileStreamTests, givenAndAubCommandStreamReceiverWhenCreateFullFilePathIsCalledThenFileNameIsExtendedRootDeviceIndexAndPid) {
|
||||
auto fullName = AUBCommandStreamReceiver::createFullFilePath(*defaultHwInfo, "aubfile", 1u);
|
||||
std::stringstream strExtendedFileName;
|
||||
strExtendedFileName << "_1_aubfile_PID_" << SysCalls::getProcessId() << ".aub";
|
||||
EXPECT_NE(std::string::npos, fullName.find(strExtendedFileName.str()));
|
||||
}
|
||||
|
||||
HWTEST_F(AubFileStreamTests, givenAubCommandStreamReceiverWithAubManagerWhenInitFileIsCalledThenCommentWithNonDefaultFlagsAreAdded) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user