diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2010-02-22 17:13:35 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2010-02-22 17:13:35 -0800 |
commit | 5b3a91051b4441e0aaf83df6425ba37f3401388b (patch) | |
tree | e444988cc91ae3045053802b39df856aac30f1f7 | |
parent | 48687119988df2936588401e04034454f6f4598c (diff) | |
download | libnet-5b3a91051b4441e0aaf83df6425ba37f3401388b.tar.gz |
Run efence in multiple runs, so it doesn't run out of memory.
-rwxr-xr-x | lua/efence-test | 12 | ||||
-rwxr-xr-x | lua/efence-wrapper | 16 |
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 + |