about summary refs log tree commit diff
path: root/fix.m4
diff options
context:
space:
mode:
Diffstat (limited to 'fix.m4')
-rw-r--r--fix.m48
1 files changed, 5 insertions, 3 deletions
diff --git a/fix.m4 b/fix.m4
index de4e446..065f91e 100644
--- a/fix.m4
+++ b/fix.m4
@@ -28,7 +28,7 @@ save_exit_code() {
 
 if test $# -lt 3
 then
-  echo Usage: taosc-fix workdir binary option...
+  echo Usage: taosc-fix WORKDIR EXECUTABLE OPTION...
   exit 1
 fi
 wd="$(realpath $1)"
@@ -84,8 +84,10 @@ test -s "$wd/patch-location"
 test -s "$wd/destinations"
 
 patch_loc=0x$(< "$wd/patch-location")
-e9tool -M addr=$patch_loc -P 'log(state)@collect' -o "$bin.collect" "$binary"
-e9tool -M addr=$patch_loc -P 'if dest(state)@patch goto'\
+e9tool -100 -M addr=$patch_loc -P 'report()@cover' -o "$bin.covered" "$binary"
+e9tool -100 -M addr=$patch_loc -P 'log(state)@collect'\
+  -o "$bin.collect" "$binary"
+e9tool -100 -M addr=$patch_loc -P 'if dest(state)@patch goto'\
   -o "$bin.patched" "$binary"
 exit
 stack_size=$(taosc-measure-stack "$binary" < "$wd/patch-location")