forked from bpswenson/sst_airport_sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalgrindit
executable file
·19 lines (13 loc) · 1.19 KB
/
valgrindit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# command to get list of errors and how to suppress them
#valgrind --tool=memcheck --trace-children=yes --leak-check=full --gen-suppressions=all --suppressions=./valgrind_supp/sst.supp --log-file=sst.log sst --add-lib-path=build ${1}
# without suppresions, to stdout
#valgrind --tool=memcheck --trace-children=yes --leak-check=full sst --add-lib-path=build ${1}
#echo 'To check this for leaks NOT caused by python or SST, grep the output for track traces including "_handle", "run", and "clock".'
# without suppresions, to XML
#valgrind --xml=yes --xml-fd=5 --trace-children=yes --child-silent-after-fork=yes --trace-children-skip-by-arg=python sst --add-lib-path=build ${1} 5> output_from_valgrind
#echo "See output_from_valgrind and search libMY_NAME.so for error entries."
# with suppressions, but these never worked
#valgrind --demangle=no --suppressions=docs/valgrind-python.supp --xml=yes --xml-fd=5 --trace-children=yes --child-silent-after-fork=yes --trace-children-skip-by-arg=python sst --add-lib-path=build ${1} 5> output_from_valgrind
# with suppressions
valgrind --tool=memcheck --trace-children=yes --leak-check=full --suppressions=./valgrind_supp/sst.supp sst --add-lib-path=build ${1}