Lines Matching refs:insn
56 fn check_imm_endian(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), Error> { in check_imm_endian()
57 match insn.imm { in check_imm_endian()
77 let insn = ebpf::get_insn(prog, insn_ptr); in check_jmp_offset() localVariable
78 if insn.off == -1 { in check_jmp_offset()
82 let dst_insn_ptr = insn_ptr as isize + 1 + insn.off as isize; in check_jmp_offset()
99 fn check_registers(insn: &ebpf::Insn, store: bool, insn_ptr: usize) -> Result<(), Error> { in check_registers()
100 if insn.src > 10 { in check_registers()
104 match (insn.dst, store) { in check_registers()
118 let insn = ebpf::get_insn(prog, insn_ptr); in check() localVariable
121 match insn.opc { in check()
189 check_imm_endian(&insn, insn_ptr)?; in check()
192 check_imm_endian(&insn, insn_ptr)?; in check()
370 insn.opc in check()
375 check_registers(&insn, store, insn_ptr)?; in check()