FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
elog_event_type_t Struct Reference

Data Fields

u32 type_index_plus_one
 Type index plus one assigned to this type. More...
 
char ** enum_strings_vector
 String table as a vector constructed when type is registered. More...
 
char * format
 Format string. More...
 
char * format_args
 Specifies how arguments to format are parsed from event data. More...
 
char * function
 Function name generating event. More...
 
u32 n_enum_strings
 Number of elements in string enum table. More...
 
char * enum_strings []
 String table for enum/number to string formatting. More...
 

Detailed Description

Definition at line 82 of file elog.h.

Field Documentation

◆ enum_strings

char* elog_event_type_t::enum_strings[]

String table for enum/number to string formatting.

Definition at line 110 of file elog.h.

◆ enum_strings_vector

char** elog_event_type_t::enum_strings_vector

String table as a vector constructed when type is registered.

Definition at line 89 of file elog.h.

◆ format

char* elog_event_type_t::format

Format string.

(example: "my-event (%d,%d)").

Definition at line 92 of file elog.h.

◆ format_args

char* elog_event_type_t::format_args

Specifies how arguments to format are parsed from event data.

String of characters '0' '1' or '2' '3' to specify log2 size of data (e.g. for u8, u16, u32 or u64), 's' means a null-terminated C string 't' means argument is an index into enum string table for this type. 'e' is a float, 'f' is a double.

Definition at line 101 of file elog.h.

◆ function

char* elog_event_type_t::function

Function name generating event.

Definition at line 104 of file elog.h.

◆ n_enum_strings

u32 elog_event_type_t::n_enum_strings

Number of elements in string enum table.

Definition at line 107 of file elog.h.

◆ type_index_plus_one

u32 elog_event_type_t::type_index_plus_one

Type index plus one assigned to this type.

This is used to mark type as seen.

Definition at line 86 of file elog.h.


The documentation for this struct was generated from the following file: