From de9571f04a48bf109ea2807a374ac5e05f29c8c1 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Sat, 25 Mar 2017 08:20:22 -0400 Subject: g2, c2cpel, and cpeldump: scale to 8M event log files Change-Id: I7d7748c9c44132d033a9aff1687112ffcb44c460 Signed-off-by: Dave Barach --- src/tools/g2/main.c | 3 +++ src/tools/perftool/c2cpel.c | 3 +++ src/tools/perftool/cpeldump.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/tools/g2/main.c b/src/tools/g2/main.c index a782e17f2ef..1ec7983acf5 100644 --- a/src/tools/g2/main.c +++ b/src/tools/g2/main.c @@ -21,6 +21,7 @@ #include #include #include +#include /* * 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"); diff --git a/src/tools/perftool/c2cpel.c b/src/tools/perftool/c2cpel.c index 38e6fe52e55..379c2bc65f1 100644 --- a/src/tools/perftool/c2cpel.c +++ b/src/tools/perftool/c2cpel.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -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]); diff --git a/src/tools/perftool/cpeldump.c b/src/tools/perftool/cpeldump.c index 9011bd039ec..be0a70df24e 100644 --- a/src/tools/perftool/cpeldump.c +++ b/src/tools/perftool/cpeldump.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -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); -- cgit 1.2.3-korg