|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.11.1.2
|
Data Structures | |
| struct | OPEN_CPU_PERIOD_UTIL_INFO_t |
Macros | |
| #define | OPEN_CPU_TASK_COUNT_AVERAGE 100 |
| #define | OPEN_CPU_TASK_UTIL_HEADER_ROWS 5 |
| #define | OPEN_CPU_TASK_UTIL_SIZE 65 |
| #define | OPEN_CPU_UTIL_SCALAR 10000 |
Enumerations | |
| enum | OPEN_CPU_UTIL_MONITOR_PARAMS_t { OPEN_CPU_UTIL_MONITOR_RISING_THRESHOLD_PARAM = 0, OPEN_CPU_UTIL_MONITOR_RISING_PERIOD_PARAM = 1, OPEN_CPU_UTIL_MONITOR_FALLING_THRESHOLD_PARAM = 2, OPEN_CPU_UTIL_MONITOR_FALLING_PERIOD_PARAM = 3, OPEN_CPU_UTIL_MONITOR_LAST_PARAM = 4 } |
| OPEN cpu threshold param. More... | |
Functions | |
| open_error_t | openapiCpuUtilMaxPeriodsGet (openapiClientHandle_t *client_handle, uint32_t *max) |
| Get the maximum number of periods tracked for CPU utilization. More... | |
| open_error_t | openapiCpuUtilMonitorParamGet (openapiClientHandle_t *client_handle, OPEN_CPU_UTIL_MONITOR_PARAMS_t param_Type, uint32_t *param_val) |
| Get a CPU utilization monitoring parameter. More... | |
| open_error_t | openapiCpuUtilMonitorParamSet (openapiClientHandle_t *client_handle, OPEN_CPU_UTIL_MONITOR_PARAMS_t param_Type, uint32_t param_val) |
| Set a CPU utilization monitoring parameter. More... | |
| open_error_t | openapiTaskUtilPrint (openapiClientHandle_t *client_handle, open_buffdesc *data) |
| Get the task CPU utilization for all tracked periods. More... | |
| open_error_t | openapiTotalCpuUtilArrayGet (openapiClientHandle_t *client_handle, open_buffdesc *data) |
| Get CPU utilization for all tracked periods. More... | |
OPEN cpu threshold param.
Definition at line 60 of file openapi_switch_cpu.h.
| open_error_t openapiCpuUtilMaxPeriodsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | max | ||
| ) |
Get the maximum number of periods tracked for CPU utilization.
| [in] | client_handle | Client handle from registration API |
| [out] | max | Maximum number of tracked CPU utilization periods. |
| OPEN_E_NONE | operation was successful. |
| OPEN_E_PARAM | an invalid parameter was passed. |
OpEN API Version: 1.18
| open_error_t openapiCpuUtilMonitorParamGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CPU_UTIL_MONITOR_PARAMS_t | param_Type, | ||
| uint32_t * | param_val | ||
| ) |
Get a CPU utilization monitoring parameter.
| [in] | client_handle | Client handle from registration API |
| [in] | param_Type | Parameter type |
| [out] | param_val | Value of the parameter |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiCpuUtilMonitorParamSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_CPU_UTIL_MONITOR_PARAMS_t | param_Type, | ||
| uint32_t | param_val | ||
| ) |
Set a CPU utilization monitoring parameter.
| [in] | client_handle | Client handle from registration API |
| [in] | param_Type | Parameter type |
| [in] | param_val | Value of the parameter |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiTaskUtilPrint | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | data | ||
| ) |
Get the task CPU utilization for all tracked periods.
| [in] | client_handle | Client handle from registration API |
| [out] | data | Task CPU Utilization data. |
| OPEN_E_NONE | operation was successful. |
| OPEN_E_FAIL | a failure occurred. |
| OPEN_E_PARAM | an invalid parameter was passed. |
OpEN API Version: 1.25
| open_error_t openapiTotalCpuUtilArrayGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | data | ||
| ) |
Get CPU utilization for all tracked periods.
| [in] | client_handle | Client handle from registration API |
| [out] | data | CPU Utilization data. |
| OPEN_E_NONE | operation was successful. |
| OPEN_E_FAIL | a failure occurred. |
| OPEN_E_PARAM | an invalid parameter was passed. |
OpEN API Version: 1.18