NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_telemetry_pcc.h File Reference
#include <doca_error.h>
#include <doca_types.h>
Include dependency graph for doca_telemetry_pcc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_is_supported (const struct doca_devinfo *devinfo)
 Check if given device is capable of executing telemetry PCC operations. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_create (struct doca_dev *dev, struct doca_telemetry_pcc **pcc)
 Create a DOCA Telemetry PCC instance. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_destroy (struct doca_telemetry_pcc *pcc)
 Destroy doca_telemetry_pcc previously created by doca_telemetry_pcc_create(). More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_start (struct doca_telemetry_pcc *pcc)
 Start context for pcc counter extraction. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_stop (struct doca_telemetry_pcc *pcc)
 Stop pcc counter extraction context. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_algo_slots (const struct doca_devinfo *devinfo, uint32_t *max_algo_slots)
 Get the maximum number of algo slots that may be populated. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_id (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *algo_id)
 Get the id of algo on a specific slot. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_major_version (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *major_ver)
 Get the major version number of algo on a specific slot. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_minor_version (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *minor_ver)
 Get the minor version number of algo on a specific slot. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_enable_status (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint8_t *algo_enabled, uint8_t *counters_enabled)
 Get the enable status for a given algo slot. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_algo_info_len (const struct doca_devinfo *devinfo, uint32_t *max_algo_info_len)
 Get the maximum number of characters that be returned by an algo_info request. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_algo_info (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, char *algo_info)
 Get information on a given algorithm. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_num_counters (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *num_counters)
 Get the number of counters available in a given algo slot. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_counter_info_len (const struct doca_devinfo *devinfo, uint32_t *max_counter_info_len)
 Get the maximum number of characters that be returned by a counter_info request. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_counter_info (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint8_t counter_id, char *counter_info)
 Get information on a given counter. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_cap_get_max_num_counters (const struct doca_devinfo *devinfo, uint32_t *max_num_counters)
 Get the maximum number of counters that may be returned. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_counters (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *counters_populated, uint32_t *counters)
 Get counters for PCC algo slot. More...
 
DOCA_EXPERIMENTAL doca_error_t doca_telemetry_pcc_get_and_clear_counters (struct doca_telemetry_pcc *pcc, uint8_t algo_slot, uint32_t *counters_populated, uint32_t *counters)
 Get and clear (reset to 0) counters for PCC algo slot. More...