_aqlprofile_start() API migration

Change-Id: I7c8c7a6fc6f9b20cc2e4074dde38fb19440927f1


[ROCm/ROCR-Runtime commit: 86939368d1]
This commit is contained in:
Evgeny
2017-11-16 10:11:44 -06:00
committed by Evgeny Shcherbakov
parent ed0537ed67
commit acce35d21f
@@ -191,16 +191,9 @@ typedef struct {
// Method to populate the provided AQL packet with profiling start commands
// Only 'pm4_command' fields of the packet are set and the application
// is responsible to set Vendor Specific header type a completion signal
#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
// Will return required profile buffers sizes if the size is less then required
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
// Method to populate the provided AQL packet with profiling stop commands
// Only 'pm4_command' fields of the packet are set and the application
@@ -299,15 +292,9 @@ typedef struct hsa_ven_amd_aqlprofile_1_00_pfn_s {
const hsa_ven_amd_aqlprofile_event_t* event,
bool* result);
#ifndef HSA_AQLPROFILE_START_NEW_API
hsa_status_t (*hsa_ven_amd_aqlprofile_start)(
const hsa_ven_amd_aqlprofile_profile_t* profile,
hsa_ext_amd_aql_pm4_packet_t* aql_start_packet);
#else
hsa_status_t (*hsa_ven_amd_aqlprofile_start)(
hsa_ven_amd_aqlprofile_profile_t* profile,
hsa_ext_amd_aql_pm4_packet_t* aql_start_packet);
#endif
hsa_status_t (*hsa_ven_amd_aqlprofile_stop)(
const hsa_ven_amd_aqlprofile_profile_t* profile,