File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ extern crate criterion;
88extern crate linux_loader;
99extern crate vm_memory;
1010
11+ use std:: hint:: black_box;
12+
1113use linux_loader:: configurator:: fdt:: FdtBootConfigurator ;
1214use linux_loader:: configurator:: { BootConfigurator , BootParams } ;
1315use vm_memory:: { ByteValued , GuestAddress , GuestMemoryMmap } ;
1416
15- use criterion:: { black_box , Criterion } ;
17+ use criterion:: Criterion ;
1618
1719const MEM_SIZE : usize = 0x100_0000 ;
1820const FDT_MAX_SIZE : usize = 0x20 ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ extern crate linux_loader;
1111extern crate vm_memory;
1212
1313use std:: fs:: File ;
14+ use std:: hint:: black_box;
1415use std:: io:: { Cursor , Read } ;
1516
1617use linux_loader:: configurator:: pvh:: PvhBootConfigurator ;
@@ -22,7 +23,7 @@ use linux_loader::loader::elf::Elf;
2223use linux_loader:: loader:: KernelLoader ;
2324use vm_memory:: { Address , GuestAddress , GuestMemoryMmap } ;
2425
25- use criterion:: { black_box , Criterion } ;
26+ use criterion:: Criterion ;
2627
2728const MEM_SIZE : usize = 0x100_0000 ;
2829const E820_RAM : u32 = 1 ;
You can’t perform that action at this time.
0 commit comments