Home
last modified time | relevance | path

Searched refs:execute_program (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/crates/rbpf/tests/
H A Dubpf_vm.rs39 assert_eq!(vm.execute_program().unwrap(), 0x3); in test_vm_add()
68 assert_eq!(vm.execute_program().unwrap(), 0x2a); in test_vm_alu64_arith()
101 assert_eq!(vm.execute_program().unwrap(), 0x11); in test_vm_alu64_bit()
130 assert_eq!(vm.execute_program().unwrap(), 0x2a); in test_vm_alu_arith()
161 assert_eq!(vm.execute_program().unwrap(), 0x11); in test_vm_alu_bit()
175 assert_eq!(vm.execute_program().unwrap(), 0x4); in test_vm_arsh32_high_shift()
189 assert_eq!(vm.execute_program().unwrap(), 0xffff8000); in test_vm_arsh()
205 assert_eq!(vm.execute_program().unwrap(), 0xfffffffffffffff8); in test_vm_arsh64()
220 assert_eq!(vm.execute_program().unwrap(), 0xffff8000); in test_vm_arsh_reg()
234 assert_eq!(vm.execute_program().unwrap(), 0xffffffff80000000); in test_vm_arsh_imm_overflow()
[all …]
H A Dubpf_verifier.rs31 vm.execute_program().unwrap(); in test_verifier_err_endian_size()
43 vm.execute_program().unwrap(); in test_verifier_err_incomplete_lddw()
56 vm.execute_program().unwrap(); in test_verifier_err_infinite_loop()
69 vm.execute_program().unwrap(); in test_verifier_err_invalid_reg_dst()
82 vm.execute_program().unwrap(); in test_verifier_err_invalid_reg_src()
96 vm.execute_program().unwrap(); in test_verifier_err_jmp_lddw()
109 vm.execute_program().unwrap(); in test_verifier_err_jmp_out()
121 vm.execute_program().unwrap(); in test_verifier_err_no_exit()
134 vm.execute_program().unwrap(); in test_verifier_err_no_exit_backward_jump()
152 vm.execute_program().unwrap(); in test_verifier_err_too_many_instructions()
[all …]
H A Dmisc.rs153 let res = vm.execute_program(packet).unwrap(); in test_vm_block_port()
247 assert_eq!(vm.execute_program(mem, &mbuff).unwrap(), 0x2211); in test_vm_mbuff()
281 assert_eq!(vm.execute_program(mem, &mbuff).unwrap(), 0x2211); in test_vm_mbuff_with_rust_api()
323 assert_eq!(vm.execute_program(mem).unwrap(), 0x33); in test_vm_jit_ldabsb()
343 assert_eq!(vm.execute_program(mem).unwrap(), 0x4433); in test_vm_jit_ldabsh()
363 assert_eq!(vm.execute_program(mem).unwrap(), 0x66554433); in test_vm_jit_ldabsw()
383 assert_eq!(vm.execute_program(mem).unwrap(), 0xaa99887766554433); in test_vm_jit_ldabsdw()
403 vm.execute_program(mem).unwrap(); in test_vm_err_ldabsb_oob()
416 vm.execute_program().unwrap(); in test_vm_err_ldabsb_nomem()
433 assert_eq!(vm.execute_program(mem).unwrap(), 0x88); in test_vm_jit_ldindb()
[all …]
/DragonOS/kernel/crates/rbpf/examples/
H A Duptime.rs40 assert_eq!(vm.execute_program().unwrap(), 0x3); in main()
65 time = vm.execute_program().unwrap(); in main()
H A Dload_elf.rs96 let res = vm.execute_program(packet1).unwrap(); in main()
111 let res = vm.execute_program(packet2).unwrap(); in main()
H A Drbpf_plugin.rs123 result = vm.execute_program(&mut memory).unwrap(); in main()
/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs298 pub fn execute_program(&self, mem: &[u8], mbuff: &[u8]) -> Result<u64, Error> { in execute_program() method
299 interpreter::execute_program(self.prog, mem, mbuff, &self.helpers) in execute_program()
798 pub fn execute_program(&mut self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program() method
813 self.parent.execute_program(mem, &self.mbuff.buffer) in execute_program()
1237 pub fn execute_program(&self, mem: &'a mut [u8]) -> Result<u64, Error> { in execute_program() method
1238 self.parent.execute_program(mem, &[]) in execute_program()
1599 pub fn execute_program(&self) -> Result<u64, Error> { in execute_program() method
1600 self.parent.execute_program(&mut []) in execute_program()
1767 pub fn execute_program(&self, mem: &mut [u8]) -> Result<u64, Error> { in execute_program() method
1768 self.parent.execute_program(mem) in execute_program()
H A Dinterpreter.rs83 pub fn execute_program( in execute_program() function
/DragonOS/kernel/src/perf/
H A Dkprobe.rs80 .execute_program(probe_context) in call()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md214 pub fn execute_program(&self,
219 pub fn execute_program(&self,
223 pub fn execute_program(&self) -> Result<(u64), Error>
252 `execute_program()`, again depending on the kind of VM that is used. The result of
284 assert_eq!(vm.execute_program().unwrap(), 0x3);
311 assert_eq!(vm.execute_program(mem).unwrap(), 0x11);
357 assert_eq!(vm.execute_program(mem, mbuff).unwrap(), 0x2211);
461 let res = vm.execute_program(packet).unwrap();