FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
elog.c File Reference
+ Include dependency graph for elog.c:

Go to the source code of this file.

Functions

static void elog_lock (elog_main_t *em)
 
static void elog_unlock (elog_main_t *em)
 
void * elog_event_data (elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u64 cpu_time)
 
static void new_event_type (elog_main_t *em, uword i)
 
static uword find_or_create_type (elog_main_t *em, elog_event_type_t *t)
 
word elog_event_type_register (elog_main_t *em, elog_event_type_t *t)
 
word elog_track_register (elog_main_t *em, elog_track_t *t)
 
static uword parse_2digit_decimal (char *p, uword *number)
 
static u8fixed_format (u8 *s, char *fmt, char *result, uword *result_len)
 
u8format_elog_event (u8 *s, va_list *va)
 
u8format_elog_track (u8 *s, va_list *va)
 
void elog_time_now (elog_time_stamp_t *et)
 
static i64 elog_time_stamp_diff_os_nsec (elog_time_stamp_t *t1, elog_time_stamp_t *t2)
 
static i64 elog_time_stamp_diff_cpu (elog_time_stamp_t *t1, elog_time_stamp_t *t2)
 
static f64 elog_nsec_per_clock (elog_main_t *em)
 
void elog_alloc (elog_main_t *em, u32 n_events)
 
void elog_init (elog_main_t *em, u32 n_events)
 
static uword elog_event_range (elog_main_t *em, uword *lo)
 
elog_event_telog_peek_events (elog_main_t *em)
 
u32 elog_string (elog_main_t *em, char *fmt,...)
 
elog_event_telog_get_events (elog_main_t *em)
 
static void maybe_fix_string_table_offset (elog_event_t *e, elog_event_type_t *t, u32 offset)
 
static int elog_cmp (void *a1, void *a2)
 
void elog_merge (elog_main_t *dst, u8 *dst_tag, elog_main_t *src, u8 *src_tag)
 
static void serialize_elog_event (serialize_main_t *m, va_list *va)
 
static void unserialize_elog_event (serialize_main_t *m, va_list *va)
 
static void serialize_elog_event_type (serialize_main_t *m, va_list *va)
 
static void unserialize_elog_event_type (serialize_main_t *m, va_list *va)
 
static void serialize_elog_track (serialize_main_t *m, va_list *va)
 
static void unserialize_elog_track (serialize_main_t *m, va_list *va)
 
static void serialize_elog_time_stamp (serialize_main_t *m, va_list *va)
 
static void unserialize_elog_time_stamp (serialize_main_t *m, va_list *va)
 
void serialize_elog_main (serialize_main_t *m, va_list *va)
 
void unserialize_elog_main (serialize_main_t *m, va_list *va)
 

Variables

static char * elog_serialize_magic = "elog v0"
 

Function Documentation

void elog_alloc ( elog_main_t em,
u32  n_events 
)

Definition at line 443 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int elog_cmp ( void *  a1,
void *  a2 
)
static

Definition at line 598 of file elog.c.

+ Here is the caller graph for this function:

void* elog_event_data ( elog_main_t em,
elog_event_type_t type,
elog_track_t track,
u64  cpu_time 
)

Definition at line 65 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword elog_event_range ( elog_main_t em,
uword lo 
)
static

Definition at line 479 of file elog.c.

+ Here is the caller graph for this function:

word elog_event_type_register ( elog_main_t em,
elog_event_type_t t 
)

Definition at line 103 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

elog_event_t* elog_get_events ( elog_main_t em)

Definition at line 543 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void elog_init ( elog_main_t em,
u32  n_events 
)

Definition at line 457 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void elog_lock ( elog_main_t em)
inlinestatic

Definition at line 46 of file elog.c.

+ Here is the caller graph for this function:

void elog_merge ( elog_main_t dst,
u8 dst_tag,
elog_main_t src,
u8 src_tag 
)

Definition at line 607 of file elog.c.

+ Here is the call graph for this function:

static f64 elog_nsec_per_clock ( elog_main_t em)
inlinestatic

Definition at line 434 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

elog_event_t* elog_peek_events ( elog_main_t em)

Definition at line 500 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 elog_string ( elog_main_t em,
char *  fmt,
  ... 
)

Definition at line 525 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void elog_time_now ( elog_time_stamp_t et)

Definition at line 400 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static i64 elog_time_stamp_diff_cpu ( elog_time_stamp_t t1,
elog_time_stamp_t t2 
)
inlinestatic

Definition at line 428 of file elog.c.

+ Here is the caller graph for this function:

static i64 elog_time_stamp_diff_os_nsec ( elog_time_stamp_t t1,
elog_time_stamp_t t2 
)
inlinestatic

Definition at line 422 of file elog.c.

+ Here is the caller graph for this function:

word elog_track_register ( elog_main_t em,
elog_track_t t 
)

Definition at line 190 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void elog_unlock ( elog_main_t em)
inlinestatic

Definition at line 54 of file elog.c.

+ Here is the caller graph for this function:

static uword find_or_create_type ( elog_main_t em,
elog_event_type_t t 
)
static

Definition at line 84 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* fixed_format ( u8 s,
char *  fmt,
char *  result,
uword result_len 
)
static

Definition at line 241 of file elog.c.

+ Here is the caller graph for this function:

u8* format_elog_event ( u8 s,
va_list *  va 
)

Definition at line 288 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_elog_track ( u8 s,
va_list *  va 
)

Definition at line 391 of file elog.c.

+ Here is the call graph for this function:

static void maybe_fix_string_table_offset ( elog_event_t e,
elog_event_type_t t,
u32  offset 
)
static

Definition at line 551 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void new_event_type ( elog_main_t em,
uword  i 
)
static

Definition at line 72 of file elog.c.

+ Here is the caller graph for this function:

static uword parse_2digit_decimal ( char *  p,
uword number 
)
static

Definition at line 214 of file elog.c.

+ Here is the caller graph for this function:

static void serialize_elog_event ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 744 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void serialize_elog_event_type ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 909 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void serialize_elog_main ( serialize_main_t m,
va_list *  va 
)

Definition at line 990 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void serialize_elog_time_stamp ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 972 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void serialize_elog_track ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 948 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unserialize_elog_event ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 805 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unserialize_elog_event_type ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 928 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void unserialize_elog_main ( serialize_main_t m,
va_list *  va 
)

Definition at line 1020 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unserialize_elog_time_stamp ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 980 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unserialize_elog_track ( serialize_main_t m,
va_list *  va 
)
static

Definition at line 960 of file elog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* elog_serialize_magic = "elog v0"
static

Definition at line 987 of file elog.c.