FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
stat_segment.h File Reference
+ Include dependency graph for stat_segment.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_directory_entry_t
 
struct  stat_segment_shared_header_t
 
struct  stat_segment_main_t
 

Macros

#define STAT_SEGMENT_SOCKET_FILE   "/run/vpp/stats.sock"
 
#define foreach_stat_segment_counter_name
 
#define STAT_SEGMENT_DEFAULT_SIZE   (32<<20)
 

Enumerations

enum  stat_directory_type_t {
  STAT_DIR_TYPE_ILLEGAL = 0, STAT_DIR_TYPE_SCALAR_INDEX, STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE, STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED,
  STAT_DIR_TYPE_ERROR_INDEX
}
 
enum  stat_segment_counter_t {
  STAT_COUNTER_VECTOR_RATE = 0, STAT_COUNTER_INPUT_RATE, STAT_COUNTER_LAST_UPDATE, STAT_COUNTER_LAST_STATS_CLEAR,
  STAT_COUNTER_HEARTBEAT, STAT_COUNTER_NODE_CLOCKS, STAT_COUNTER_NODE_VECTORS, STAT_COUNTER_NODE_CALLS,
  STAT_COUNTER_NODE_SUSPENDS, STAT_COUNTERS
}
 

Functions

static uint64_t stat_segment_offset (void *start, void *data)
 
static void * stat_segment_pointer (void *start, uint64_t offset)
 

Variables

stat_segment_main_t stat_segment_main
 

Macro Definition Documentation

#define foreach_stat_segment_counter_name
Value:
_(VECTOR_RATE, SCALAR_INDEX, vector_rate,) \
_(INPUT_RATE, SCALAR_INDEX, input_rate,) \
_(LAST_UPDATE, SCALAR_INDEX, last_update,) \
_(LAST_STATS_CLEAR, SCALAR_INDEX, last_stats_clear,) \
_(HEARTBEAT, SCALAR_INDEX, heartbeat,) \
_(NODE_CLOCKS, COUNTER_VECTOR_SIMPLE, clocks, /node) \
_(NODE_VECTORS, COUNTER_VECTOR_SIMPLE, vectors, /node) \
_(NODE_CALLS, COUNTER_VECTOR_SIMPLE, calls, /node) \
_(NODE_SUSPENDS, COUNTER_VECTOR_SIMPLE, suspends, /node)

Definition at line 49 of file stat_segment.h.

#define STAT_SEGMENT_DEFAULT_SIZE   (32<<20)

Definition at line 73 of file stat_segment.h.

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

Definition at line 24 of file stat_segment.h.

Enumeration Type Documentation

Enumerator
STAT_DIR_TYPE_ILLEGAL 
STAT_DIR_TYPE_SCALAR_INDEX 
STAT_DIR_TYPE_COUNTER_VECTOR_SIMPLE 
STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED 
STAT_DIR_TYPE_ERROR_INDEX 

Definition at line 26 of file stat_segment.h.

Enumerator
STAT_COUNTER_VECTOR_RATE 
STAT_COUNTER_INPUT_RATE 
STAT_COUNTER_LAST_UPDATE 
STAT_COUNTER_LAST_STATS_CLEAR 
STAT_COUNTER_HEARTBEAT 
STAT_COUNTER_NODE_CLOCKS 
STAT_COUNTER_NODE_VECTORS 
STAT_COUNTER_NODE_CALLS 
STAT_COUNTER_NODE_SUSPENDS 
STAT_COUNTERS 

Definition at line 35 of file stat_segment.h.

Function Documentation

static uint64_t stat_segment_offset ( void *  start,
void *  data 
)
inlinestatic

Definition at line 88 of file stat_segment.h.

+ Here is the caller graph for this function:

static void* stat_segment_pointer ( void *  start,
uint64_t  offset 
)
inlinestatic

Definition at line 94 of file stat_segment.h.

+ Here is the caller graph for this function:

Variable Documentation

stat_segment_main_t stat_segment_main

Definition at line 25 of file stat_segment.c.