Home
last modified time | relevance | path

Searched refs:off (Results 1 – 16 of 16) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dassembler.rs154 fn insn(opc: u8, dst: i64, src: i64, off: i64, imm: i64) -> Result<Insn, String> { in insn()
161 if !(-32768..32768).contains(&off) { in insn()
171 off: off as i16, in insn()
195 (LoadReg, Register(dst), Memory(src, off), Nil) in encode()
196 | (StoreReg, Memory(dst, off), Register(src), Nil) => insn(opc, dst, src, off, 0), in encode()
197 (StoreImm, Memory(dst, off), Integer(imm), Nil) => insn(opc, dst, 0, off, imm), in encode()
199 (JumpUnconditional, Integer(off), Nil, Nil) => insn(opc, 0, 0, off, 0), in encode()
200 (JumpConditional, Register(dst), Register(src), Integer(off)) => { in encode()
201 insn(opc | ebpf::BPF_X, dst, src, off, 0) in encode()
203 (JumpConditional, Register(dst), Integer(imm), Integer(off)) => { in encode()
[all …]
H A Ddisassembler.rs39 if insn.off >= 0 { in ld_st_imm_str()
40 format!("{name} [r{}+{:#x}], {:#x}", insn.dst, insn.off, insn.imm) in ld_st_imm_str()
45 -(insn.off as isize), in ld_st_imm_str()
53 if insn.off >= 0 { in ld_reg_str()
54 format!("{name} r{}, [r{}+{:#x}]", insn.dst, insn.src, insn.off) in ld_reg_str()
60 -(insn.off as isize) in ld_reg_str()
67 if insn.off >= 0 { in st_reg_str()
68 format!("{name} [r{}+{:#x}], r{}", insn.dst, insn.off, insn.src) in st_reg_str()
73 -(insn.off as isize), in st_reg_str()
91 if insn.off >= 0 { in jmp_imm_str()
[all …]
H A Dinterpreter.rs78 *insn_ptr = (*insn_ptr as i16 + insn.off) as usize; in do_jump()
220 let x = (reg[_src] as *const u8).offset(insn.off as isize); in execute_program()
228 let x = (reg[_src] as *const u8).offset(insn.off as isize) as *const u16; in execute_program()
236 let x = (reg[_src] as *const u8).offset(insn.off as isize) as *const u32; in execute_program()
250 let x = (reg[_src] as *const u8).offset(insn.off as isize) as *const u64; in execute_program()
258 let x = (reg[_dst] as *const u8).offset(insn.off as isize) as *mut u8; in execute_program()
264 let x = (reg[_dst] as *const u8).offset(insn.off as isize) as *mut u16; in execute_program()
270 let x = (reg[_dst] as *const u8).offset(insn.off as isize) as *mut u32; in execute_program()
276 let x = (reg[_dst] as *const u8).offset(insn.off as isize) as *mut u64; in execute_program()
283 let x = (reg[_dst] as *const u8).offset(insn.off as isize) as *mut u8; in execute_program()
[all …]
H A Debpf.rs451 pub off: i16, field
480 (self.off & 0xff) as u8,
481 self.off.wrapping_shr(8) as u8,
512 (self.off & 0xff) as u8, in to_vec()
513 self.off.wrapping_shr(8) as u8, in to_vec()
569 off: LittleEndian::read_i16(&prog[(INSN_SIZE * idx + 2)..]), in get_insn()
H A Djit.rs544 let target_pc = insn_ptr as isize + insn.off as isize + 1; in jit_compile()
582 ebpf::LD_B_REG => self.emit_load(mem, OperandSize::S8, src, dst, insn.off as i32), in jit_compile()
583 ebpf::LD_H_REG => self.emit_load(mem, OperandSize::S16, src, dst, insn.off as i32), in jit_compile()
584 ebpf::LD_W_REG => self.emit_load(mem, OperandSize::S32, src, dst, insn.off as i32), in jit_compile()
585 ebpf::LD_DW_REG => self.emit_load(mem, OperandSize::S64, src, dst, insn.off as i32), in jit_compile()
589 self.emit_store_imm32(mem, OperandSize::S8, dst, insn.off as i32, insn.imm) in jit_compile()
592 self.emit_store_imm32(mem, OperandSize::S16, dst, insn.off as i32, insn.imm) in jit_compile()
595 self.emit_store_imm32(mem, OperandSize::S32, dst, insn.off as i32, insn.imm) in jit_compile()
598 self.emit_store_imm32(mem, OperandSize::S64, dst, insn.off as i32, insn.imm) in jit_compile()
602 ebpf::ST_B_REG => self.emit_store(mem, OperandSize::S8, src, dst, insn.off as i32), in jit_compile()
[all …]
H A Dinsn_builder.rs27 self.get_insn().off in get_off()
49 self.get_insn_mut().off = offset; in set_off()
188 off: 0x00_00, in mov_internal()
203 off: 0x00_00, in swap_bytes()
240 off: 0x00_00, in load_internal()
266 off: 0x00_00, in store_internal()
287 off: 0x00_00, in jump_conditional()
301 off: 0x00_00, in call()
315 off: 0x00_00, in exit()
H A Dverifier.rs78 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()
H A Dcranelift.rs337 let loaded = self.reg_load(bcx, ty, base, insn.off); in translate_program()
383 self.reg_store(bcx, ty, base, insn.off, narrow); in translate_program()
1155 let target_pc: u32 = (insn_ptr as isize + insn.off as isize + 1) in prepare_jump_blocks()
/DragonOS/kernel/crates/rbpf/examples/
H A Dto_json.rs34 "off" => format!("{:#x}", insn.off), // => insn.off, in to_json()
/DragonOS/kernel/crates/rbpf/mk/
H A Dappveyor.bat27 REM vcvarsall turns echo off
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs742 for off in &offsets.as_slice()[..offsets.len() - 1] {
746 let bytes_offset = fs.cluster_bytes_offset(off.0) + off.1;
824 for off in offsets { in remove_dir_entries()
825 let gendisk_bytes_offset = fs.cluster_bytes_offset(off.0) + off.1; in remove_dir_entries()
2381 if let Some(off) = self.end_offset { in next()
2383 self.fin = off == self.current_offset; in next()
H A Dfs.rs1336 if let Some(off) = self.offset { in flush()
1337 let in_block_offset = off % LBA_SIZE as u64; in flush()
1339 let lba = off as usize / LBA_SIZE; in flush()
1364 if let Some(off) = self.offset { in update()
1365 let in_block_offset = off % LBA_SIZE as u64; in update()
1367 let lba = off as usize / LBA_SIZE; in update()
/DragonOS/kernel/crates/rbpf/tests/
H A Dassembler.rs16 fn insn(opc: u8, dst: u8, src: u8, off: i16, imm: i32) -> ebpf::Insn { in insn()
21 off, in insn()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md482 Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
518 Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
1628 Signed-off-by: plucky <m202372036@hust.edu.cn>
1632 Signed-off-by: plucky <m202372036@hust.edu.cn>
1636 Signed-off-by: plucky <m202372036@hust.edu.cn>
1640 Signed-off-by: plucky <m202372036@hust.edu.cn>
/DragonOS/kernel/crates/rbpf/
H A DREADME.md593 When contributing Pull Requests, please sign off your commits accordingly.
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs194 pub off: __s16, field