|
#define | ELOG_TYPE_DECLARE(f) static elog_event_type_t __ELOG_TYPE_VAR(f) |
|
#define | ELOG_TYPE_INIT_FORMAT_AND_FUNCTION(fmt, func) { .format = fmt, .function = func, } |
|
#define | ELOG_TYPE_INIT(fmt) ELOG_TYPE_INIT_FORMAT_AND_FUNCTION(fmt,(char *) __FUNCTION__) |
|
#define | ELOG_TYPE_DECLARE_HELPER(f, fmt, func) |
|
#define | ELOG_TYPE_DECLARE_FORMAT_AND_FUNCTION(f, fmt) ELOG_TYPE_DECLARE_HELPER (f, fmt, (char *) __FUNCTION__) |
|
#define | ELOG_TYPE_DECLARE_FORMAT(f, fmt) ELOG_TYPE_DECLARE_HELPER (f, fmt, 0) |
|
#define | ELOG_TYPE(f, fmt) ELOG_TYPE_DECLARE_FORMAT_AND_FUNCTION(f,fmt) |
|
#define | ELOG_TYPE_D(f) ELOG_TYPE_DECLARE_FORMAT (f, #f " %d") |
|
#define | ELOG_TYPE_X(f) ELOG_TYPE_DECLARE_FORMAT (f, #f " 0x%x") |
|
#define | ELOG_TYPE_DF(f) ELOG_TYPE_DECLARE_FORMAT_AND_FUNCTION (f, #f " %d") |
|
#define | ELOG_TYPE_XF(f) ELOG_TYPE_DECLARE_FORMAT_AND_FUNCTION (f, #f " 0x%x") |
|
#define | ELOG_TYPE_FD(f) ELOG_TYPE_DECLARE_FORMAT_AND_FUNCTION (f, #f " %d") |
|
#define | ELOG_TYPE_FX(f) ELOG_TYPE_DECLARE_FORMAT_AND_FUNCTION (f, #f " 0x%x") |
|
#define | ELOG_TRACK_DECLARE(f) static elog_track_t __ELOG_TRACK_VAR(f) |
|
#define | ELOG_TRACK(f) ELOG_TRACK_DECLARE(f) = { .name = #f, } |
|
#define | ELOG(em, f, data) elog ((em), &__ELOG_TYPE_VAR(f), data) |
|
#define | ELOG_INLINE(em, f, data) elog_inline ((em), &__ELOG_TYPE_VAR(f), data) |
|
#define | ELOG_TRACK_DATA(em, f, track) elog_data ((em), &__ELOG_TYPE_VAR(f), &__ELOG_TRACK_VAR(track)) |
|
#define | ELOG_TRACK_DATA_INLINE(em, f, track) elog_data_inline ((em), &__ELOG_TYPE_VAR(f), &__ELOG_TRACK_VAR(track)) |
|
#define | ELOG_DATA(em, f) elog_data ((em), &__ELOG_TYPE_VAR (f), &(em)->default_track) |
|
#define | ELOG_DATA_INLINE(em, f) elog_data_inline ((em), &__ELOG_TYPE_VAR (f), &(em)->default_track) |
|
|
always_inline uword | elog_n_events_in_buffer (elog_main_t *em) |
|
always_inline uword | elog_buffer_capacity (elog_main_t *em) |
|
always_inline void | elog_reset_buffer (elog_main_t *em) |
|
always_inline void | elog_enable_disable (elog_main_t *em, int is_enabled) |
|
always_inline void | elog_disable_after_events (elog_main_t *em, uword n) |
|
always_inline void | elog_disable_trigger (elog_main_t *em) |
|
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) |
|
always_inline uword | elog_is_enabled (elog_main_t *em) |
|
always_inline void * | elog_event_data_inline (elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u64 cpu_time) |
|
void * | elog_event_data (elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u64 cpu_time) |
|
always_inline void * | elog_event_data_not_inline (elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u64 cpu_time) |
|
always_inline void | elog (elog_main_t *em, elog_event_type_t *type, u32 data) |
|
always_inline void | elog_inline (elog_main_t *em, elog_event_type_t *type, u32 data) |
|
always_inline void | elog_track (elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u32 data) |
|
always_inline void | elog_track_inline (elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u32 data) |
|
always_inline void * | elog_data (elog_main_t *em, elog_event_type_t *type, elog_track_t *track) |
|
always_inline void * | elog_data_inline (elog_main_t *em, elog_event_type_t *type, elog_track_t *track) |
|
u32 | elog_string (elog_main_t *em, char *format,...) |
|
void | elog_time_now (elog_time_stamp_t *et) |
|
elog_event_t * | elog_get_events (elog_main_t *em) |
|
elog_event_t * | elog_peek_events (elog_main_t *em) |
|
void | elog_merge (elog_main_t *dst, u8 *dst_tag, elog_main_t *src, u8 *src_tag) |
|
u8 * | format_elog_event (u8 *s, va_list *va) |
|
u8 * | format_elog_track (u8 *s, 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) |
|
void | elog_init (elog_main_t *em, u32 n_events) |
|
void | elog_alloc (elog_main_t *em, u32 n_events) |
|
always_inline clib_error_t * | elog_write_file (elog_main_t *em, char *unix_file) |
|
always_inline clib_error_t * | elog_read_file (elog_main_t *em, char *unix_file) |
|