(path: &std::path::Path, blocks: &Vec<TraceEntry>)
| 220 | } |
| 221 | |
| 222 | pub fn save_path_trace(path: &std::path::Path, blocks: &Vec<TraceEntry>) { |
| 223 | use std::io::Write; |
| 224 | |
| 225 | let mut output = std::io::BufWriter::new(std::fs::File::create(path).unwrap()); |
| 226 | writeln!(output, "pc,sp,icount,fuzz_offset,last_read,last_value").unwrap(); |
| 227 | for TraceEntry { pc, sp, icount, fuzz_offset, last_read, last_value } in blocks { |
| 228 | writeln!(output, "{pc:#x},{sp:#x},{icount},{fuzz_offset},{last_read:#x},{last_value:#x}") |
| 229 | .unwrap(); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | pub fn save_mmio_reads(path: &std::path::Path, reads: &Vec<(u64, u64, u8)>) { |
| 234 | use std::io::Write; |
no outgoing calls
no test coverage detected