FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
stat_client.h File Reference
+ Include dependency graph for stat_client.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stat_segment_data_t
 
struct  stat_client_main_t
 
struct  stat_segment_access_t
 

Macros

#define STAT_VERSION_MAJOR   1
 
#define STAT_VERSION_MINOR   2
 
#define STAT_SEGMENT_SOCKET_FILE   "/run/vpp/stats.sock"
 
#define STAT_SEGMENT_SOCKET_FILENAME   "stats.sock"
 

Functions

stat_client_main_tstat_client_get (void)
 
void stat_client_free (stat_client_main_t *sm)
 
int stat_segment_connect_r (const char *socket_name, stat_client_main_t *sm)
 
int stat_segment_connect (const char *socket_name)
 
void stat_segment_disconnect_r (stat_client_main_t *sm)
 
void stat_segment_disconnect (void)
 
uint8_t ** stat_segment_string_vector (uint8_t **string_vector, const char *string)
 
int stat_segment_vec_len (void *vec)
 
void stat_segment_vec_free (void *vec)
 
uint32_t * stat_segment_ls_r (uint8_t **patterns, stat_client_main_t *sm)
 
uint32_t * stat_segment_ls (uint8_t **pattern)
 
stat_segment_data_tstat_segment_dump_r (uint32_t *stats, stat_client_main_t *sm)
 
stat_segment_data_tstat_segment_dump (uint32_t *counter_vec)
 
stat_segment_data_tstat_segment_dump_entry_r (uint32_t index, stat_client_main_t *sm)
 
stat_segment_data_tstat_segment_dump_entry (uint32_t index)
 
void stat_segment_data_free (stat_segment_data_t *res)
 
double stat_segment_heartbeat_r (stat_client_main_t *sm)
 
double stat_segment_heartbeat (void)
 
char * stat_segment_index_to_name_r (uint32_t index, stat_client_main_t *sm)
 
char * stat_segment_index_to_name (uint32_t index)
 
uint64_t stat_segment_version (void)
 
uint64_t stat_segment_version_r (stat_client_main_t *sm)
 
static void * stat_segment_adjust (stat_client_main_t *sm, void *data)
 
static int stat_segment_access_start (stat_segment_access_t *sa, stat_client_main_t *sm)
 
static void stat_segment_set_timeout_nsec (stat_client_main_t *sm, uint64_t timeout)
 
static void stat_segment_set_timeout (uint64_t timeout)
 
static bool stat_segment_access_end (stat_segment_access_t *sa, stat_client_main_t *sm)
 

Variables

stat_client_main_t stat_client_main
 

Macro Definition Documentation

◆ STAT_SEGMENT_SOCKET_FILE

#define STAT_SEGMENT_SOCKET_FILE   "/run/vpp/stats.sock"

Definition at line 32 of file stat_client.h.

◆ STAT_SEGMENT_SOCKET_FILENAME

#define STAT_SEGMENT_SOCKET_FILENAME   "stats.sock"

Definition at line 33 of file stat_client.h.

◆ STAT_VERSION_MAJOR

#define STAT_VERSION_MAJOR   1

Definition at line 20 of file stat_client.h.

◆ STAT_VERSION_MINOR

#define STAT_VERSION_MINOR   2

Definition at line 21 of file stat_client.h.

Function Documentation

◆ stat_client_free()

void stat_client_free ( stat_client_main_t sm)

Definition at line 47 of file stat_client.c.

+ Here is the call graph for this function:

◆ stat_client_get()

stat_client_main_t* stat_client_get ( void  )

Definition at line 38 of file stat_client.c.

+ Here is the call graph for this function:

◆ stat_segment_access_end()

static bool stat_segment_access_end ( stat_segment_access_t sa,
stat_client_main_t sm 
)
inlinestatic

Definition at line 165 of file stat_client.h.

+ Here is the caller graph for this function:

◆ stat_segment_access_start()

static int stat_segment_access_start ( stat_segment_access_t sa,
stat_client_main_t sm 
)
inlinestatic

Definition at line 115 of file stat_client.h.

+ Here is the caller graph for this function:

◆ stat_segment_adjust()

static void* stat_segment_adjust ( stat_client_main_t sm,
void *  data 
)
inlinestatic

Definition at line 102 of file stat_client.h.

+ Here is the caller graph for this function:

◆ stat_segment_connect()

int stat_segment_connect ( const char *  socket_name)

Definition at line 151 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_connect_r()

int stat_segment_connect_r ( const char *  socket_name,
stat_client_main_t sm 
)

Definition at line 93 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_data_free()

void stat_segment_data_free ( stat_segment_data_t res)

Definition at line 315 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_disconnect()

void stat_segment_disconnect ( void  )

Definition at line 165 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_disconnect_r()

void stat_segment_disconnect_r ( stat_client_main_t sm)

Definition at line 158 of file stat_client.c.

+ Here is the caller graph for this function:

◆ stat_segment_dump()

stat_segment_data_t* stat_segment_dump ( uint32_t *  counter_vec)

Definition at line 442 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_dump_entry()

stat_segment_data_t* stat_segment_dump_entry ( uint32_t  index)

Definition at line 497 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_dump_entry_r()

stat_segment_data_t* stat_segment_dump_entry_r ( uint32_t  index,
stat_client_main_t sm 
)

Definition at line 474 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_dump_r()

stat_segment_data_t* stat_segment_dump_r ( uint32_t *  stats,
stat_client_main_t sm 
)

Definition at line 412 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_heartbeat()

double stat_segment_heartbeat ( void  )

Definition at line 189 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_heartbeat_r()

double stat_segment_heartbeat_r ( stat_client_main_t sm)

Definition at line 172 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_index_to_name()

char* stat_segment_index_to_name ( uint32_t  index)

Definition at line 523 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_index_to_name_r()

char* stat_segment_index_to_name_r ( uint32_t  index,
stat_client_main_t sm 
)

Definition at line 504 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_ls()

uint32_t* stat_segment_ls ( uint8_t **  pattern)

Definition at line 405 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_ls_r()

uint32_t* stat_segment_ls_r ( uint8_t **  patterns,
stat_client_main_t sm 
)

Definition at line 351 of file stat_client.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stat_segment_set_timeout()

static void stat_segment_set_timeout ( uint64_t  timeout)
inlinestatic

Definition at line 157 of file stat_client.h.

+ Here is the call graph for this function:

◆ stat_segment_set_timeout_nsec()

static void stat_segment_set_timeout_nsec ( stat_client_main_t sm,
uint64_t  timeout 
)
inlinestatic

Definition at line 146 of file stat_client.h.

+ Here is the caller graph for this function:

◆ stat_segment_string_vector()

uint8_t** stat_segment_string_vector ( uint8_t **  string_vector,
const char *  string 
)

Definition at line 463 of file stat_client.c.

◆ stat_segment_vec_free()

void stat_segment_vec_free ( void *  vec)

Definition at line 456 of file stat_client.c.

+ Here is the caller graph for this function:

◆ stat_segment_vec_len()

int stat_segment_vec_len ( void *  vec)

Definition at line 450 of file stat_client.c.

+ Here is the caller graph for this function:

◆ stat_segment_version()

uint64_t stat_segment_version ( void  )

Definition at line 537 of file stat_client.c.

+ Here is the call graph for this function:

◆ stat_segment_version_r()

uint64_t stat_segment_version_r ( stat_client_main_t sm)

Definition at line 530 of file stat_client.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ stat_client_main

stat_client_main_t stat_client_main

Definition at line 35 of file stat_client.c.