diff --git a/cache_slice/src/bin/scan.rs b/cache_slice/src/bin/scan.rs index 0564dd1..1c00017 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; 64]; 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 bf36754..6c30982 100644 --- a/cache_slice/src/lib.rs +++ b/cache_slice/src/lib.rs @@ -49,7 +49,7 @@ unsafe fn monitor_xeon(addr: *const u8, cpu: u8, max_cbox: usize) -> Result Result