Add functions to get the kfd debugger version info
To support adding new features to the kfd debugger, and not break functionality, we need to be able to check the kfd debugger support version info from the kernel. Change-Id: Icd88e4edab8430c35eaed588e62d892c1b5c62ec Signed-off-by: Philip Cox <Philip.Cox@amd.com>
This commit is contained in:
@@ -917,6 +917,36 @@ hsaKmtSetWaveLaunchMode(
|
||||
HSA_DBG_WAVE_LAUNCH_MODE WaveLaunchMode //IN
|
||||
);
|
||||
|
||||
/**
|
||||
* Get the major and minor version of the kernel debugger support.
|
||||
*
|
||||
* Returns:
|
||||
* - HSAKMT_STATUS_SUCCESS if successful.
|
||||
*
|
||||
* - HSAKMT_STATUS_INVALID_HANDLE if NodeId is invalid.
|
||||
*
|
||||
* - HSAKMT_STATUS_NOT_SUPPORTED if debug trap not supported for NodeId.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtGetKernelDebugTrapVersionInfo(
|
||||
HSAuint32 *Major, //Out
|
||||
HSAuint32 *Minor //Out
|
||||
);
|
||||
|
||||
/**
|
||||
* Get the major and minor version of the thunk debugger support.
|
||||
*/
|
||||
void
|
||||
HSAKMTAPI
|
||||
hsaKmtGetThunkDebugTrapVersionInfo(
|
||||
HSAuint32 *Major, //Out
|
||||
HSAuint32 *Minor //Out
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Set a debug memory access watch point. A memory access of the kind
|
||||
specified by WatchMode to an matching address will cause the trap
|
||||
|
||||
Reference in New Issue
Block a user