libhsakmt: update dbg enable trap and add query debug events
Add data out for enable trap to return poll fd to user space. Add query debug events interface. Change-Id: Ia4afde1cf167e6aa61d502380a8b329ee89d5f44 Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
This commit is contained in:
committed by
Jonathan Kim
parent
632ad3a749
commit
836dfd0752
@@ -866,6 +866,18 @@ typedef enum _HSA_EVENTTYPE
|
||||
HSA_EVENTTYPE_TYPE_SIZE = 0xFFFFFFFF
|
||||
} HSA_EVENTTYPE;
|
||||
|
||||
|
||||
//
|
||||
// Definitions for types of pending debug events
|
||||
//
|
||||
typedef enum _HSA_DEBUG_EVENT_TYPE
|
||||
{
|
||||
HSA_DEBUG_EVENT_TYPE_NONE = 0,
|
||||
HSA_DEBUG_EVENT_TYPE_TRAP = 1,
|
||||
HSA_DEBUG_EVENT_TYPE_VMFAULT = 2,
|
||||
HSA_DEBUG_EVENT_TYPE_TRAP_VMFAULT = 3
|
||||
} HSA_DEBUG_EVENT_TYPE;
|
||||
|
||||
typedef HSAuint32 HSA_EVENTID;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user