From 805fb4fd65b40e1e1379e052a29888fc9be56340 Mon Sep 17 00:00:00 2001 From: Lucas Steuernagel Date: Sun, 20 Oct 2024 11:36:08 -0300 Subject: [PATCH] Fix imports --- src/interpreter.rs | 2 +- src/jit.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter.rs b/src/interpreter.rs index 3ca7bf7b6..8134bf905 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -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}, }; diff --git a/src/jit.rs b/src/jit.rs index 65d7d714b..1971d61c8 100644 --- a/src/jit.rs +++ b/src/jit.rs @@ -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, @@ -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::*, };