summaryrefslogtreecommitdiff
path: root/loperf
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2013-02-12 18:51:48 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2013-02-12 19:15:10 +0100
commit39feb28fd6dc8fdabe0cbc66af81ddee1f9c6525 (patch)
tree9669621983a8e22667228706a8962f01d7999215 /loperf
parent6a34502cde29bb53665e24ba5bc72ecc0eaddf03 (diff)
loperf: Allow to use optional valgrind paramaters
This can be used e.g. for special cache settings (--I1, --D1, --LL)
Diffstat (limited to 'loperf')
-rwxr-xr-xloperf/loperf.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/loperf/loperf.sh b/loperf/loperf.sh
index b681ecc..201999c 100755
--- a/loperf/loperf.sh
+++ b/loperf/loperf.sh
@@ -42,6 +42,7 @@ fi
export OOO_EXIT_POST_STARTUP=1
export OOO_DISABLE_RECOVERY=1
OFFICEBIN="$1"
+VALGRIND_PARAMS="$2"
TESTDATE=$(date --rfc-3339=second)
@@ -60,11 +61,11 @@ mkdir -p "$CSV_LOG_DIR" > /dev/null 2>&1
function launch {
if test "$1" = ""; then
- valgrind --tool=callgrind --callgrind-out-file="$CG_LOG"-offload.log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" --splash-pipe=0 --headless > /dev/null 2>&1
+ valgrind --tool=callgrind $VALGRIND_PARAMS --callgrind-out-file="$CG_LOG"-offload.log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" --splash-pipe=0 --headless > /dev/null 2>&1
echo -n "$CG_LOG"-offload.log
else
fn=${1#docs\/}
- valgrind --tool=callgrind --callgrind-out-file="$CG_LOG"-onload-"$fn".log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" "$1" --splash-pipe=0 --headless > /dev/null 2>&1
+ valgrind --tool=callgrind $VALGRIND_PARAMS --callgrind-out-file="$CG_LOG"-onload-"$fn".log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" "$1" --splash-pipe=0 --headless > /dev/null 2>&1
echo -n "$CG_LOG"-onload-"$fn".log
fi
}