Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 25 of 41) sorted by relevance

12

/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs54 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 Dno_std_error.rs12 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 Dverifier.rs23 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 Dasm_parser.rs49 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 Dlib.rs84 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 Dmain.rs10 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 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/user/apps/test_socket/src/
H A Dtest_unix_stream_pair.rs1 use std::io::{Error, Read, Write};
19 Err(Error::from_raw_os_error(-1)) in test_unix_stream_pair()
H A Dtest_unix_stream.rs1 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 Derror.rs1 use std::{error::Error, fmt::Display};
21 impl Error for BackendError {}
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs5 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 Dbuild.rs19 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 Dbuild_ebpf.rs42 pub fn build_ebpf(opts: Options) -> Result<(), anyhow::Error> { in build_ebpf() argument
H A Drun.rs26 pub fn run(opts: Options) -> Result<(), anyhow::Error> { in run() 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() 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/user/apps/test_ebpf/src/
H A Dmain.rs6 use std::error::Error;
11 async fn main() -> Result<(), Box<dyn Error>> { in main()
/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/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/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/crates/rbpf/tests/
H A Dmisc.rs24 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 Dfdt.rs77 type Error = SystemError; typedef
79 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
/DragonOS/kernel/src/libs/
H A Dprintk.rs114 Level::Error => { in iodisplay()
143 Level::Error => Logger.log( in kernel_log()
/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

12