Home
last modified time | relevance | path

Searched defs:Error (Results 1 – 25 of 28) sorted by relevance

12

/DragonOS/kernel/crates/rbpf/src/
H A Dno_std_error.rs12 pub struct Error { struct
14 kind: ErrorKind, argument
19 impl Error { argument
22 pub fn new<S: Into<String>>(kind: ErrorKind, error: S) -> Error { in new()
H A Dlib.rs142 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
391 ) -> Result<u64, Error> { in execute_program_jit() argument
439 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() argument
502 ) -> Result<u64, Error> { in execute_program_cranelift() argument
623 ) -> Result<EbpfVmFixedMbuff<'a>, Error> { in new() argument
[all …]
H A Dverifier.rs25 fn reject<S: AsRef<str>>(msg: S) -> Result<(), Error> { in reject() argument
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 Dinterpreter.rs25 ) -> Result<(), Error> { in check_mem() argument
54 ) -> Result<(), Error> { in check_mem() argument
88 ) -> Result<u64, Error> { in execute_program() argument
H A Dcranelift.rs111 pub(crate) fn compile_function(mut self, prog: &[u8]) -> Result<CraneliftProgram, Error> { in compile_function() argument
164 ) -> Result<(), Error> { in build_function_prelude() argument
250 fn translate_program(&mut self, bcx: &mut FunctionBuilder, prog: &[u8]) -> Result<(), Error> { in translate_program() argument
1083 fn build_cfg(&mut self, bcx: &mut FunctionBuilder, prog: &[u8]) -> Result<(), Error> { in build_cfg() argument
H A Djit.rs480 ) -> Result<(), Error> { in jit_compile() argument
954 fn resolve_jumps(&mut self, mem: &mut JitMemory) -> Result<(), Error> { in resolve_jumps() argument
990 ) -> Result<JitMemory<'a>, Error> { in new() argument
/DragonOS/user/apps/test-chown/src/
H A Dmain.rs18 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
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Dbuild.rs19 fn build_project(opts: &Options) -> Result<(), anyhow::Error> { in build_project()
33 pub fn build(opts: Options) -> Result<(), anyhow::Error> { in build()
H A Drun.rs26 pub fn run(opts: Options) -> Result<(), anyhow::Error> { in run()
H A Dbuild_ebpf.rs42 pub fn build_ebpf(opts: Options) -> Result<(), anyhow::Error> { in build_ebpf()
/DragonOS/kernel/src/process/
H A Dresource.rs64 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 Dabi.rs55 type Error = &'static str; typedef
57 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/arch/x86_64/init/
H A Dboot.rs24 type Error = SystemError; typedef
26 fn try_from(value: u64) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/debug/kprobe/
H A Dargs.rs23 type Error = SystemError; typedef
24 fn try_from(kprobe_info: KprobeInfo) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/driver/base/block/
H A Ddisk_info.rs56 type Error = SystemError; typedef
58 fn try_into(self) -> Result<GeneralBlockRange, Self::Error> { in try_into()
/DragonOS/kernel/src/bpf/prog/
H A Dutil.rs83 type Error = SystemError; typedef
84 fn try_from(attr: &bpf_attr) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/bpf/map/
H A Dutil.rs18 type Error = SystemError; typedef
19 fn try_from(value: &bpf_attr) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/driver/firmware/efi/
H A Dfdt.rs77 type Error = SystemError; typedef
79 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/time/
H A Dsyscall.rs58 type Error = SystemError; typedef
60 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/crates/rbpf/tests/
H A Dmisc.rs538 fn verifier_success(_prog: &[u8]) -> Result<(), Error> { in verifier_success() argument
542 fn verifier_fail(_prog: &[u8]) -> Result<(), Error> { in verifier_fail() argument
/DragonOS/kernel/src/net/
H A Dsyscall.rs810 type Error = SystemError; typedef
812 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() argument
931 type Error = SystemError; typedef
933 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
1020 type Error = SystemError; typedef
1022 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dapic_timer.rs287 type Error = SystemError; typedef
289 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
H A Dmod.rs388 type Error = SystemError; typedef
390 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/net/socket/
H A Dmod.rs749 type Error = SystemError; typedef
750 fn try_from(x: u16) -> Result<Self, Self::Error> { in try_from() argument
769 type Error = SystemError; typedef
770 fn try_from(x: u8) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/ipc/
H A Dsignal_types.rs146 Error, // 暂时没有用上 enumerator

12