summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2010-02-22 17:13:35 -0800
committerSam Roberts <vieuxtech@gmail.com>2010-02-22 17:13:35 -0800
commit5b3a91051b4441e0aaf83df6425ba37f3401388b (patch)
treee444988cc91ae3045053802b39df856aac30f1f7
parent48687119988df2936588401e04034454f6f4598c (diff)
downloadlibnet-5b3a91051b4441e0aaf83df6425ba37f3401388b.tar.gz
Run efence in multiple runs, so it doesn't run out of memory.
-rwxr-xr-xlua/efence-test12
-rwxr-xr-xlua/efence-wrapper16
2 files changed, 28 insertions, 0 deletions
diff --git a/lua/efence-test b/lua/efence-test
new file mode 100755
index 0000000..0d78096
--- /dev/null
+++ b/lua/efence-test
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+set -x
+
+./efence-wrapper net-test
+
+for f in `ls *.pcap | grep -v recoded-`;
+do
+ ./efence-wrapper recoding-test $f;
+done
+
diff --git a/lua/efence-wrapper b/lua/efence-wrapper
new file mode 100755
index 0000000..34b1a02
--- /dev/null
+++ b/lua/efence-wrapper
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+set -x
+
+export EF_PROTECT_FREE=1
+export EF_FREE_WIPES=1
+
+luaef $* > _ef_above.out
+
+EF_PROTECT_BELOW=1 luaef $* > _ef_below.out
+
+# glibc also has malloc checking
+
+MALLOC_CHECK=2 lua $* > _ef_libc.out
+