Update edition

This commit is contained in:
Guillaume DIDIER 2024-06-24 09:39:28 +02:00
parent 2610b0ea1d
commit a20210e5d7
20 changed files with 21 additions and 17 deletions

View File

@ -2,7 +2,7 @@
name = "CacheObserver" name = "CacheObserver"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,4 +1,5 @@
[workspace] [workspace]
resolver = "2"
members = [ members = [
"vga_buffer", "vga_buffer",

1
TODO-refactor.md Normal file
View File

@ -0,0 +1 @@
- Remove the `no_std` dependencies in `cache_utils` by parameterizing for the output and input where needed ?

View File

@ -2,7 +2,7 @@
name = "aes-t-tables" name = "aes-t-tables"
version = "0.1.0" version = "0.1.0"
authors = ["GuillaumeDIDIER <guillaume.didier95@hotmail.fr>"] authors = ["GuillaumeDIDIER <guillaume.didier95@hotmail.fr>"]
edition = "2018" edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "basic_timing_cache_channel" name = "basic_timing_cache_channel"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "cache_side_channel" name = "cache_side_channel"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "cache_utils" name = "cache_utils"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -125,6 +125,9 @@ fn main() {
let array = m.slice(); let array = m.slice();
let cache_line_size = 64; let cache_line_size = 64;
// CPUID EAX=1: Additional Information in EBX Bits EBX Valid
// 15:8 CLFLUSH line size (Value * 8 = cache line size in bytes) if CLFLUSH feature flag is set.
// (CPUID.01.EDX.CLFSH [bit 19]= 1)
// Generate core iterator // Generate core iterator
let mut core_pairs: Vec<(usize, usize)> = Vec::new(); let mut core_pairs: Vec<(usize, usize)> = Vec::new();

View File

@ -10,7 +10,6 @@ use cache_utils::calibration::Verbosity;
use nix::errno::Errno; use nix::errno::Errno;
use nix::sched::{sched_getaffinity, sched_setaffinity, CpuSet}; use nix::sched::{sched_getaffinity, sched_setaffinity, CpuSet};
use nix::unistd::Pid; use nix::unistd::Pid;
use nix::Error::Sys;
use cache_utils::mmap::MMappedMemory; use cache_utils::mmap::MMappedMemory;
use cpuid::MicroArchitecture; use cpuid::MicroArchitecture;
@ -58,7 +57,7 @@ pub fn main() {
//println!("Iteration {}...ok ", i); //println!("Iteration {}...ok ", i);
eprint!(" {}", i); eprint!(" {}", i);
} }
Err(Sys(Errno::EINVAL)) => { Err(Errno::EINVAL) => {
//println!("skipping"); //println!("skipping");
continue; continue;
} }
@ -83,7 +82,7 @@ pub fn main() {
println!("Iteration {}...ok ", i); println!("Iteration {}...ok ", i);
eprintln!("Iteration {}...ok ", i); eprintln!("Iteration {}...ok ", i);
} }
Err(Sys(Errno::EINVAL)) => { Err(Errno::EINVAL) => {
println!("skipping"); println!("skipping");
continue; continue;
} }

View File

@ -2,7 +2,7 @@
name = "covert_channels_benchmark" name = "covert_channels_benchmark"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "covert_channels_evaluation" name = "covert_channels_evaluation"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "cpuid" name = "cpuid"
version = "0.1.0" version = "0.1.0"
authors = ["GuillaumeDIDIER <guillaume.didier95@hotmail.fr>"] authors = ["GuillaumeDIDIER <guillaume.didier95@hotmail.fr>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "dendrobates_tinctoreus_azureus" name = "dendrobates_tinctoreus_azureus"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
[package.metadata.bootimage] [package.metadata.bootimage]
#run-command = ["./scripts/bochs.sh", "{}"] #run-command = ["./scripts/bochs.sh", "{}"]

View File

@ -2,7 +2,7 @@
name = "flush_flush" name = "flush_flush"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "flush_reload" name = "flush_reload"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "polling_serial" name = "polling_serial"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "turn_lock" name = "turn_lock"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,7 @@
name = "vga_buffer" name = "vga_buffer"
version = "0.1.0" version = "0.1.0"
authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"] authors = ["Guillaume DIDIER <guillaume.didier.2014@polytechnique.org>"]
edition = "2018" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html