FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
stat_client.c File Reference
+ Include dependency graph for stat_client.c:

Go to the source code of this file.

Macros

#define stat_vec_dup(S, V)
 

Functions

stat_client_main_tstat_client_get (void)
 
void stat_client_free (stat_client_main_t *sm)
 
static int recv_fd (int sock)
 
static stat_segment_directory_entry_tget_stat_vector_r (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)
 
double stat_segment_heartbeat_r (stat_client_main_t *sm)
 
double stat_segment_heartbeat (void)
 
static stat_segment_data_t copy_data (stat_segment_directory_entry_t *ep, stat_client_main_t *sm)
 
void stat_segment_data_free (stat_segment_data_t *res)
 
uint32_t * stat_segment_ls_r (uint8_t **patterns, stat_client_main_t *sm)
 
uint32_t * stat_segment_ls (uint8_t **patterns)
 
stat_segment_data_tstat_segment_dump_r (uint32_t *stats, stat_client_main_t *sm)
 
stat_segment_data_tstat_segment_dump (uint32_t *stats)
 
int stat_segment_vec_len (void *vec)
 
void stat_segment_vec_free (void *vec)
 
uint8_t ** stat_segment_string_vector (uint8_t **string_vector, const char *string)
 
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)
 
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_r (stat_client_main_t *sm)
 
uint64_t stat_segment_version (void)
 

Variables

stat_client_main_t stat_client_main
 

Macro Definition Documentation

◆ stat_vec_dup

#define stat_vec_dup (   S,
 
)
Value:
({ \
__typeof__ ((V)[0]) * _v(v) = 0; \
if (V && ((void *)V > (void *)S->shared_header) && \
(((void*)V + vec_bytes(V)) < \
((void *)S->shared_header + S->memory_size))) \
_v(v) = vec_dup(V); \
_v(v); \
})
#define S(mp)
#define vec_bytes(v)
Number of data bytes in vector.
#define vec_dup(V)
Return copy of vector (no header, no alignment)
Definition: vec.h:429

Definition at line 195 of file stat_client.c.

Function Documentation

◆ copy_data()

static stat_segment_data_t copy_data ( stat_segment_directory_entry_t ep,
stat_client_main_t sm 
)
static

Definition at line 206 of file stat_client.c.

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

◆ get_stat_vector_r()

static stat_segment_directory_entry_t* get_stat_vector_r ( stat_client_main_t sm)
static

Definition at line 85 of file stat_client.c.

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

◆ recv_fd()

static int recv_fd ( int  sock)
static

Definition at line 53 of file stat_client.c.

+ Here is the caller graph for this function:

◆ stat_client_free()

void stat_client_free ( stat_client_main_t sm)

Definition at line 47 of file stat_client.c.

◆ 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_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 278 of file stat_client.c.

+ 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 *  stats)

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_dump_entry()

stat_segment_data_t* stat_segment_dump_entry ( uint32_t  index)

Definition at line 456 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 437 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 375 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 482 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 463 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 **  patterns)

Definition at line 368 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 314 of file stat_client.c.

+ Here is the call graph for this function:
+ 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 426 of file stat_client.c.

+ Here is the caller graph for this function:

◆ stat_segment_vec_free()

void stat_segment_vec_free ( void *  vec)

Definition at line 419 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 413 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 496 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 489 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.