diff --git a/fuzzers/binary_only/qemu_launcher/src/instance.rs b/fuzzers/binary_only/qemu_launcher/src/instance.rs index af55768d69..5693c8ae2b 100644 --- a/fuzzers/binary_only/qemu_launcher/src/instance.rs +++ b/fuzzers/binary_only/qemu_launcher/src/instance.rs @@ -1,5 +1,5 @@ use core::fmt::Debug; -use std::{fs, marker::PhantomData, ops::Range, process, time::Duration}; +use std::{fs, marker::PhantomData, ops::Range, path::PathBuf, process}; #[cfg(feature = "simplemgr")] use libafl::events::SimpleEventManager; @@ -23,8 +23,8 @@ use libafl::{ powersched::PowerSchedule, IndexesLenTimeMinimizerScheduler, PowerQueueScheduler, }, stages::{ - calibrate::CalibrationStage, power::StdPowerMutationalStage, IfStage, ShadowTracingStage, - StagesTuple, StatsStage, StdMutationalStage, + calibrate::CalibrationStage, power::StdPowerMutationalStage, AflStatsStage, IfStage, + ShadowTracingStage, StagesTuple, StdMutationalStage, }, state::{HasCorpus, StdState, UsesState}, Error, HasMetadata, NopFuzzer, @@ -137,7 +137,10 @@ impl Instance<'_, M> { let stats_stage = IfStage::new( |_, _, _, _| Ok(self.options.tui), - tuple_list!(StatsStage::new(Duration::from_secs(5))), + tuple_list!(AflStatsStage::builder() + .map_observer(&edges_observer) + .stats_file(PathBuf::from("stats.txt")) + .build()?), ); // Feedback to rate the interestingness of an input