NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
telemetry_pcc_sample.c File Reference
#include <doca_error.h>
#include <doca_log.h>
#include <doca_dev.h>
#include <doca_telemetry_pcc.h>
#include <errno.h>
#include <unistd.h>
#include "common.h"
#include "telemetry_pcc_sample.h"
Include dependency graph for telemetry_pcc_sample.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (TELEMETRY_PCC::SAMPLE)
 
static doca_error_t get_algo_information (struct doca_telemetry_pcc *pcc, struct doca_dev *dev, uint32_t *slots_populated)
 
static doca_error_t get_counter_information (struct doca_telemetry_pcc *pcc, struct doca_dev *dev, uint8_t slot)
 
doca_error_t telemetry_pcc_sample_run (const struct telemetry_pcc_sample_cfg *cfg)
 

Function Documentation

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( TELEMETRY_PCC::SAMPLE  )

◆ get_algo_information()

static doca_error_t get_algo_information ( struct doca_telemetry_pcc *  pcc,
struct doca_dev *  dev,
uint32_t *  slots_populated 
)
static

Definition at line 46 of file telemetry_pcc_sample.c.

◆ get_counter_information()

static doca_error_t get_counter_information ( struct doca_telemetry_pcc *  pcc,
struct doca_dev *  dev,
uint8_t  slot 
)
static

Definition at line 126 of file telemetry_pcc_sample.c.

◆ telemetry_pcc_sample_run()

doca_error_t telemetry_pcc_sample_run ( const struct telemetry_pcc_sample_cfg cfg)

Definition at line 187 of file telemetry_pcc_sample.c.