feature: packet I/O suppport dumpfile list mode

This commit is contained in:
luwenpeng
2024-08-19 18:40:49 +08:00
parent 520eb085b8
commit 29cbe532ef
8 changed files with 72 additions and 98 deletions

View File

@@ -6,6 +6,7 @@ extern "C"
#endif
#include <stdint.h>
#include <limits.h>
#include "utils.h"
@@ -48,7 +49,8 @@ struct __attribute__((aligned(64))) packet_io_stat
enum packet_io_mode
{
PACKET_IO_DUMPFILE = 0,
PACKET_IO_MARSIO = 1,
PACKET_IO_DUMPFILELIST = 1,
PACKET_IO_MARSIO = 2,
};
struct packet_io_options
@@ -56,7 +58,7 @@ struct packet_io_options
enum packet_io_mode mode;
// for dumpfile
char dumpfile_dir[256];
char dumpfile_path[PATH_MAX];
// for marsio
char app_symbol[64];