diff options
author | David Greene <greened@obbligato.org> | 2018-10-22 14:04:13 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2018-10-22 14:04:13 +0000 |
commit | 7efbd8daf4cbb911518a591186cc8fce87ab0c22 (patch) | |
tree | 5373cbfffe0ae3e55caa513b8e36237b583a68b3 /llvm/utils/bisect-skip-count | |
parent | 13c5ab2e27ad72a946be00adfc13f3ac310493f8 (diff) | |
download | bcm5719-llvm-7efbd8daf4cbb911518a591186cc8fce87ab0c22.tar.gz bcm5719-llvm-7efbd8daf4cbb911518a591186cc8fce87ab0c22.zip |
Document bisect-skip-count
Provide an example of how to use bisect-skip count to find bugs.
Differential revision: https://reviews.llvm.org/D52314
llvm-svn: 344903
Diffstat (limited to 'llvm/utils/bisect-skip-count')
-rwxr-xr-x | llvm/utils/bisect-skip-count | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/utils/bisect-skip-count b/llvm/utils/bisect-skip-count index b18b4f41481..f4f8ddcec79 100755 --- a/llvm/utils/bisect-skip-count +++ b/llvm/utils/bisect-skip-count @@ -1,6 +1,25 @@ #!/usr/bin/env python # This script is used to bisect skip and count arguments for --debug-counter. # It is similar to bisect, except it understands how to increase skip and decrease count +# +# Typical usage: +# +# bisect-skip-count bisect-command.sh "%(skip)d" "%(count)d" 2>&1 | tee bisect.out +# +# bisect-command.sh is something like this: +# #! /bin/bash +# +# skip=$1 +# count=$2 +# +# opt -debug-counter=my-counter-skip=${skip},my-counter-count=${count} +# ... Test output of opt and exit zero for pass, non-zero for fail +# +# Examine bisect.out to look for "Last good skip" and "Last good +# count" to find the values of the counter that produce a passing +# result. Incrementing the last good count by one or decrementing the +# last good skip by one should produce a failure. +# import os import sys import argparse |