Struct AFLStat

Source
pub struct AFLStat {
Show 30 fields pub start_time: u64, pub last_update: u64, pub fuzzer_pid: u32, pub cycles_done: i32, pub execs_done: i64, pub execs_per_sec: f64, pub paths_total: i64, pub paths_favored: i64, pub paths_found: i64, pub paths_imported: i64, pub max_depth: i32, pub cur_path: i64, pub pending_favs: i64, pub pending_total: i64, pub variable_paths: i64, pub stability: f64, pub bitmap_cvg: f64, pub unique_crashes: i32, pub unique_hangs: i32, pub last_path: u64, pub last_crash: u64, pub last_hang: u64, pub execs_since_crash: i64, pub exec_timeout: i32, pub slowest_exec_ms: i32, pub peak_rss_mb: i32, pub afl_banner: String, pub afl_version: String, pub target_mode: String, pub command_line: String,
}
Expand description

AFL status data.

This is the primary struct in this crate.

Fields§

§start_time: u64§last_update: u64§fuzzer_pid: u32§cycles_done: i32§execs_done: i64§execs_per_sec: f64§paths_total: i64§paths_favored: i64§paths_found: i64§paths_imported: i64§max_depth: i32§cur_path: i64§pending_favs: i64§pending_total: i64§variable_paths: i64§stability: f64§bitmap_cvg: f64§unique_crashes: i32§unique_hangs: i32§last_path: u64§last_crash: u64§last_hang: u64§execs_since_crash: i64§exec_timeout: i32§slowest_exec_ms: i32§peak_rss_mb: i32§afl_banner: String§afl_version: String§target_mode: String§command_line: String

Implementations§

Source§

impl AFLStat

Source

pub fn parse(text: &str) -> Result<Self>

Parse the content of fuzzer_stats file.

Source

pub fn load(stat_file: &Path) -> Result<Self>

Load AFL status data from the given fuzzer_stats file.

§Example
let stat = AFLStat::load("path/to/fuzz/dir/fuzzer_stats").unwrap();

Trait Implementations§

Source§

impl Clone for AFLStat

Source§

fn clone(&self) -> AFLStat

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AFLStat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AFLStat

Source§

fn default() -> AFLStat

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.