blob: 36c4b21ae7d9274310503661d78c4267616dcb06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#/bin/bash
# Name: check.cachegrind.sh
# Author: Ladar Levison
#
# Description: Used for launching the magmad unit tests. The tests are executed atop the Valgrind helgrind utility.
LINK=`readlink -f $0`
BASE=`dirname $LINK`
cd $BASE/../../../
MAGMA_DIST=`pwd`
# add for suppressions --gen-suppressions=all
# self modifying code --smc-check=[none,stack,all]
#
valgrind --tool=cachegrind \
--trace-children=yes \
--child-silent-after-fork=yes \
--run-libc-freeres=yes \
--demangle=yes \
--num-callers=50 \
--error-limit=no \
--show-below-main=no \
--max-stackframe=20000000 \
--dsymutil=yes \
--fullpath-after= \
--read-var-info=yes \
--cache-sim=yes \
--branch-sim=no \
--cachegrind-out-file=$HOME/cachegrind.out.%p \
--suppressions=/usr/lib64/valgrind/default.supp \
--suppressions=$MAGMA_DIST/sandbox/etc/magma.suppressions \
$MAGMA_DIST/magmad.check $MAGMA_DIST/sandbox/etc/magma.sandbox.config
|