Skip to content
Snippets Groups Projects
Commit d27afe7a authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

Updated cfar configs to leverage thanos better

Former-commit-id: ead74262e76000d3c37f11202ce93a1d7b99a87b
parent 15d33517
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
source $(dirname $0)/../ps_wrapper.source $0
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr -c diehard=on -c p1transform=on --config_name $(basename $0 .sh|sed "s/cfar_//") -c stack_stamp=on -c move_globals=on --step-option zipr:"--large_only:nog_on true" --step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr \
-c p1transform=on \
-c stack_stamp=on \
-c move_globals=on \
-c diehard=on \
--step-option zipr:"--large_only:nog_on true" \
--step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive \
--config_name $(basename $0 .sh|sed "s/cfar_//")
#!/bin/bash
source $(dirname $0)/../ps_wrapper.source $0
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr --step diehard=on --step p1transform=on --config_name $(basename $0 .sh|sed "s/cfar_//") --step move_globals=on --step-option zipr:"--large_only:nog_on true" --step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr \
-c p1transform=on \
-c move_globals=on \
-c diehard=on \
--step-option zipr:"--large_only:nog_on true" \
--step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive \
--config_name $(basename $0 .sh|sed "s/cfar_//")
#!/bin/bash
source $(dirname $0)/../ps_wrapper.source $0
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr -c diehard=on --step-option zipr:"--zipr:seed $$" --structured_heap --structured_noc --step-option zipr:"--large_only:on true" --structured_p1_canaries -c p1transform=on --config_name $(basename $0 .sh|sed "s/cfar_//") -c stack_stamp=on --structured_stack_stamp -c move_globals=on --structured_nog --step-option zipr:"--large_only:nog_on true" --step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr \
-c p1transform=on \
-c stack_stamp=on \
-c move_globals=on \
-c diehard=on \
--structured_heap --structured_noc --structured_nog --structured_stack_stamp --structured_p1_canaries \
--step-option zipr:"--zipr:seed $$" --step-option zipr:"--large_only:on true" \
--step-option zipr:"--large_only:nog_on true" \
--step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive \
--config_name $(basename $0 .sh|sed "s/cfar_//")
#!/bin/bash
source $(dirname $0)/../ps_wrapper.source $0
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr --step diehard=on --step-option zipr:"--zipr:seed $$" --structured_heap --structured_noc --step-option zipr:"--large_only:on true" --structured_p1_canaries --step p1transform=on --config_name $(basename $0 .sh|sed "s/cfar_//") --step move_globals=on --structured_nog --step-option zipr:"--large_only:nog_on true" --step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive
$PEASOUP_HOME/tools/cfar.sh "$@" --backend zipr \
-c p1transform=on \
-c move_globals=on \
-c diehard=on \
--step-option zipr:"--zipr:seed $$" --structured_heap --structured_noc --step-option zipr:"--large_only:on true" \
--structured_p1_canaries --structured_nog \
--step-option zipr:"--large_only:nog_on true" \
--step-option move_globals:-d --step-option move_globals:.interp --step-option move_globals:--aggressive \
--config_name $(basename $0 .sh|sed "s/cfar_//")
......@@ -769,11 +769,13 @@ do_plugins()
# first check if step can be invoked as a thanos plugin
if [ -x $plugin_path/lib$stepname.so ]; then
# if this step is a stop before/after step, cleanup anything outstanding so we can do the one step special.
if [[ $stepname == $stop_before_step ]] || [[ $stepname == $stop_after_step ]] ||
[[ $stepname == $dump_before_step ]] || [[ $stepname == $dump_after_step ]]; then
run_current_thanos_steps
fi
# add step to the block of contiguous thanos plugins
stop_if_error $stepname
if [[ $? -gt $error_threshold ]]; then
......@@ -782,11 +784,18 @@ do_plugins()
thanos_plugins="$thanos_plugins \"$stepname -optional --step-args $cloneid $value\""
fi
thanos_steps="$thanos_steps $stepname"
# if this step is a stop before/after step, do it special, so we exit early.
if [[ $stepname == $stop_before_step ]] || [[ $stepname == $stop_after_step ]]; then
# just run the step now.
perform_step $stepname none "$plugin_path/thanos.exe --no-redirect "$thanos_plugins""
thanos_steps=""
thanos_plugins=""
elif [[ $stepname == $dump_before_step ]] || [[ $stepname == $dump_after_step ]]; then
# just run the step now.
perform_step $stepname none "$plugin_path/thanos.exe "$thanos_plugins""
thanos_steps=""
thanos_plugins=""
fi
continue
elif [[ $thanos_steps ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment