summaryrefslogtreecommitdiffstats
path: root/scripts/t-rex-64-valgrind
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-01 15:24:58 +0200
committerimarom <imarom@cisco.com>2016-12-01 15:30:29 +0200
commit452e9d470b09513fff00b4a0c3600c33c3e4f76a (patch)
tree90d100a4d84de5b1009a277fa29857d2c697acc4 /scripts/t-rex-64-valgrind
parentc420d1fd8c17118f2ccaee4b05b81ec3dd515fa6 (diff)
bug found by valgrind
also an issue with 40G deleting no exisiting rules with recv_all Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/t-rex-64-valgrind')
-rwxr-xr-xscripts/t-rex-64-valgrind8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/t-rex-64-valgrind b/scripts/t-rex-64-valgrind
index a770895d..5ac2becf 100755
--- a/scripts/t-rex-64-valgrind
+++ b/scripts/t-rex-64-valgrind
@@ -31,6 +31,7 @@ export LD_LIBRARY_PATH=$PWD:$PWD/dumy_libs
fi
export VALGRIND_LIB=/auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/lib/valgrind
+export VALGRIND_BIN="/auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/bin/valgrind --leak-check=full"
if [ -t 0 ] && [ -t 1 ]; then
export is_tty=true
@@ -41,17 +42,18 @@ fi
# if we have a new core run optimized trex
if grep -q avx /proc/cpuinfo ; then
- /auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/bin/valgrind ./_t-rex-64 $INPUT_ARGS
+ $VALGRIND_BIN ./_t-rex-64 $INPUT_ARGS
RESULT=$?
if [ $RESULT -eq 132 ]; then
echo " WARNING this program is optimized for the new Intel processors. "
echo " try the ./t-rex-64-o application that should work for any Intel processor but might be slower. "
echo " try to run t-rex-64-o .. "
- /auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/bin/valgrind ./_t-rex-64-o $INPUT_ARGS
+
+ $VALGRIND_BIN ./_t-rex-64 $INPUT_ARGS
RESULT=$?
fi
else
- /auto/proj-pcube-b/apps/PL-b/tools/valgrind-dpdk/bin/valgrind ./_t-rex-64-o $INPUT_ARGS
+ $VALGRIND_BIN ./_t-rex-64 $INPUT_ARGS
RESULT=$?
fi