mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
edges in afl-plot
This commit is contained in:
11
afl-plot
11
afl-plot
@ -99,7 +99,7 @@ if [ ! -d "$outputdir" ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f "$outputdir/high_freq.png" "$outputdir/low_freq.png" "$outputdir/exec_speed.png"
|
rm -f "$outputdir/high_freq.png" "$outputdir/low_freq.png" "$outputdir/exec_speed.png" "$outputdir/edges.png"
|
||||||
mv -f "$outputdir/index.html" "$outputdir/index.html.orig" 2>/dev/null
|
mv -f "$outputdir/index.html" "$outputdir/index.html.orig" 2>/dev/null
|
||||||
|
|
||||||
echo "[*] Generating plots..."
|
echo "[*] Generating plots..."
|
||||||
@ -152,6 +152,12 @@ set ytics auto
|
|||||||
plot '$inputdir/plot_data' using 1:11 with filledcurve x1 title '' linecolor rgb '#0090ff' fillstyle transparent solid 0.2 noborder, \\
|
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;
|
'$inputdir/plot_data' using 1:11 with lines title ' execs/sec' linecolor rgb '#0090ff' linewidth 3 smooth bezier;
|
||||||
|
|
||||||
|
set terminal png truecolor enhanced size 1000,300 butt
|
||||||
|
set output '$outputdir/edges.png'
|
||||||
|
|
||||||
|
set ytics auto
|
||||||
|
plot '$inputdir/plot_data' using 1:13 with lines title ' edges' linecolor rgb '#0090ff' linewidth 3
|
||||||
|
|
||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
) | gnuplot
|
) | gnuplot
|
||||||
@ -172,6 +178,7 @@ cat >"$outputdir/index.html" <<_EOF_
|
|||||||
<tr><td><b>Generated on:</b></td><td>`date`</td></tr>
|
<tr><td><b>Generated on:</b></td><td>`date`</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<p>
|
<p>
|
||||||
|
<img src="edges.png" width=1000 height=300>
|
||||||
<img src="high_freq.png" width=1000 height=300><p>
|
<img src="high_freq.png" width=1000 height=300><p>
|
||||||
<img src="low_freq.png" width=1000 height=200><p>
|
<img src="low_freq.png" width=1000 height=200><p>
|
||||||
<img src="exec_speed.png" width=1000 height=200>
|
<img src="exec_speed.png" width=1000 height=200>
|
||||||
@ -183,7 +190,7 @@ _EOF_
|
|||||||
# sensitive, this seems like a reasonable trade-off.
|
# sensitive, this seems like a reasonable trade-off.
|
||||||
|
|
||||||
chmod 755 "$outputdir"
|
chmod 755 "$outputdir"
|
||||||
chmod 644 "$outputdir/high_freq.png" "$outputdir/low_freq.png" "$outputdir/exec_speed.png" "$outputdir/index.html"
|
chmod 644 "$outputdir/high_freq.png" "$outputdir/low_freq.png" "$outputdir/exec_speed.png" "$outputdir/edges.png" "$outputdir/index.html"
|
||||||
|
|
||||||
echo "[+] All done - enjoy your charts!"
|
echo "[+] All done - enjoy your charts!"
|
||||||
|
|
||||||
|
@ -2026,7 +2026,7 @@ void setup_dirs_fds(afl_state_t *afl) {
|
|||||||
fprintf(afl->fsrv.plot_file,
|
fprintf(afl->fsrv.plot_file,
|
||||||
"# unix_time, cycles_done, cur_path, paths_total, "
|
"# unix_time, cycles_done, cur_path, paths_total, "
|
||||||
"pending_total, pending_favs, map_size, unique_crashes, "
|
"pending_total, pending_favs, map_size, unique_crashes, "
|
||||||
"unique_hangs, max_depth, execs_per_sec, edges_found\n");
|
"unique_hangs, max_depth, execs_per_sec, total_execs, edges_found\n");
|
||||||
fflush(afl->fsrv.plot_file);
|
fflush(afl->fsrv.plot_file);
|
||||||
|
|
||||||
/* ignore errors */
|
/* ignore errors */
|
||||||
|
@ -355,7 +355,8 @@ void write_stats_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg,
|
|||||||
void maybe_update_plot_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg,
|
void maybe_update_plot_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg,
|
||||||
double eps) {
|
double eps) {
|
||||||
|
|
||||||
if (unlikely(afl->plot_prev_qp == afl->queued_paths &&
|
if (unlikely(afl->stop_soon) ||
|
||||||
|
unlikely(afl->plot_prev_qp == afl->queued_paths &&
|
||||||
afl->plot_prev_pf == afl->pending_favored &&
|
afl->plot_prev_pf == afl->pending_favored &&
|
||||||
afl->plot_prev_pnf == afl->pending_not_fuzzed &&
|
afl->plot_prev_pnf == afl->pending_not_fuzzed &&
|
||||||
afl->plot_prev_ce == afl->current_entry &&
|
afl->plot_prev_ce == afl->current_entry &&
|
||||||
|
Reference in New Issue
Block a user