Lines Matching refs:insn_ptr
251 let mut insn_ptr: usize = 0; in translate_program() localVariable
252 while insn_ptr * ebpf::INSN_SIZE < prog.len() { in translate_program()
253 let insn = ebpf::get_insn(prog, insn_ptr); in translate_program()
256 if let Some(block) = self.insn_blocks.get(&(insn_ptr as u32)) { in translate_program()
267 bcx.set_srcloc(SourceLoc::new(insn_ptr as u32)); in translate_program()
318 insn_ptr += 1; in translate_program()
319 let next_insn = ebpf::get_insn(prog, insn_ptr); in translate_program()
818 let (_, target_block) = self.insn_targets[&(insn_ptr as u32)]; in translate_program()
867 let (fallthrough, target) = self.insn_targets[&(insn_ptr as u32)]; in translate_program()
944 insn_ptr += 1; in translate_program()
1084 let mut insn_ptr: usize = 0; in build_cfg() localVariable
1085 while insn_ptr * ebpf::INSN_SIZE < prog.len() { in build_cfg()
1086 let insn = ebpf::get_insn(prog, insn_ptr); in build_cfg()
1091 insn_ptr += 1; in build_cfg()
1141 self.prepare_jump_blocks(bcx, insn_ptr, &insn); in build_cfg()
1146 insn_ptr += 1; in build_cfg()
1152 fn prepare_jump_blocks(&mut self, bcx: &mut FunctionBuilder, insn_ptr: usize, insn: &Insn) { in prepare_jump_blocks()
1153 let insn_ptr = insn_ptr as u32; in prepare_jump_blocks() localVariable
1154 let next_pc: u32 = insn_ptr + 1; in prepare_jump_blocks()
1155 let target_pc: u32 = (insn_ptr as isize + insn.off as isize + 1) in prepare_jump_blocks()
1173 .insert(insn_ptr, (fallthrough_block, target_block)); in prepare_jump_blocks()