Home
last modified time | relevance | path

Searched refs:EbpfVmNoData (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/crates/rbpf/tests/
H A Dubpf_vm.rs38 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_add()
67 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_alu64_arith()
100 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_alu64_bit()
129 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_alu_arith()
160 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_alu_bit()
174 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_arsh32_high_shift()
188 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_arsh()
204 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_arsh64()
219 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_arsh_reg()
233 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_vm_arsh_imm_overflow()
[all …]
H A Dubpf_verifier.rs30 let vm = rbpf::EbpfVmNoData::new(Some(prog)).unwrap(); in test_verifier_err_endian_size()
42 let vm = rbpf::EbpfVmNoData::new(Some(prog)).unwrap(); in test_verifier_err_incomplete_lddw()
55 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_infinite_loop()
68 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_invalid_reg_dst()
81 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_invalid_reg_src()
95 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_jmp_lddw()
108 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_jmp_out()
120 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_no_exit()
133 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_no_exit_backward_jump()
151 let vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_verifier_err_too_many_instructions()
[all …]
H A Dubpf_jit_x86_64.rs39 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_add()
71 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_alu64_arith()
107 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_alu64_bit()
139 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_alu_arith()
173 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_alu_bit()
190 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_arsh32_high_shift()
207 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_arsh()
226 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_arsh64()
244 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_arsh_reg()
349 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_jit_call()
[all …]
H A Dcranelift.rs18 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap();
273 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_call()
294 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_err_call_unreg()
480 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_err_stack_out_of_bound()
1777 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_stack2()
1853 let mut vm = rbpf::EbpfVmNoData::new(Some(&prog)).unwrap(); in test_cranelift_string_stack()
H A Dmisc.rs415 let vm = rbpf::EbpfVmNoData::new(Some(prog)).unwrap(); in test_vm_err_ldabsb_nomem()
525 let vm = rbpf::EbpfVmNoData::new(Some(prog)).unwrap(); in test_vm_err_ldindb_nomem()
534 let vm = rbpf::EbpfVmNoData::new(None).unwrap(); in test_vm_exec_no_program()
553 let mut vm = rbpf::EbpfVmNoData::new(None).unwrap(); in test_verifier_success()
567 let mut vm = rbpf::EbpfVmNoData::new(None).unwrap(); in test_verifier_fail()
/DragonOS/kernel/crates/rbpf/examples/
H A Duptime.rs38 let mut vm = rbpf::EbpfVmNoData::new(Some(prog1)).unwrap(); in main()
/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs1429 pub struct EbpfVmNoData<'a> { struct
1433 impl<'a> EbpfVmNoData<'a> { implementation
1449 pub fn new(prog: Option<&'a [u8]>) -> Result<EbpfVmNoData<'a>, Error> { in new()
1451 Ok(EbpfVmNoData { parent }) in new()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md135 * `struct EbpfVmNoData` does not take any data. The eBPF program takes no
154 // called with EbpfVmNoData:: prefix
155 pub fn new(prog: &'a [u8]) -> Result<EbpfVmNoData<'a>, Error>
222 // for struct EbpfVmNoData
247 // for struct EbpfVmNoData
278 // Instantiate a struct EbpfVmNoData. This is an eBPF VM for programs that
281 let vm = rbpf::EbpfVmNoData::new(Some(prog)).unwrap();