g2, c2cpel, and cpeldump: scale to 8M event log files

Change-Id: I7d7748c9c44132d033a9aff1687112ffcb44c460
Signed-off-by: Dave Barach <dbarach@cisco.com>
This commit is contained in:
Dave Barach
2017-03-25 08:20:22 -04:00
committed by Dave Barach
parent 6abbc2884a
commit de9571f04a
3 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <vppinfra/mem.h>
/*
* globals
@ -62,6 +63,8 @@ int main (int argc, char **argv)
int curarg=1;
char *homedir;
clib_mem_init (0, ((uword)3<<30));
gtk_init(&argc, &argv);
homedir = getenv ("HOME");

View File

@ -28,6 +28,7 @@
#include <vppinfra/vec.h>
#include <vppinfra/hash.h>
#include <vppinfra/elog.h>
#include <vppinfra/mem.h>
#include <pwd.h>
#include <stdarg.h>
#include <time.h>
@ -197,6 +198,8 @@ int main (int argc, char **argv)
if (vec_len(inputfiles) > 1)
goto usage;
clib_mem_init (0, ((uword)3<<30));
cpel_util_init();
convert_clib_file (inputfiles[0]);

View File

@ -28,6 +28,7 @@
#include <vppinfra/clib.h>
#include <vppinfra/vec.h>
#include <vppinfra/hash.h>
#include <vppinfra/mem.h>
#include <pwd.h>
#include <stdarg.h>
#include <time.h>
@ -593,6 +594,8 @@ int main (int argc, char **argv)
if (cpel_file == 0)
goto usage;
clib_mem_init (0, ((uword)3<<30));
cpel = mapfile(cpel_file);
if (cpel == 0) {
fprintf(stderr, "Couldn't map %s...\n", cpel_file);