API to query capabilities of the compute resource manager and to get profiling data associated with a context.
◆ HAP_compute_res_get_preempt_data()
On implementations supporting HAP_COMPUTE_RES_AUTONOMOUS_PREEMPTION, this API returns preemption statistics associated with the context_id acquired via HAP_compute_res_acquire().
This API needs to be called before the associated context is released via HAP_compute_res_release() call, data returned is invalid otherwise.
- Parameters
-
- Returns
- 0 upon success.
Nonzero upon failure.
HAP_COMPUTE_RES_NOT_SUPPORTED when not supported.
◆ HAP_compute_res_query_capability()
Queries compute resource manager capabilities listed under compute_res_capability_id enum.
- Parameters
-
[in] | capability_id | Identifier from compute_res_capability_id corresponding to the compute resource manager capability. |
[out] | data | Pointer to an unsigned int data. On success, the memory is updated with the data associated with the queried capability. |
- Returns
- 0 upon success.
Nonzero upon failure.
HAP_COMPUTE_RES_NOT_SUPPORTED when not supported.