MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / save_mmio_reads

Function save_mmio_reads

hail-fuzz/src/debugging/trace.rs:233–244  ·  view source on GitHub ↗
(path: &std::path::Path, reads: &Vec<(u64, u64, u8)>)

Source from the content-addressed store, hash-verified

231}
232
233pub fn save_mmio_reads(path: &std::path::Path, reads: &Vec<(u64, u64, u8)>) {
234 use std::io::Write;
235
236 if reads.is_empty() {
237 return;
238 }
239
240 let mut output = std::io::BufWriter::new(std::fs::File::create(path).unwrap());
241 for (addr, value, size) in reads {
242 writeln!(output, "{addr:#x},{size:#x},{value:#x}").unwrap();
243 }
244}

Callers 1

replay_traceFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected