Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
virtio: virtio_flags api use enumflag instead of enum
[vpp.git]
/
src
/
vppinfra
/
elog.h
diff --git
a/src/vppinfra/elog.h
b/src/vppinfra/elog.h
index
9f957e3
..
d0825bd
100644
(file)
--- a/
src/vppinfra/elog.h
+++ b/
src/vppinfra/elog.h
@@
-68,7
+68,7
@@
typedef struct
};
/** Event type index. */
};
/** Event type index. */
- u16 type;
+ u16
event_
type;
/** Track for this event. Tracks allow events to be sorted and
displayed by track. Think of 2 dimensional display with time and
/** Track for this event. Tracks allow events to be sorted and
displayed by track. Think of 2 dimensional display with time and
@@
-324,7
+324,7
@@
elog_event_data_inline (elog_main_t * em,
e = vec_elt_at_index (em->event_ring, ei);
e->time_cycles = cpu_time;
e = vec_elt_at_index (em->event_ring, ei);
e->time_cycles = cpu_time;
- e->type = type_index;
+ e->
event_
type = type_index;
e->track = track_index;
/* Return user data for caller to fill in. */
e->track = track_index;
/* Return user data for caller to fill in. */
@@
-526,6
+526,7
@@
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);
void elog_init (elog_main_t * em, u32 n_events);
void elog_alloc (elog_main_t * em, u32 n_events);
+void elog_resize (elog_main_t * em, u32 n_events);
#ifdef CLIB_UNIX
always_inline clib_error_t *
#ifdef CLIB_UNIX
always_inline clib_error_t *
@@
-543,6
+544,9
@@
elog_write_file (elog_main_t * em, char *clib_file, int flush_ring)
return error;
}
return error;
}
+clib_error_t *elog_write_file_not_inline (elog_main_t * em, char *clib_file,
+ int flush_ring);
+
always_inline clib_error_t *
elog_read_file (elog_main_t * em, char *clib_file)
{
always_inline clib_error_t *
elog_read_file (elog_main_t * em, char *clib_file)
{
@@
-558,6
+562,9
@@
elog_read_file (elog_main_t * em, char *clib_file)
return error;
}
return error;
}
+clib_error_t *elog_read_file_not_inline (elog_main_t * em, char *clib_file);
+char *format_one_elog_event (void *em_arg, void *ep_arg);
+
#endif /* CLIB_UNIX */
#endif /* included_clib_elog_h */
#endif /* CLIB_UNIX */
#endif /* included_clib_elog_h */