FD.io VPP
v21.01.1
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 |
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 |