about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-09 11:22:27 +0200
committervan Hauser <vh@thc.org>2020-06-09 11:22:27 +0200
commit32a40ab5c597914fe0a30c96bad3bf3da0eb4aeb (patch)
tree6d089feadfe701d1fc8239241cef60ae69d6a3b5
parentc2087b7c137903c27ea8c6df20a2869e076c8bf2 (diff)
downloadafl++-32a40ab5c597914fe0a30c96bad3bf3da0eb4aeb.tar.gz
add cpu affinity to fuzzer_stats
-rw-r--r--src/afl-fuzz-stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index 1f5552e0..8e364d54 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -98,6 +98,7 @@ void write_stats_file(afl_state_t *afl, double bitmap_cvg, double stability,
       "exec_timeout      : %u\n"
       "slowest_exec_ms   : %u\n"
       "peak_rss_mb       : %lu\n"
+      "cpu_affinity      : %d\n"
       "edges_found       : %u\n"
       "var_byte_count    : %u\n"
       "afl_banner        : %s\n"
@@ -123,7 +124,7 @@ void write_stats_file(afl_state_t *afl, double bitmap_cvg, double stability,
 #else
       (unsigned long int)(rus.ru_maxrss >> 10),
 #endif
-      t_bytes, afl->var_byte_count, afl->use_banner,
+      afl->cpu_aff, t_bytes, afl->var_byte_count, afl->use_banner,
       afl->unicorn_mode ? "unicorn" : "", afl->fsrv.qemu_mode ? "qemu " : "",
       afl->non_instrumented_mode ? " non_instrumented " : "",
       afl->no_forkserver ? "no_fsrv " : "", afl->crash_mode ? "crash " : "",