Home
last modified time | relevance | path

Searched refs:assemble (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/crates/rbpf/tests/
H A Dubpf_vm.rs25 use rbpf::{assembler::assemble, helpers};
29 let prog = assemble( in test_vm_add()
44 let prog = assemble( in test_vm_alu64_arith()
73 let prog = assemble( in test_vm_alu64_bit()
106 let prog = assemble( in test_vm_alu_arith()
135 let prog = assemble( in test_vm_alu_bit()
166 let prog = assemble( in test_vm_arsh32_high_shift()
180 let prog = assemble( in test_vm_arsh()
194 let prog = assemble( in test_vm_arsh64()
210 let prog = assemble( in test_vm_arsh_reg()
[all …]
H A Dubpf_jit_x86_64.rs26 use rbpf::{assembler::assemble, helpers};
30 let prog = assemble( in test_jit_add()
48 let prog = assemble( in test_jit_alu64_arith()
80 let prog = assemble( in test_jit_alu64_bit()
116 let prog = assemble( in test_jit_alu_arith()
148 let prog = assemble( in test_jit_alu_bit()
182 let prog = assemble( in test_jit_arsh32_high_shift()
199 let prog = assemble( in test_jit_arsh()
216 let prog = assemble( in test_jit_arsh64()
235 let prog = assemble( in test_jit_arsh_reg()
[all …]
H A Dubpf_verifier.rs21 use rbpf::{assembler::assemble, ebpf};
49 let prog = assemble( in test_verifier_err_infinite_loop()
62 let prog = assemble( in test_verifier_err_invalid_reg_dst()
75 let prog = assemble( in test_verifier_err_invalid_reg_src()
88 let prog = assemble( in test_verifier_err_jmp_lddw()
102 let prog = assemble( in test_verifier_err_jmp_out()
115 let prog = assemble( in test_verifier_err_no_exit()
126 let prog = assemble( in test_verifier_err_no_exit_backward_jump()
169 let prog = assemble( in test_verifier_err_write_r10()
H A Dcranelift.rs9 use rbpf::{assembler::assemble, helpers};
17 let prog = assemble($prog).unwrap();
26 let prog = assemble($prog).unwrap();
261 let prog = assemble( in test_cranelift_call()
282 let prog = assemble( in test_cranelift_err_call_unreg()
300 let prog = assemble( in test_cranelift_call_memfrob()
1756 let prog = assemble( in test_cranelift_stack2()
1820 let prog = assemble( in test_cranelift_string_stack()
2104 let prog = assemble(TCP_SACK_ASM).unwrap(); in test_cranelift_tcp_sack_match()
2116 let prog = assemble(TCP_SACK_ASM).unwrap(); in test_cranelift_tcp_sack_nomatch()
H A Ddisassembler.rs9 use rbpf::{assembler::assemble, disassembler::to_insn_vec};
15 let asm = assemble(src).expect("Can't assemble from string");
H A Dmisc.rs24 use rbpf::{assembler::assemble, Error, ErrorKind};
548 let prog = assemble( in test_verifier_success()
562 let prog = assemble( in test_verifier_fail()
H A Dassembler.rs10 use rbpf::{assembler::assemble, ebpf};
13 Ok(ebpf::to_insn_vec(&(assemble(src))?)) in asm()
601 assert_eq!(assemble(TCP_SACK_ASM), Ok(TCP_SACK_BIN.to_vec())); in test_tcp_sack()
/DragonOS/kernel/crates/rbpf/src/
H A Dassembler.rs269 pub fn assemble(src: &str) -> Result<Vec<u8>, String> { in assemble() function
/DragonOS/kernel/crates/rbpf/
H A DREADME.md477 use rbpf::assembler::assemble;
479 let prog = assemble("add64 r1, 0x605