diff --git a/cache_slice/src/bin/scan.rs b/cache_slice/src/bin/scan.rs index dddd9f3..4ec4f53 100644 --- a/cache_slice/src/bin/scan.rs +++ b/cache_slice/src/bin/scan.rs @@ -8,7 +8,7 @@ pub fn main() { let nb_cores = core_per_package(); println!("Found {} cores", nb_cores); - let target = vec![0x0123456789abcdefu64; 64]; + let target = vec![0x0123456789abcdefu64; 1024]; let old = sched_getaffinity(Pid::from_raw(0)).unwrap(); let mut core_set = Vec::new(); diff --git a/cache_slice/src/lib.rs b/cache_slice/src/lib.rs index 828fd3a..63af753 100644 --- a/cache_slice/src/lib.rs +++ b/cache_slice/src/lib.rs @@ -113,6 +113,7 @@ fn monitor_core(addr: *const u8, cpu: u8) -> Result, Error> { #[cfg(debug_assertions)] eprint!("Resetting counters..."); for i in 0..max_cbox { + #[cfg(debug_assertions)] eprint!(" {i}"); write_msr_on_cpu(performance_counters.msr_unc_cbo_per_ctr0[i], cpu, performance_counters.val_reset_ctrs)?; }