Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Oct 22, 2024
1 parent 88f6d59 commit b7bdc5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

//! Interpreter for eBPF programs.
use crate::program::BuiltinFunction;
use crate::{
ebpf::{self, STACK_PTR_REG},
elf::Executable,
error::{EbpfError, ProgramResult},
program::BuiltinFunction,
vm::{Config, ContextObject, EbpfVm},
};

Expand Down
2 changes: 1 addition & 1 deletion src/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use rand::{
};
use std::{fmt::Debug, mem, ptr};

use crate::program::BuiltinFunction;
use crate::{
ebpf::{self, FIRST_SCRATCH_REG, FRAME_PTR_REG, INSN_SIZE, SCRATCH_REGS, STACK_PTR_REG},
elf::Executable,
Expand All @@ -32,6 +31,7 @@ use crate::{
allocate_pages, free_pages, get_system_page_size, protect_pages, round_to_page_size,
},
memory_region::{AccessType, MemoryMapping},
program::BuiltinFunction,
vm::{get_runtime_environment_key, Config, ContextObject, EbpfVm},
x86::*,
};
Expand Down
2 changes: 1 addition & 1 deletion tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2989,7 +2989,7 @@ fn test_far_jumps() {
#[test]
fn test_symbol_relocation() {
let config = Config {
// No relocations are necessary in SBFPv2
// No relocation is necessary in SBFPv2
enabled_sbpf_versions: SBPFVersion::V1..=SBPFVersion::V1,
..Config::default()
};
Expand Down

0 comments on commit b7bdc5a

Please sign in to comment.