diff options
-rw-r--r-- | src/tools/g2/main.c | 3 | ||||
-rw-r--r-- | src/tools/perftool/c2cpel.c | 3 | ||||
-rw-r--r-- | src/tools/perftool/cpeldump.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/g2/main.c b/src/tools/g2/main.c index a782e17f..1ec7983a 100644 --- a/src/tools/g2/main.c +++ b/src/tools/g2/main.c @@ -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"); diff --git a/src/tools/perftool/c2cpel.c b/src/tools/perftool/c2cpel.c index 38e6fe52..379c2bc6 100644 --- a/src/tools/perftool/c2cpel.c +++ b/src/tools/perftool/c2cpel.c @@ -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]); diff --git a/src/tools/perftool/cpeldump.c b/src/tools/perftool/cpeldump.c index 9011bd03..be0a70df 100644 --- a/src/tools/perftool/cpeldump.c +++ b/src/tools/perftool/cpeldump.c @@ -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); |