Commit dfc97063 authored by Lucas Russo's avatar Lucas Russo

run_valgrind.sh: update ebpm command-line options

parent faa40074
#!/bin/bash #!/bin/bash
set -u
set -e
# Prefix
PREFIX=/usr/local
# Broker Endpoint # Broker Endpoint
EXPECTED_ARGS=1 EXPECTED_ARGS=1
...@@ -11,12 +15,17 @@ fi ...@@ -11,12 +15,17 @@ fi
if [ $# -ne $EXPECTED_ARGS ] if [ $# -ne $EXPECTED_ARGS ]
then then
echo "Usage: `basename $0` {cfg file}" echo "Usage: `basename $0` {board slot number}"
exit 1; exit 1;
fi fi
cfg_file=$1 board_slot=$1
valgrind --leak-check=yes --trace-children=yes \ valgrind --leak-check=yes --trace-children=yes \
--suppressions=valgrind.supp ./dev_mngr -f $cfg_file > \ --suppressions=valgrind.supp \
valgrind_report.txt 2>&1 ${PREFIX}/bin/ebpm -f ${PREFIX}/etc/bpm_sw/bpm_sw.cfg \
-n be -t pcie \
-i ${board_slot} -e /dev/fpga/${board_slot} -s 0 \
-b tcp://127.0.0.1:8978 -l stdout > \
valgrind_report.txt 2>&1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment