SWDEV-445864: SWDEV-445865: Update page migration events (#16)
* Update kfd ioctl header - Adds new event for dropped events - Mirrors kernel update by Philip Yang * Add error code for page migration events - Adds support for new error code field for page migration end events - Page migration end event is now generated for migration failure - Error code is zero for successful migration * Add dropped event SMI event - New event type indicates if events were dropped - Events are dropped if the buffer is full
This commit is contained in:
@@ -331,7 +331,8 @@ tool_tracing_callback(rocprofiler_context_id_t context,
|
||||
<< ", " << as_hex(arg.page_migrate_end.end_addr) << ", "
|
||||
<< arg.page_migrate_end.from_agent.handle << ", "
|
||||
<< arg.page_migrate_end.to_agent.handle << ", "
|
||||
<< arg.page_migrate_end.trigger << ")";
|
||||
<< arg.page_migrate_end.trigger << ", " << arg.page_migrate_end.error_code
|
||||
<< ")";
|
||||
break;
|
||||
}
|
||||
case ROCPROFILER_PAGE_MIGRATION_PAGE_FAULT_START:
|
||||
@@ -373,6 +374,12 @@ tool_tracing_callback(rocprofiler_context_id_t context,
|
||||
<< ")";
|
||||
break;
|
||||
}
|
||||
case ROCPROFILER_PAGE_MIGRATION_DROPPED_EVENT:
|
||||
{
|
||||
const auto& arg = record->args;
|
||||
info << ", dropped_event=(" << arg.dropped_event.dropped_events_count << ")";
|
||||
break;
|
||||
}
|
||||
case ROCPROFILER_PAGE_MIGRATION_NONE:
|
||||
case ROCPROFILER_PAGE_MIGRATION_LAST:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user