crate structure

This commit is contained in:
Alwin Berger 2022-02-09 12:55:21 +01:00
parent dbd6391b59
commit 9369eae37b
4 changed files with 11 additions and 20 deletions

View File

@ -2,7 +2,7 @@
use libafl::mutators::ByteFlipMutator; use libafl::mutators::ByteFlipMutator;
use libafl::mutators::BitFlipMutator; use libafl::mutators::BitFlipMutator;
use crate::worst::LenTimeMaximizerCorpusScheduler; use wcet_qemu_sys::worst::LenTimeMaximizerCorpusScheduler;
use libafl::corpus::MinimizerCorpusScheduler; use libafl::corpus::MinimizerCorpusScheduler;
use hashbrown::HashMap; use hashbrown::HashMap;
use libafl::events::SimpleEventManager; use libafl::events::SimpleEventManager;
@ -65,7 +65,7 @@ use libafl_qemu::{
clock::ClockFeedback, clock::ClockFeedback,
clock::QemuClockIncreaseFeedback clock::QemuClockIncreaseFeedback
}; };
use crate::worst::{HitFeedback,HitcountsMapObserver,HitImprovingFeedback}; use wcet_qemu_sys::worst::{HitFeedback,HitcountsMapObserver,HitImprovingFeedback};
/// The fuzzer main /// The fuzzer main

View File

@ -1,16 +1,16 @@
//! A singlethreaded QEMU fuzzer that can auto-restart. //! A singlethreaded QEMU fuzzer that can auto-restart.
use crate::worst::DumpMapFeedback; use wcet_qemu_sys::worst::DumpMapFeedback;
use crate::worst::DummyFeedback; use wcet_qemu_sys::worst::DummyFeedback;
use libafl_qemu::QemuInstrumentationFilter; use libafl_qemu::QemuInstrumentationFilter;
use crate::system_trace::QemuSystemStateHelper; use wcet_qemu_sys::system_trace::QemuSystemStateHelper;
use libafl_qemu::QemuExecutor; use libafl_qemu::QemuExecutor;
use libafl::Evaluator; use libafl::Evaluator;
use libafl::inputs::Input; use libafl::inputs::Input;
use libafl::corpus::InMemoryCorpus; use libafl::corpus::InMemoryCorpus;
use libafl::events::SimpleEventManager; use libafl::events::SimpleEventManager;
use libafl::stats::SimpleStats; use libafl::stats::SimpleStats;
use crate::worst::HitcountsMapObserver; use wcet_qemu_sys::worst::HitcountsMapObserver;
use clap::{App, Arg}; use clap::{App, Arg};
use std::{ use std::{
env, env,

View File

@ -0,0 +1,5 @@
#![feature(iter_advance_by)]
#[cfg(target_os = "linux")]
pub mod worst;
pub mod freertos;
pub mod system_trace;

View File

@ -1,14 +0,0 @@
#![feature(iter_advance_by)]
#[cfg(target_os = "linux")]
pub mod fuzzer;
pub mod showmap;
pub mod worst;
pub mod freertos;
pub mod system_trace;
fn main() {
#[cfg(all(target_os = "linux", feature = "showmap"))]
showmap::main();
#[cfg(all(target_os = "linux", not(feature = "showmap")))]
fuzzer::main();
}