From 91630f5de6b9188f2606ea175714437d8898d2a6 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 1fbe94d84..fec354173 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 e861350a4..29ec1bd42 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::*, };