summaryrefslogtreecommitdiff
path: root/honggfuzz.c
diff options
context:
space:
mode:
authorrobert.swiecki@gmail.com <robert.swiecki@gmail.com@f4334a76-505f-ddcd-06be-78435f765c3c>2015-02-28 05:01:37 +0000
committerrobert.swiecki@gmail.com <robert.swiecki@gmail.com@f4334a76-505f-ddcd-06be-78435f765c3c>2015-02-28 05:01:37 +0000
commit6f31991b1203e7b2f19c533f8e2d08e0ba6ada65 (patch)
tree698fd0b67de00d718a762d498c4911f48a850aba /honggfuzz.c
parenta63017f1491f3bc40ec85ae5c844f299b78557fe (diff)
downloadhonggfuzz-6f31991b1203e7b2f19c533f8e2d08e0ba6ada65.tar.gz
Use less syscalls in the logging subsystem
Diffstat (limited to 'honggfuzz.c')
-rw-r--r--honggfuzz.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/honggfuzz.c b/honggfuzz.c
index 011cba7a..47d4792f 100644
--- a/honggfuzz.c
+++ b/honggfuzz.c
@@ -64,29 +64,29 @@ static void usage(bool exit_success)
" current timestamp to the output filenames (default: " AB "false" AC ")\n"
" [" AB "-d val" AC "] : debug level (0 - FATAL ... 4 - DEBUG), (default: '" AB "3" AC
"' [INFO])\n"
- " [" AB "-e val" AC "] : file extension (e.g swf), (default: '" AB "fuzz" AC "')\n"
+ " [" AB "-e val" AC "] : file extension (e.g. 'swf'), (default: '" AB "fuzz" AC "')\n"
" [" AB "-r val" AC "] : flip rate, (default: '" AB "0.001" AC "')\n"
" [" AB "-c val" AC "] : external command modifying the input corpus of files,\n"
" instead of -r/-m (default: " AB "none" AC ")\n"
" [" AB "-t val" AC "] : timeout (in secs), (default: '" AB "3" AC "' [0 - no timeout])\n"
" [" AB "-a val" AC "] : address limit (from si.si_addr) below which crashes\n"
" are not reported, (default: '" AB "0" AC "' [suggested: 65535])\n"
- " [" AB "-n val" AC "] : number of concurrent fuzzing processes, (default: '" AB "5" AC "')\n"
+ " [" AB "-n val" AC "] : number of concurrent fuzzing threads, (default: '" AB "5" AC "')\n"
" [" AB "-N val" AC "] : number of fuzzing mutations, (default: '" AB "0" AC "' [infinte])\n"
" [" AB "-l val" AC "] : per process memory limit in MiB, (default: '" AB "0" AC "' [no limit])\n"
- " [" AB "-R val" AC "] : append crash report to this file\n"
- " (default: '" AB _HF_REPORT_FILE AC "')\n"
-#if defined(_HF_ARCH_LINUX)
+ " [" AB "-R val" AC "] : write report to this file, (default: '" AB _HF_REPORT_FILE AC "')\n"
+ " [" AB "-F val" AC "] : Maximal size of files created by the fuzzer (default '" AB "1048576" AC "')\n"
+#if _HF_ARCH == LINUX
" [" AB "-p val" AC "] : [Linux] attach to a pid (and its thread group), instead of \n"
" monitoring a previously created process, default: '" AB "0" AC "' (none)\n"
" [" AB "-D val" AC "] : [Linux] create a file dynamically with Linux perf counters,\n"
" can be used with or without the '-f' flag (initial file contents)\n"
" (default: " AB " none " AC ")\n"
" Available counters: \n"
- " " AB "'i' " AC "- PERF_COUNT_HW_INSTRUCTIONS (total)\n"
- " " AB "'b' " AC "- PERF_COUNT_HW_BRANCH_INSTRUCTIONS (total)\n"
- " " AB "'p' " AC "- PERF_SAMPLE_IP (unique IPs) (newer Intel CPUs)\n"
- " [" AB "-F val" AC "] : [Linux] Maximal size of a dynamic file (-D)\n"
+ " " AB "'i' " AC "- PERF_COUNT_HW_INSTRUCTIONS (total IPs)\n"
+ " " AB "'b' " AC "- PERF_COUNT_HW_BRANCH_INSTRUCTIONS (total jumps/calls)\n"
+ " " AB "'p' " AC "- PERF_SAMPLE_IP/PERF_SAMPLE_ADDR (unique branches)\n"
+ " (newer Intel CPUs only)\n"
#endif /* defined(_HF_ARCH_LINUX) */
"Usage:"
AB " " PROG_NAME " -f input_dir -- /usr/bin/tiffinfo -D " _HF_FILE_PLACEHOLDER AC "\n");