/DragonOS/kernel/crates/rbpf/src/ |
H A D | lib.rs | 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() [all …]
|
H A D | no_std_error.rs | 12 pub struct Error { struct 19 impl Error { argument 22 pub fn new<S: Into<String>>(kind: ErrorKind, error: S) -> Error { in new() argument 23 Error { in new()
|
H A D | verifier.rs | 23 use crate::{ebpf, Error, ErrorKind}; 25 fn reject<S: AsRef<str>>(msg: S) -> Result<(), Error> { in reject() argument 27 Err(Error::new(ErrorKind::Other, full_msg)) in reject() 30 fn check_prog_len(prog: &[u8]) -> Result<(), Error> { in check_prog_len() argument 56 fn check_imm_endian(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), Error> { in check_imm_endian() argument 65 fn check_load_dw(prog: &[u8], insn_ptr: usize) -> Result<(), Error> { in check_load_dw() argument 76 fn check_jmp_offset(prog: &[u8], insn_ptr: usize) -> Result<(), Error> { in check_jmp_offset() argument 99 fn check_registers(insn: &ebpf::Insn, store: bool, insn_ptr: usize) -> Result<(), Error> { in check_registers() argument 113 pub fn check(prog: &[u8]) -> Result<(), Error> { in check() argument
|
H A D | asm_parser.rs | 49 I::Error: ParseError<I::Token, I::Range, I::Position>, in ident() 57 I::Error: ParseError<I::Token, I::Range, I::Position>, in integer() 73 I::Error: ParseError<I::Token, I::Range, I::Position>, in register() 83 I::Error: ParseError<I::Token, I::Range, I::Position>, in operand() 95 I::Error: ParseError<I::Token, I::Range, I::Position>, in instruction()
|
/DragonOS/kernel/crates/unified-init/macros/src/ |
H A D | lib.rs | 84 return Err(syn::Error::new( in check_function_signature() 104 return Err(syn::Error::new( in check_function_signature() 115 return Err(syn::Error::new(tuple.span(), "Expected empty tuple")); in check_function_signature() 118 return Err(syn::Error::new(type_arg.span(), "Expected empty tuple")); in check_function_signature() 121 return Err(syn::Error::new( in check_function_signature() 137 return Err(syn::Error::new( in check_function_signature() 143 return Err(syn::Error::new( in check_function_signature() 154 Err(syn::Error::new( in check_function_signature() 197 return Err(parse::Error::new( in parse() 212 return Err(parse::Error::new( in parse() [all …]
|
/DragonOS/user/apps/test-chown/src/ |
H A D | main.rs | 10 io::{self, Error, Write}, 18 fn print_file_owner_group(filename: &str) -> Result<(), Error> { in print_file_owner_group() argument 30 fn test_fchownat(filename: &str, new_uid: uid_t, new_gid: gid_t, flags: i32) -> Result<(), Error> { in test_fchownat() argument 41 fn test_chown(filename: &str, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_chown() argument 52 fn test_fchown(fd: i32, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_fchown() argument 61 fn test_lchown(symlink_name: &str, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_lchown() argument 72 fn main() -> Result<(), Error> { in main()
|
/DragonOS/kernel/src/process/ |
H A D | resource.rs | 64 type Error = SystemError; typedef 66 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument 133 type Error = SystemError; typedef 135 fn try_from(value: usize) -> Result<Self, Self::Error> { in try_from() argument
|
H A D | abi.rs | 55 type Error = &'static str; typedef 57 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/user/apps/test_socket/src/ |
H A D | test_unix_stream_pair.rs | 1 use std::io::{Error, Read, Write}; 19 Err(Error::from_raw_os_error(-1)) in test_unix_stream_pair()
|
H A D | test_unix_stream.rs | 1 use std::io::{Error, Read, Write}; 40 Err(Error::from_raw_os_error(-1)) in test_unix_stream()
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | error.rs | 1 use std::{error::Error, fmt::Display}; 21 impl Error for BackendError {}
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | args.rs | 5 use syn::{Error, Ident, Path, Token, Type}; 18 Err(Error::new_spanned(ident, msg)) in from() 44 return Err(Error::new_spanned(ident, msg)); in parse()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | build.rs | 19 fn build_project(opts: &Options) -> Result<(), anyhow::Error> { in build_project() argument 33 pub fn build(opts: Options) -> Result<(), anyhow::Error> { in build() argument
|
H A D | build_ebpf.rs | 42 pub fn build_ebpf(opts: Options) -> Result<(), anyhow::Error> { in build_ebpf() argument
|
H A D | run.rs | 26 pub fn run(opts: Options) -> Result<(), anyhow::Error> { in run() argument
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | disk_info.rs | 56 type Error = SystemError; typedef 58 fn try_into(self) -> Result<GeneralBlockRange, Self::Error> { in try_into() argument
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | boot.rs | 24 type Error = SystemError; typedef 26 fn try_from(value: u64) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/user/apps/test_ebpf/src/ |
H A D | main.rs | 6 use std::error::Error; 11 async fn main() -> Result<(), Box<dyn Error>> { in main()
|
/DragonOS/kernel/src/debug/kprobe/ |
H A D | args.rs | 23 type Error = SystemError; typedef 24 fn try_from(kprobe_info: KprobeInfo) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/bpf/map/ |
H A D | util.rs | 18 type Error = SystemError; typedef 19 fn try_from(value: &bpf_attr) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | util.rs | 83 type Error = SystemError; typedef 84 fn try_from(attr: &bpf_attr) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/crates/rbpf/tests/ |
H A D | misc.rs | 24 use rbpf::{assembler::assemble, Error, ErrorKind}; 538 fn verifier_success(_prog: &[u8]) -> Result<(), Error> { in verifier_success() argument 542 fn verifier_fail(_prog: &[u8]) -> Result<(), Error> { in verifier_fail() argument 543 Err(Error::new(ErrorKind::Other, "Gaggablaghblagh!")) in verifier_fail()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | fdt.rs | 77 type Error = SystemError; typedef 79 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
|
/DragonOS/kernel/src/libs/ |
H A D | printk.rs | 114 Level::Error => { in iodisplay() 143 Level::Error => Logger.log( in kernel_log()
|
/DragonOS/kernel/src/time/ |
H A D | syscall.rs | 58 type Error = SystemError; typedef 60 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
|