aqlprofile API: _aqlprofile_start() returns required profile buffer sizes if undersized

Change-Id: Ib14b2cb2e7e2026c3af0b7bd2f08f51e48e598b2


[ROCm/ROCR-Runtime commit: bb8eaf3ac8]
Cette révision appartient à :
Evgeny
2017-11-08 19:57:44 -06:00
Parent 76c28f38c4
révision fd81986bb2
2 fichiers modifiés avec 30 ajouts et 1 suppressions
+6
Voir le fichier
@@ -763,9 +763,15 @@ hsa_status_t hsa_ven_amd_aqlprofile_validate_event(
return core::Runtime::runtime_singleton_->extensions_.aqlprofile_api.hsa_ven_amd_aqlprofile_validate_event_fn(agent, event, result);
}
#ifndef HSA_AQLPROFILE_START_NEW_API
hsa_status_t hsa_ven_amd_aqlprofile_start(
const hsa_ven_amd_aqlprofile_profile_t* profile, // [in] profile contex object
hsa_ext_amd_aql_pm4_packet_t* aql_start_packet) // [out] profile start AQL packet
#else
hsa_status_t hsa_ven_amd_aqlprofile_start(
hsa_ven_amd_aqlprofile_profile_t* profile, // [in/out] profile contex object
hsa_ext_amd_aql_pm4_packet_t* aql_start_packet) // [out] profile start AQL packet
#endif
{
return core::Runtime::runtime_singleton_->extensions_.aqlprofile_api.hsa_ven_amd_aqlprofile_start_fn(profile, aql_start_packet);
}