about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-10-10 10:36:48 +0200
committerGitHub <noreply@github.com>2020-10-10 10:36:48 +0200
commitc075003bd24f476347c665c49a5fb438ba055668 (patch)
tree60048085f605ed408d88f0f52339596f89199e74 /src/afl-fuzz.c
parent1ab83d7d893e6d8259e3212316a4b0912b630b22 (diff)
parent4cb4772e2af9511c2320de833a81bc43500cef14 (diff)
downloadafl++-c075003bd24f476347c665c49a5fb438ba055668.tar.gz
Merge pull request #571 from Edznux/statsd_implem
Statsd support implementation
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index cf0a30c9..dc0eb4a7 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -194,6 +194,11 @@ static void usage(u8 *argv0, int more_help) {
       "AFL_SKIP_BIN_CHECK: skip the check, if the target is an executable\n"
       "AFL_SKIP_CPUFREQ: do not warn about variable cpu clocking\n"
       "AFL_SKIP_CRASHES: during initial dry run do not terminate for crashing inputs\n"
+      "AFL_STATSD: enables StatsD metrics collection"
+      "AFL_STATSD_HOST: change default statsd host (default 127.0.0.1)"
+      "AFL_STATSD_PORT: change default statsd port (default: 8125)"
+      "AFL_STATSD_TAGS_FLAVOR: change default statsd tags format (default will disable tags)."
+      "                        Supported formats are: 'dogstatsd', 'librato', 'signalfx' and 'influxdb'"
       "AFL_TMPDIR: directory to use for input file generation (ramdisk recommended)\n"
       //"AFL_PERSISTENT: not supported anymore -> no effect, just a warning\n"
       //"AFL_DEFER_FORKSRV: not supported anymore -> no effect, just a warning\n"
@@ -890,6 +895,8 @@ int main(int argc, char **argv_orig, char **envp) {
 
   }
 
+  if (unlikely(afl->afl_env.afl_statsd)) { statsd_setup_format(afl); }
+
   if (strchr(argv[optind], '/') == NULL && !afl->unicorn_mode) {
 
     WARNF(cLRD