Add small utility used to trigger l3 accesses (conjoint use the a uncore cbo measuring utility allow cbo slice reverse)
This commit is contained in:
parent
b7b6c8e9cc
commit
158b808d92
13
cache_utils/src/bin/l3.rs
Normal file
13
cache_utils/src/bin/l3.rs
Normal file
@ -0,0 +1,13 @@
|
||||
use cache_utils::flush;
|
||||
use cache_utils::mmap::MMappedMemory;
|
||||
|
||||
pub fn main() {
|
||||
let m = unsafe { MMappedMemory::new(2 << 20) };
|
||||
let array = m.slice();
|
||||
loop {
|
||||
unsafe {
|
||||
flush(&array[0]);
|
||||
flush(&array[(1 << 8) ^ (1 << 12) ^ (1 << 10)]);
|
||||
}
|
||||
}
|
||||
}
|
0
cache_utils/src/complex_addressing.rs
Normal file
0
cache_utils/src/complex_addressing.rs
Normal file
@ -57,6 +57,7 @@ pub fn main() {
|
||||
};*/
|
||||
let m = unsafe { MMappedMemory::new(SIZE) };
|
||||
let array = m.slice();
|
||||
|
||||
/*
|
||||
let p = Box::new(Page { mem: [0; 4096] });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user