Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rbpf/src/
H A Dinsn_builder.rs60 fn get_insn(&self) -> &Insn; in get_insn() argument
63 fn get_insn_mut(&mut self) -> &mut Insn; in get_insn_mut() argument
184 insn: Insn { in mov_internal()
199 insn: Insn { in swap_bytes()
236 insn: Insn { in load_internal()
262 insn: Insn { in store_internal()
283 insn: Insn { in jump_conditional()
297 insn: Insn { in call()
311 insn: Insn { in exit()
338 insn: Insn,
[all …]
H A Dassembler.rs23 ebpf::{self, Insn},
154 fn insn(opc: u8, dst: i64, src: i64, off: i64, imm: i64) -> Result<Insn, String> { in insn() argument
167 Ok(Insn { in insn()
187 fn encode(inst_type: InstructionType, opc: u8, operands: &[Operand]) -> Result<Insn, String> { in encode() argument
213 fn assemble_internal(parsed: &[Instruction]) -> Result<Vec<Insn>, String> { in assemble_internal() argument
215 let mut result: Vec<Insn> = vec![]; in assemble_internal()
H A Ddisassembler.rs19 fn alu_imm_str(name: &str, insn: &ebpf::Insn) -> String { in alu_imm_str()
24 fn alu_reg_str(name: &str, insn: &ebpf::Insn) -> String { in alu_reg_str()
29 fn byteswap_str(name: &str, insn: &ebpf::Insn) -> String { in byteswap_str()
38 fn ld_st_imm_str(name: &str, insn: &ebpf::Insn) -> String { in ld_st_imm_str()
52 fn ld_reg_str(name: &str, insn: &ebpf::Insn) -> String { in ld_reg_str()
66 fn st_reg_str(name: &str, insn: &ebpf::Insn) -> String { in st_reg_str()
80 fn ldabs_str(name: &str, insn: &ebpf::Insn) -> String { in ldabs_str()
85 fn ldind_str(name: &str, insn: &ebpf::Insn) -> String { in ldind_str()
90 fn jmp_imm_str(name: &str, insn: &ebpf::Insn) -> String { in jmp_imm_str()
104 fn jmp_reg_str(name: &str, insn: &ebpf::Insn) -> String { in jmp_reg_str()
H A Debpf.rs443 pub struct Insn { struct
456 impl Insn { implementation
554 pub fn get_insn(prog: &[u8], idx: usize) -> Insn { in get_insn() argument
565 Insn { in get_insn()
618 pub fn to_insn_vec(prog: &[u8]) -> Vec<Insn> { in to_insn_vec() argument
H A Dcranelift.rs24 self, Insn, BPF_ALU_OP_MASK, BPF_IND, BPF_JEQ, BPF_JGE, BPF_JGT, BPF_JLE, BPF_JLT, BPF_JMP32,
950 fn insn_imm64(&mut self, bcx: &mut FunctionBuilder, insn: &Insn) -> Value { in insn_imm64()
953 fn insn_imm32(&mut self, bcx: &mut FunctionBuilder, insn: &Insn) -> Value { in insn_imm32()
957 fn insn_dst(&mut self, bcx: &mut FunctionBuilder, insn: &Insn) -> Value { in insn_dst()
960 fn insn_dst32(&mut self, bcx: &mut FunctionBuilder, insn: &Insn) -> Value { in insn_dst32()
965 fn insn_src(&mut self, bcx: &mut FunctionBuilder, insn: &Insn) -> Value { in insn_src()
968 fn insn_src32(&mut self, bcx: &mut FunctionBuilder, insn: &Insn) -> Value { in insn_src32()
973 fn set_dst(&mut self, bcx: &mut FunctionBuilder, insn: &Insn, val: Value) { in set_dst() argument
976 fn set_dst32(&mut self, bcx: &mut FunctionBuilder, insn: &Insn, val: Value) { in set_dst32() argument
1152 fn prepare_jump_blocks(&mut self, bcx: &mut FunctionBuilder, insn_ptr: usize, insn: &Insn) { in prepare_jump_blocks() argument
H A Dverifier.rs56 fn check_imm_endian(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), Error> { in check_imm_endian() argument
99 fn check_registers(insn: &ebpf::Insn, store: bool, insn_ptr: usize) -> Result<(), Error> { in check_registers() argument
H A Dinterpreter.rs9 ebpf::{self, Insn},
77 fn do_jump(insn_ptr: &mut usize, insn: &Insn) { in do_jump() argument
/DragonOS/kernel/crates/rbpf/tests/
H A Dassembler.rs12 fn asm(src: &str) -> Result<Vec<ebpf::Insn>, String> { in asm() argument
16 fn insn(opc: u8, dst: u8, src: u8, off: i16, imm: i32) -> ebpf::Insn { in insn() argument
17 ebpf::Insn { in insn()