Parse all slogger2 files
#include <slog2_parse.h>
int slog2_parse_all( uint32_t flags,
char *directory_path,
char *match_list,
slog2_packet_info_t *packet_info,
slog2_packet_callback callback,
void *param );
typedef int (*slog2_packet_callback)( slog2_packet_info_t *__info,
void *__payload,
void *__param );
that's called to process each packet in the buffer; see below.
The slog2_parse_all() function parses all files in a given directory path, or the live directory path (/dev/shmem/slogger2) if the path supplied is NULL. The output is in a merged format according to the time the files were made.
The given callback function is invoked for each packet in the files; the prototype is:
int callback( slog2_packet_info_t *info,
void *payload,
void *param );
The arguments are:
The callback should return 0 on success, or a nonzero value on failure.
0 on success, or -1 on failure.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |