diff --git a/cache_utils/src/main.rs b/cache_utils/src/main.rs index c3fe5ac..4294960 100644 --- a/cache_utils/src/main.rs +++ b/cache_utils/src/main.rs @@ -20,18 +20,12 @@ struct Page { } pub fn main() { - println!("Hello World!"); - let p = Box::new(Page { mem: [0; 4096] }); let m: &[u8] = &p.mem; - eprintln!("Count: {}", CpuSet::count()); - let old = sched_getaffinity(Pid::from_raw(0)).unwrap(); - eprintln!("old: {:?}", old); - for i in 0..(CpuSet::count() - 1) { if old.is_set(i).unwrap() { println!("Iteration {}...", i); diff --git a/cache_utils/src/prefetcher.rs b/cache_utils/src/prefetcher.rs index 9d4cdb8..6e2929a 100644 --- a/cache_utils/src/prefetcher.rs +++ b/cache_utils/src/prefetcher.rs @@ -35,6 +35,7 @@ pub fn prefetcher_fun( ) -> Vec { let mut results = vec![0; 4096 / 64]; + return results; for _ in 0..N { //unsafe { maccess(victim4kaddr) }; for j in (0..4096).step_by(64).rev() {