From a65c64791e25ca365f36b05376f6dfed60f7f5c8 Mon Sep 17 00:00:00 2001 From: Bjoern Doebel Date: Mon, 21 Oct 2013 14:52:20 +0200 Subject: [PATCH] L4Sys experiment: add CR3 detection to prep run Change-Id: Iebbc0309695ee6a7bb8c68fd6ffa24b73ffd7ee5 --- scripts/l4sys/l4sys-prepare.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/l4sys/l4sys-prepare.sh b/scripts/l4sys/l4sys-prepare.sh index 94364e36..0d7d238f 100755 --- a/scripts/l4sys/l4sys-prepare.sh +++ b/scripts/l4sys/l4sys-prepare.sh @@ -46,6 +46,14 @@ function BuildNRun { # backup experiment config cp $CFG $BAK +#echo -e "\033[35;1m[$(date)] ================== Step 0: Getting CR3 =================\033[0m" +#cat $BAK | sed -e 's/PREPARATION_STEP.*/PREPARATION_STEP 4/' >$CFG +#buildfail +#cr3=`$FAIL_CMD -f bochsrc-bd 2>/dev/null | grep CR3 | sed -e 's/ //g' | cut -d\= -f 2` +#echo \#defne L4SYS_ADDRESS_SPACE 0x$cr3 +#cat $BAK | sed -e "s/L4SYS_ADDRESS_SPACE .*/L4SYS_ADDRESS_SPACE 0x$cr3/" >$CFG +#mv $CFG $BAK + echo -e "\033[35;1m[$(date)] ================== Step 1: Generating Snapshot =================\033[0m" cat $BAK | sed -e 's/PREPARATION_STEP.*/PREPARATION_STEP 1/' >$CFG BuildNRun -f bochsrc-bd