FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
uncore.c File Reference
+ Include dependency graph for uncore.c:

Go to the source code of this file.

Macros

#define log_debug(fmt, ...)   vlib_log_debug (if_intel_uncore_log.class, fmt, __VA_ARGS__)
 
#define log_warn(fmt, ...)   vlib_log_warn (if_intel_uncore_log.class, fmt, __VA_ARGS__)
 
#define log_err(fmt, ...)   vlib_log_err (if_intel_uncore_log.class, fmt, __VA_ARGS__)
 
#define PERF_INTEL_CODE(event, umask, edge, any, inv, cmask)
 

Functions

 VLIB_REGISTER_LOG_CLASS (if_intel_uncore_log, static)
 
static int intel_uncore_instance_name_cmp (void *v1, void *v2)
 
static void intel_uncore_add_unit (perfmon_source_t *src, intel_uncore_unit_type_t u, char *name, char *type_str, char *fmt, int *socket_by_cpu_id)
 
static clib_error_tintel_uncore_init (vlib_main_t *vm, perfmon_source_t *src)
 
 PERFMON_REGISTER_SOURCE (intel_uncore)
 

Variables

static perfmon_event_t intel_uncore_events []
 
format_function_t format_intel_core_config
 

Macro Definition Documentation

◆ log_debug

#define log_debug (   fmt,
  ... 
)    vlib_log_debug (if_intel_uncore_log.class, fmt, __VA_ARGS__)

Definition at line 27 of file uncore.c.

◆ log_err

#define log_err (   fmt,
  ... 
)    vlib_log_err (if_intel_uncore_log.class, fmt, __VA_ARGS__)

Definition at line 31 of file uncore.c.

◆ log_warn

#define log_warn (   fmt,
  ... 
)    vlib_log_warn (if_intel_uncore_log.class, fmt, __VA_ARGS__)

Definition at line 29 of file uncore.c.

◆ PERF_INTEL_CODE

#define PERF_INTEL_CODE (   event,
  umask,
  edge,
  any,
  inv,
  cmask 
)
Value:
((event) | (umask) << 8 | (edge) << 18 | (any) << 21 | (inv) << 23 | \
(cmask) << 24)

Definition at line 34 of file uncore.c.

Function Documentation

◆ intel_uncore_add_unit()

static void intel_uncore_add_unit ( perfmon_source_t src,
intel_uncore_unit_type_t  u,
char *  name,
char *  type_str,
char *  fmt,
int *  socket_by_cpu_id 
)
static

Definition at line 61 of file uncore.c.

+ Here is the call graph for this function:

◆ intel_uncore_init()

static clib_error_t* intel_uncore_init ( vlib_main_t vm,
perfmon_source_t src 
)
static

Definition at line 109 of file uncore.c.

+ Here is the call graph for this function:

◆ intel_uncore_instance_name_cmp()

static int intel_uncore_instance_name_cmp ( void *  v1,
void *  v2 
)
static

Definition at line 53 of file uncore.c.

+ Here is the caller graph for this function:

◆ PERFMON_REGISTER_SOURCE()

PERFMON_REGISTER_SOURCE ( intel_uncore  )

◆ VLIB_REGISTER_LOG_CLASS()

VLIB_REGISTER_LOG_CLASS ( if_intel_uncore_log  ,
static   
)

Variable Documentation

◆ format_intel_core_config

format_function_t format_intel_core_config

Definition at line 173 of file uncore.c.

◆ intel_uncore_events

perfmon_event_t intel_uncore_events[]
static
Initial value:
= {
#define _(unit, event, umask, n, suffix, desc)
}

Definition at line 38 of file uncore.c.

foreach_intel_uncore_event
#define foreach_intel_uncore_event
Definition: uncore.h:36
any
word any
Definition: types.h:139