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;
8
8
extern crate linux_loader;
9
9
extern crate vm_memory;
10
10
11
+ use std:: hint:: black_box;
12
+
11
13
use linux_loader:: configurator:: fdt:: FdtBootConfigurator ;
12
14
use linux_loader:: configurator:: { BootConfigurator , BootParams } ;
13
15
use vm_memory:: { ByteValued , GuestAddress , GuestMemoryMmap } ;
14
16
15
- use criterion:: { black_box , Criterion } ;
17
+ use criterion:: Criterion ;
16
18
17
19
const MEM_SIZE : usize = 0x100_0000 ;
18
20
const FDT_MAX_SIZE : usize = 0x20 ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ extern crate linux_loader;
11
11
extern crate vm_memory;
12
12
13
13
use std:: fs:: File ;
14
+ use std:: hint:: black_box;
14
15
use std:: io:: { Cursor , Read } ;
15
16
16
17
use linux_loader:: configurator:: pvh:: PvhBootConfigurator ;
@@ -22,7 +23,7 @@ use linux_loader::loader::elf::Elf;
22
23
use linux_loader:: loader:: KernelLoader ;
23
24
use vm_memory:: { Address , GuestAddress , GuestMemoryMmap } ;
24
25
25
- use criterion:: { black_box , Criterion } ;
26
+ use criterion:: Criterion ;
26
27
27
28
const MEM_SIZE : usize = 0x100_0000 ;
28
29
const E820_RAM : u32 = 1 ;
You can’t perform that action at this time.
0 commit comments