Lines Matching refs:Error
54 pub use std::io::{Error, ErrorKind};
59 pub use crate::no_std_error::{Error, ErrorKind};
69 pub type Verifier = fn(prog: &[u8]) -> Result<(), Error>;
142 pub fn new(prog: Option<&'a [u8]>) -> Result<EbpfVmMbuff<'a>, Error> { in new() argument
177 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() argument
213 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() argument
257 pub fn register_helper(&mut self, key: u32, function: Helper) -> Result<(), Error> { in register_helper() argument
298 pub fn execute_program(&self, mem: &[u8], mbuff: &[u8]) -> Result<u64, Error> { in execute_program() argument
322 pub fn jit_compile(&mut self) -> Result<(), Error> { in jit_compile() argument
325 None => Err(Error::new( in jit_compile()
391 ) -> Result<u64, Error> { in execute_program_jit() argument
412 None => Err(Error::new( in execute_program_jit()
439 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() argument
444 None => Err(Error::new( in cranelift_compile()
502 ) -> Result<u64, Error> { in execute_program_cranelift() argument
519 None => Err(Error::new( in execute_program_cranelift()
623 ) -> Result<EbpfVmFixedMbuff<'a>, Error> { in new() argument
672 ) -> Result<(), Error> { in set_program() argument
712 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() argument
764 ) -> Result<(), Error> { in register_helper() argument
798 pub fn execute_program(&mut self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program() argument
802 …Err(Error::new(ErrorKind::Other, format!("Error: buffer too small ({:?}), cannot use data_offset {… in execute_program()
840 pub fn jit_compile(&mut self) -> Result<(), Error> { in jit_compile() argument
843 None => Err(Error::new( in jit_compile()
901 pub unsafe fn execute_program_jit(&mut self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program_jit() argument
920 None => Err(Error::new( in execute_program_jit()
951 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() argument
956 None => Err(Error::new( in cranelift_compile()
1003 pub fn execute_program_cranelift(&mut self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program_cranelift() argument
1016 …Err(Error::new(ErrorKind::Other, format!("Error: buffer too small ({:?}), cannot use data_offset {… in execute_program_cranelift()
1035 None => Err(Error::new( in execute_program_cranelift()
1087 pub fn new(prog: Option<&'a [u8]>) -> Result<EbpfVmRaw<'a>, Error> { in new() argument
1118 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() argument
1153 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() argument
1198 ) -> Result<(), Error> { in register_helper() argument
1209 ) -> Result<(), Error> { in register_helper_set() argument
1237 pub fn execute_program(&self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program() argument
1261 pub fn jit_compile(&mut self) -> Result<(), Error> { in jit_compile() argument
1264 None => Err(Error::new( in jit_compile()
1316 pub unsafe fn execute_program_jit(&self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program_jit() argument
1341 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() argument
1346 None => Err(Error::new( in cranelift_compile()
1384 pub fn execute_program_cranelift(&self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program_cranelift() argument
1449 pub fn new(prog: Option<&'a [u8]>) -> Result<EbpfVmNoData<'a>, Error> { in new() argument
1479 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() argument
1514 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() argument
1554 ) -> Result<(), Error> { in register_helper() argument
1578 pub fn jit_compile(&mut self) -> Result<(), Error> { in jit_compile() argument
1599 pub fn execute_program(&self) -> Result<u64, Error> { in execute_program() argument
1636 pub unsafe fn execute_program_jit(&self) -> Result<u64, Error> { in execute_program_jit() argument
1660 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() argument
1684 pub fn execute_program_cranelift(&self) -> Result<u64, Error> { in execute_program_cranelift() argument
1699 pub fn new(prog: Option<Vec<u8>>) -> Result<EbpfVmRawOwned, Error> { in new() argument
1718 pub fn set_program(&mut self, prog: Vec<u8>) -> Result<(), Error> { in set_program() argument
1728 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() argument
1740 ) -> Result<(), Error> { in register_helper() argument
1751 ) -> Result<(), Error> { in register_helper_set() argument
1767 pub fn execute_program(&self, mem: &mut [u8]) -> Result<u64, Error> { in execute_program() argument