From 8644c42482f02f7cd86decbc00ba29aa9c0ce9c0 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Sun, 5 Jul 2020 13:48:14 +0200 Subject: check for enough plot data --- afl-plot | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'afl-plot') diff --git a/afl-plot b/afl-plot index 1074552a..66c16870 100755 --- a/afl-plot +++ b/afl-plot @@ -68,6 +68,15 @@ if [ ! -f "$inputdir/plot_data" ]; then fi +LINES=`cat "$inputdir/plot_data" | wc -l` + +if [ "$LINES" -lt 3 ]; then + + echo "[-] Error: plot_data carries too little data, let it run longer." 1>&2 + exit 1 + +fi + BANNER="`cat "$inputdir/fuzzer_stats" 2> /dev/null | grep '^afl_banner ' | cut -d: -f2- | cut -b2-`" test "$BANNER" = "" && BANNER="(none)" -- cgit 1.4.1 From 37697127dce10ec89e07c20fb63d0c7dbeb3586c Mon Sep 17 00:00:00 2001 From: Toralf Förster Date: Sun, 5 Jul 2020 15:35:24 +0200 Subject: afl-plot: scale y-axis of low_freq.png with integers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Toralf Förster --- afl-plot | 3 +++ 1 file changed, 3 insertions(+) (limited to 'afl-plot') diff --git a/afl-plot b/afl-plot index 66c16870..cde2db0b 100755 --- a/afl-plot +++ b/afl-plot @@ -127,6 +127,7 @@ set key outside set autoscale xfixmin set autoscale xfixmax +set ytics auto plot '$inputdir/plot_data' using 1:4 with filledcurve x1 title 'total paths' linecolor rgb '#000000' fillstyle transparent solid 0.2 noborder, \\ '' using 1:3 with filledcurve x1 title 'current path' linecolor rgb '#f0f0f0' fillstyle transparent solid 0.5 noborder, \\ '' using 1:5 with lines title 'pending paths' linecolor rgb '#0090ff' linewidth 3, \\ @@ -136,6 +137,7 @@ plot '$inputdir/plot_data' using 1:4 with filledcurve x1 title 'total paths' lin set terminal png truecolor enhanced size 1000,200 butt set output '$outputdir/low_freq.png' +set ytics 1 plot '$inputdir/plot_data' using 1:8 with filledcurve x1 title '' linecolor rgb '#c00080' fillstyle transparent solid 0.2 noborder, \\ '' using 1:8 with lines title ' uniq crashes' linecolor rgb '#c00080' linewidth 3, \\ '' using 1:9 with lines title 'uniq hangs' linecolor rgb '#c000f0' linewidth 3, \\ @@ -144,6 +146,7 @@ plot '$inputdir/plot_data' using 1:8 with filledcurve x1 title '' linecolor rgb set terminal png truecolor enhanced size 1000,200 butt set output '$outputdir/exec_speed.png' +set ytics auto plot '$inputdir/plot_data' using 1:11 with filledcurve x1 title '' linecolor rgb '#0090ff' fillstyle transparent solid 0.2 noborder, \\ '$inputdir/plot_data' using 1:11 with lines title ' execs/sec' linecolor rgb '#0090ff' linewidth 3 smooth bezier; -- cgit 1.4.1 From 2f5cdb72c896d44d8aa613c94e9c102aa3bddcae Mon Sep 17 00:00:00 2001 From: Toralf Förster Date: Mon, 6 Jul 2020 19:23:13 +0200 Subject: afl-plot: set xlabel to show that times are in UTC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Toralf Förster --- afl-plot | 2 ++ 1 file changed, 2 insertions(+) (limited to 'afl-plot') diff --git a/afl-plot b/afl-plot index cde2db0b..0faed0ec 100755 --- a/afl-plot +++ b/afl-plot @@ -127,6 +127,8 @@ set key outside set autoscale xfixmin set autoscale xfixmax +set xlabel "all times in UTC" font "small" + set ytics auto plot '$inputdir/plot_data' using 1:4 with filledcurve x1 title 'total paths' linecolor rgb '#000000' fillstyle transparent solid 0.2 noborder, \\ '' using 1:3 with filledcurve x1 title 'current path' linecolor rgb '#f0f0f0' fillstyle transparent solid 0.5 noborder, \\ -- cgit 1.4.1