Add error message on unknown cache slicing
This commit is contained in:
parent
79b6a837f8
commit
5a77e17078
@ -88,7 +88,10 @@ fn calibrate_fixed_freq_2_thread_impl<I: Iterator<Item = (usize, usize)>, T>(
|
||||
let to_bucket = |time: u64| -> usize { time as usize / bucket_size };
|
||||
let from_bucket = |bucket: usize| -> u64 { (bucket * bucket_size) as u64 };
|
||||
|
||||
let slicing = get_cache_attack_slicing(core_per_socket, cache_line_length).unwrap();
|
||||
let slicing = match get_cache_attack_slicing(core_per_socket, cache_line_length) {
|
||||
Some(v) => v,
|
||||
None => panic!("Unable to determine cache slicing !")
|
||||
};
|
||||
|
||||
let mut ret = Vec::new();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user