/DragonOS/kernel/crates/rbpf/src/ |
H A D | no_std_error.rs | 12 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 D | lib.rs | 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 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 D | verifier.rs | 25 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 D | interpreter.rs | 25 ) -> Result<(), Error> { in check_mem() argument 54 ) -> Result<(), Error> { in check_mem() argument 88 ) -> Result<u64, Error> { in execute_program() argument
|
H A D | cranelift.rs | 111 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 D | jit.rs | 480 ) -> 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 D | main.rs | 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
|
/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() 33 pub fn build(opts: Options) -> Result<(), anyhow::Error> { in build()
|
H A D | run.rs | 26 pub fn run(opts: Options) -> Result<(), anyhow::Error> { in run()
|
H A D | build_ebpf.rs | 42 pub fn build_ebpf(opts: Options) -> Result<(), anyhow::Error> { in build_ebpf()
|
/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/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/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/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()
|
/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/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/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/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
|
/DragonOS/kernel/crates/rbpf/tests/ |
H A D | misc.rs | 538 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 D | syscall.rs | 810 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 D | apic_timer.rs | 287 type Error = SystemError; typedef 289 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() argument
|
H A D | mod.rs | 388 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 D | mod.rs | 749 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 D | signal_types.rs | 146 Error, // 暂时没有用上 enumerator
|