diff --git a/.gitattributes b/.gitattributes index 42b6d2989ee9c6f06efdbb45d4cd28d2fc014102..cd31832bbcb8ec681cac8c2045057c67916c2cae 100644 --- a/.gitattributes +++ b/.gitattributes @@ -669,6 +669,7 @@ tools/pin/itraceunique.cpp -text tools/pin/itraceunique.so -text tools/pin/pin -text tools/ps_analyze-ilronly.sh -text +tools/ps_analyze-lib.sh -text tools/ps_analyze.sh -text tools/ps_comp++.sh -text tools/ps_comp.sh -text diff --git a/tools/ps_analyze-lib.sh b/tools/ps_analyze-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..f89325a12df64c424f1acfab649fa174d1b371da --- /dev/null +++ b/tools/ps_analyze-lib.sh @@ -0,0 +1,25 @@ +#!/bin/sh + + +TVHEADLESS=1 $PEASOUP_HOME/tools/ps_analyze.sh $* \ + --step stratafy_with_pc_confine=off \ + --step create_binary_script=off \ + --step concolic=off \ + --step heaprand=off \ + --step double_free=off \ + --step pc_confine=off \ + --step isr=off \ + --step meds_static=on \ + --step pdb_register=on \ + --step pdb_create_tables=on \ + --step meds2pdb=on \ + --step fill_in_cfg=on \ + --step fill_in_indtargs=on \ + --step clone=on \ + --step fix_calls=on \ + --step p1transform=on \ + --step integertransform=on \ + --step ilr=on \ + --step generate_spri=on \ + --step spasm=on \ + --step copy_exe=off diff --git a/tools/ps_analyze.sh b/tools/ps_analyze.sh index b40a290dfb4c07a3f202faa7d97da20cbef165e7..e83cdbd655a21e6302a1b187ac04a1feacfe341e 100755 --- a/tools/ps_analyze.sh +++ b/tools/ps_analyze.sh @@ -78,6 +78,8 @@ check_options() if [ ! -z $1 ]; then exit -3; fi + + phases_off="$phases_off isr=off" } @@ -191,6 +193,7 @@ perform_step() echo "# ATTRIBUTE end_time=`date --iso-8601=seconds`" >> $logfile echo "# ATTRIBUTE peasoup_step_name=$step" >> $logfile echo "# ATTRIBUTE peasoup_step_number=$stepnum" >> $logfile + echo "# ATTRIBUTE peasoup_step_command=$command " >> $logfile echo "# ATTRIBUTE peasoup_step_exitcode=$command_exit" >> $logfile # move to the next step @@ -482,7 +485,7 @@ report_logs # go back to original directory cd - > /dev/null 2>&1 -cp $newdir/$name.sh $stratafied_exe +perform_step copy_exe cp $newdir/$name.sh $stratafied_exe # return the exit code of the copy as the final return value # So that a predictable return value is returned