Skip to content

Add memory buffer for trap handler #10

@Kirpich30000

Description

@Kirpich30000

Additional optional parameters are required for [trap-handler]:

  • size (buf size in bytes) if set allocate memory buffer for trap-handler
  • dump-path (file path) if set, save the contents of the trap handler buffer to a file

If size is set, the appropriate buffer info should be passed to hsaKmtSetTrapHandler():

hsaKmtSetTrapHandler(
HSAuint32 NodeId, //IN
void* TrapHandlerBaseAddress, //IN
HSAuint64 TrapHandlerSizeInBytes, //IN
void* TrapBufferBaseAddress, //IN
HSAuint64 TrapBufferSizeInBytes //IN
);

Please also fix passing of TrapHandlerSizeInBytes argument

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions