WIP. basic state working: submitting statsd metrics (path, crashes, hangs)

This commit is contained in:
Edznux
2020-09-17 01:29:09 +02:00
parent ee206da389
commit 4561a9590f
3 changed files with 100 additions and 1 deletions

View File

@ -65,6 +65,8 @@
#include <dlfcn.h>
#include <sched.h>
#include <netdb.h>
#include <sys/wait.h>
#include <sys/time.h>
#ifndef USEMMAP
@ -76,6 +78,7 @@
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/types.h>
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__NetBSD__) || defined(__DragonFly__)
@ -951,6 +954,12 @@ void maybe_update_plot_file(afl_state_t *, double, double);
void show_stats(afl_state_t *);
void show_init_stats(afl_state_t *);
/* StatsD */
int statsd_init(char *host, int port);
int send_statsd_metric(afl_state_t *afl);
void statsd_format_metric(afl_state_t *afl, char *buff, int bufflen);
/* Run */
fsrv_run_result_t fuzz_run_target(afl_state_t *, afl_forkserver_t *fsrv, u32);