Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
Data Structures | Macros | Enumerations | Functions
openapi_switch_cpu.h File Reference
#include "openapi_common.h"

Go to the source code of this file.

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...