kfdtest: add set exceptions enable base debug operation

Add set exceptions enabled debug option

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Change-Id: I6ee1769bbbb90a74074d8100974c4bfeabaf7f2c


[ROCm/ROCR-Runtime commit: 97fc25bb8d]
此提交包含在:
Jonathan Kim authored and Jonathan Kim committed 2023-08-08 16:01:03 -04:00
1 父節點 115ff68bda
當前提交 3bddb35c78
2 file changed
+14

No files matched your search

+13
查看文件
@@ -146,3 +146,16 @@ HSAKMT_STATUS BaseDebug::QueryDebugEvent(uint64_t *exceptions,
return result;
}
void BaseDebug::SetExceptionsEnabled(uint64_t exceptions)
{
struct kfd_ioctl_dbg_trap_args args = {0};
memset(&args, 0x00, sizeof(args));
args.pid = m_Pid;
args.op = KFD_IOC_DBG_TRAP_SET_EXCEPTIONS_ENABLED;
args.set_exceptions_enabled.exception_mask = exceptions;
hsaKmtDebugTrapIoctl(&args, NULL);
}
+1
查看文件
@@ -44,6 +44,7 @@ class BaseDebug {
HSAKMT_STATUS QueryDebugEvent(uint64_t *exceptions,
uint32_t *gpuId, uint32_t *queueId,
int timeoutMsec);
void SetExceptionsEnabled(uint64_t exceptions);
private:
unsigned int m_Pid;