minimal changes

This commit is contained in:
Alwin Berger 2023-01-05 13:30:24 +01:00
parent 9b9fbc3677
commit 6a9df35e28
2 changed files with 2 additions and 3 deletions

View File

@ -106,7 +106,6 @@ impl QemuClockObserver {
/// Gets the runtime for the last execution of this target. /// Gets the runtime for the last execution of this target.
#[must_use] #[must_use]
pub fn last_runtime(&self) -> u64 { pub fn last_runtime(&self) -> u64 {
// println!("Number of Ticks: {} <- {} {}",self.end_tick - self.start_tick, self.end_tick, self.start_tick);
self.end_tick - self.start_tick self.end_tick - self.start_tick
} }
} }
@ -130,8 +129,8 @@ where
fn post_exec(&mut self, _state: &mut S, _input: &S::Input, _exit_kind: &ExitKind) -> Result<(), Error> { fn post_exec(&mut self, _state: &mut S, _input: &S::Input, _exit_kind: &ExitKind) -> Result<(), Error> {
unsafe { self.end_tick = emu::icount_get_raw() }; unsafe { self.end_tick = emu::icount_get_raw() };
self.last_runtime();
// println!("clock post {}", self.end_tick); // println!("clock post {}", self.end_tick);
println!("Number of Ticks: {} <- {} {}",self.end_tick - self.start_tick, self.end_tick, self.start_tick);
Ok(()) Ok(())
} }
} }

View File

@ -131,7 +131,7 @@ pub fn fuzz() {
.expect("Symbol or env BREAKPOINT not found"); .expect("Symbol or env BREAKPOINT not found");
println!("Breakpoint address = {:#x}", breakpoint); println!("Breakpoint address = {:#x}", breakpoint);
unsafe { unsafe {
libafl_int_offset = 422483; libafl_int_offset = 0;
} }
let mut run_client = |state: Option<_>, mut mgr, _core_id| { let mut run_client = |state: Option<_>, mut mgr, _core_id| {