Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
issue #8 include seu simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeslabreche committed Jan 9, 2024
2 parents ad6019e + 0989eab commit 8ed3a00
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
STATIC_FLAG=NO
CLEAN_FLAG=NO

# Delete backup folder if it exists because it contains the old build
# delete backup folder if it exists because it contains the old build
rm -rf backup

# parse arguments
Expand Down
2 changes: 1 addition & 1 deletion build-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
STATIC_FLAG=NO
CLEAN_FLAG=NO

# Delete backup folder if it exists because it contains the old build
# delete backup folder if it exists because it contains the old build
rm -rf backup

# parse arguments
Expand Down
27 changes: 27 additions & 0 deletions start_exp272.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,33 @@ if [ ! -f "$EXP_HOME_PATH/backup/$(basename $EXP_DOOM_BIN_PATH)" ]; then
cp "$EXP_DOOM_BIN_PATH" "$EXP_HOME_PATH/backup/"
fi

# Simulate SEU rates of 0.01% and 0.1%
#seu_rates="0.0001 0.001"

# Simulate SEU rate of 0.0001%
seu_rates="0.000001"

# Target files to corrupt with the SEU simulations
#seu_target_files="${EXP_LIB_PATH}/libm.so.6 ${EXP_LIB_PATH}/libc.so.6"
#seu_target_files="${EXP_LIB_PATH}/libm.so.6"
#seu_target_files="${EXP_LIB_PATH}/libc.so.6"
seu_target_files="${EXP_DOOM_BIN_PATH}"

# Create the toGround and output folder if it doesn't exist
mkdir -p $EXP_TOGROUND_PATH/
mkdir -p $EXP_HOME_PATH/output

# Create a lib directory and copy into it the system's libc and libm libraries
# Do this so that we can safely corrup those library to simulate SEU induced bit flips
# UPDATE: This experiment is put on hold
#mkdir -p $EXP_LIB_PATH/

# Make a copy the doom executable so that we can restore it after corrupting it
# Check if the file does not already exist in the backup directory from a previous run
mkdir -p $EXP_HOME_PATH/backup
if [ ! -f "$EXP_HOME_PATH/backup/$(basename $EXP_DOOM_BIN_PATH)" ]; then
cp "$EXP_DOOM_BIN_PATH" "$EXP_HOME_PATH/backup/"
fi

# Sets LD_LIBRARY_PATH for the duration of this wrapper script,, directing it to use libraries from the experiment's lib directory
# This change is only in effect for the duration of the script and any processes that the script launches
Expand Down

0 comments on commit 8ed3a00

Please sign in to comment.