FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
topdown_metrics.c File Reference
+ Include dependency graph for topdown_metrics.c:

Go to the source code of this file.

Macros

#define GET_METRIC(m, i)   (((m) >> (i * 8)) & 0xff)
 
#define GET_RATIO(m, i)   (((m) >> (i * 32)) & 0xffffffff)
 
#define RDPMC_FIXED_SLOTS   (1 << 30) /* fixed slots */
 
#define RDPMC_L1_METRICS   (1 << 29) /* l1 metric counters */
 
#define FIXED_COUNTER_SLOTS   3
 
#define METRIC_COUNTER_TOPDOWN_L1   0
 

Enumerations

enum  topdown_lvl1_counters_t { TOPDOWN_E_METRIC_RETIRING = 0, TOPDOWN_E_METRIC_BAD_SPEC, TOPDOWN_E_METRIC_FE_BOUND, TOPDOWN_E_METRIC_BE_BOUND }
 
enum  { TOPDOWN_SLOTS = 0, TOPDOWN_METRICS }
 

Functions

static_always_inline f32 topdown_lvl1_parse_row (perfmon_node_stats_t *ns, topdown_lvl1_counters_t e)
 
static u8format_topdown_lvl1 (u8 *s, va_list *args)
 
 PERFMON_REGISTER_BUNDLE (topdown_lvl1)
 

Variables

enum { ... }  topdown_lvl1_metrics_t
 

Macro Definition Documentation

◆ FIXED_COUNTER_SLOTS

#define FIXED_COUNTER_SLOTS   3

Definition at line 25 of file topdown_metrics.c.

◆ GET_METRIC

#define GET_METRIC (   m,
  i 
)    (((m) >> (i * 8)) & 0xff)

Definition at line 20 of file topdown_metrics.c.

◆ GET_RATIO

#define GET_RATIO (   m,
  i 
)    (((m) >> (i * 32)) & 0xffffffff)

Definition at line 21 of file topdown_metrics.c.

◆ METRIC_COUNTER_TOPDOWN_L1

#define METRIC_COUNTER_TOPDOWN_L1   0

Definition at line 26 of file topdown_metrics.c.

◆ RDPMC_FIXED_SLOTS

#define RDPMC_FIXED_SLOTS   (1 << 30) /* fixed slots */

Definition at line 22 of file topdown_metrics.c.

◆ RDPMC_L1_METRICS

#define RDPMC_L1_METRICS   (1 << 29) /* l1 metric counters */

Definition at line 23 of file topdown_metrics.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TOPDOWN_SLOTS 
TOPDOWN_METRICS 

Definition at line 36 of file topdown_metrics.c.

◆ topdown_lvl1_counters_t

Enumerator
TOPDOWN_E_METRIC_RETIRING 
TOPDOWN_E_METRIC_BAD_SPEC 
TOPDOWN_E_METRIC_FE_BOUND 
TOPDOWN_E_METRIC_BE_BOUND 

Definition at line 28 of file topdown_metrics.c.

Function Documentation

◆ format_topdown_lvl1()

static u8* format_topdown_lvl1 ( u8 s,
va_list *  args 
)
static

Definition at line 60 of file topdown_metrics.c.

+ Here is the call graph for this function:

◆ PERFMON_REGISTER_BUNDLE()

PERFMON_REGISTER_BUNDLE ( topdown_lvl1  )

◆ topdown_lvl1_parse_row()

static_always_inline f32 topdown_lvl1_parse_row ( perfmon_node_stats_t ns,
topdown_lvl1_counters_t  e 
)

Definition at line 43 of file topdown_metrics.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ topdown_lvl1_metrics_t

enum { ... } topdown_lvl1_metrics_t