FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
Go to the source code of this file.
Functions | |
int | clib_maplog_init (clib_maplog_init_args_t *a) |
Initialize a maplog object. More... | |
void | clib_maplog_update_header (clib_maplog_main_t *mm) |
Update a mapped log header file. More... | |
void | clib_maplog_close (clib_maplog_main_t *mm) |
Close a mapped log, and update the log header file. More... | |
u8 * | format_maplog_header (u8 *s, va_list *args) |
format a log header More... | |
int | clib_maplog_process (char *file_basename, void *fp_arg) |
Process a complete maplog. More... | |
void clib_maplog_close | ( | clib_maplog_main_t * | mm | ) |
int clib_maplog_init | ( | clib_maplog_init_args_t * | a | ) |
int clib_maplog_process | ( | char * | file_basename, |
void * | fp_arg | ||
) |
Process a complete maplog.
Reads the maplog header. Map and process all log segments in order. Calls the callback function once per file with a record count.
Note: if the file header isn't updated by calling clib_maplog_close(), it will appear to have an infinite number of records in an infinite number of files.
So long as the callback function understands that possibility
[in] | file_basename | Same basename supplied to clib_maplog_init |
[in] | fp_arg | Callback function pointer |
Definition at line 384 of file maplog.c.
void clib_maplog_update_header | ( | clib_maplog_main_t * | mm | ) |
format a log header
Usage: s = format (0, "%U", format_maplog_header(), headerp, verbose);
[in] | h | clib_maplog_header_t pointer |
[in] | verbose | self-explanatory |
Definition at line 335 of file maplog.c.