Compute resource manager
Compute resource manager API
query and profiling data

Functions

static int HAP_compute_res_query_capability (compute_res_capability_id capability_id, unsigned int *data)
 
static int HAP_compute_res_get_preempt_data (unsigned int context_id, compute_res_preempt_data_t *data)
 

Detailed Description

API to query capabilities of the compute resource manager and to get profiling data associated with a context.

Function Documentation

◆ HAP_compute_res_get_preempt_data()

static int HAP_compute_res_get_preempt_data ( unsigned int  context_id,
compute_res_preempt_data_t data 
)
inlinestatic

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
[in]context_idContext ID returned by HAP_compute_res_acquire().
[out]Pointerto compute_res_preempt_data_t. On success, the preemption-related statistics are updated in the provided structure.
Returns
0 upon success.
Nonzero upon failure.
HAP_COMPUTE_RES_NOT_SUPPORTED when not supported.

◆ HAP_compute_res_query_capability()

static int HAP_compute_res_query_capability ( compute_res_capability_id  capability_id,
unsigned int *  data 
)
inlinestatic

Queries compute resource manager capabilities listed under compute_res_capability_id enum.

Parameters
[in]capability_idIdentifier from compute_res_capability_id corresponding to the compute resource manager capability.
[out]dataPointer 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.