libhsakmt: add host trap send

Adding host trap send command.

Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
Change-Id: I291c13f5905e00bc6685a980284a6abd0c98da78
此提交包含在:
Jonathan Kim authored and Kent Russell committed 2021-02-23 12:20:29 -05:00
1 父節點 97ae33f9de
當前提交 f398d6d204
4 file changed
+41

No files matched your search

+21
查看文件
@@ -731,3 +731,24 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtClearAddressWatch(
NULL);
return result;
}
HSAKMT_STATUS
HSAKMTAPI
hsaKmtSendHostTrap(
HSAuint32 NodeId, //IN
HSAuint32 Pid //IN
)
{
int result;
result = debug_trap(NodeId,
KFD_IOC_DBG_TRAP_SEND_HOST_TRAP,
0,
0,
0,
Pid,
0,
NULL);
return result;
}
+1
查看文件
@@ -61,6 +61,7 @@ hsaKmtEnableDebugTrap;
hsaKmtEnableDebugTrapWithPollFd;
hsaKmtDisableDebugTrap;
hsaKmtQueryDebugEvent;
hsaKmtSendHostTrap;
hsaKmtGetQueueSnapshot;
hsaKmtSetWaveLaunchTrapOverride;
hsaKmtSetWaveLaunchMode;