src: add debug API to support GPU core dump
Functions to API added to extract the following information from KFD Runtime information, device info and queues snapshot. Signed-off-by: Alex Sierra <Alex.Sierra@amd.com> Change-Id: If995ecc54497ab61189bb0f209c64af0bbb0f56f
Ta zmiana jest zawarta w:
1 rodzic
5e0a32d7b3
złożenie
0cbf26c148
3 plików zmienionych
+205
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -734,6 +734,46 @@ hsaKmtGetRuntimeCapabilities(
|
||||
HSAuint32 *caps_mask // OUT
|
||||
);
|
||||
|
||||
/**
|
||||
Enable debug trap.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgEnable(
|
||||
void **runtime_info, //Out
|
||||
HSAuint32 *data_size //Out
|
||||
);
|
||||
|
||||
/**
|
||||
Disable debug trap.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgDisable(void);
|
||||
|
||||
/**
|
||||
Get device snapshot.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgGetDeviceData(
|
||||
void **data, //Out
|
||||
HSAuint32 *n_entries, //Out
|
||||
HSAuint32 *entry_size //Out
|
||||
);
|
||||
|
||||
/**
|
||||
Get queues snapshot.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgGetQueueData(
|
||||
void **data, //Out
|
||||
HSAuint32 *n_entries, //Out
|
||||
HSAuint32 *entry_size, //Out
|
||||
bool suspend_queues //In
|
||||
);
|
||||
|
||||
/**
|
||||
Gets GPU and CPU clock counters for particular Node
|
||||
*/
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika