Searched refs:dst_reg (Results 26 - 45 of 45) sorted by relevance

12

/linux-master/arch/loongarch/net/
H A Dbpf_jit.c289 const u8 dst = regmap[insn->dst_reg];
401 int dst_reg = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup); local
404 regs->regs[dst_reg] = 0;
413 int dst_reg)
451 ex->fixup = FIELD_PREP(BPF_FIXUP_OFFSET_MASK, offset) | FIELD_PREP(BPF_FIXUP_REG_MASK, dst_reg);
470 const u8 dst = regmap[insn->dst_reg];
946 /* dst_reg = (s64)*(signed size *)(src_reg + off) */
411 add_exception_handler(const struct bpf_insn *insn, struct jit_ctx *ctx, int dst_reg) argument
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dump.c724 {.code = (__u8)1,.dst_reg = (__u8)0x2,.src_reg = (__u8)0x3,.off = (__s16)4,.imm = (__s32)5,});
728 { .code = 1, .dst_reg = 0x2, .src_reg = 0x3, .off = 4,
733 " .dst_reg = (__u8)0x2,\n"
738 {.code = 1, .dst_reg = 2, .src_reg = 3, .off = 4, .imm = 5});
742 "(struct bpf_insn){.dst_reg = (__u8)0x1,}",
743 { .code = 0, .dst_reg = 1});
/linux-master/arch/arm64/net/
H A Dbpf_jit_comp.c488 const u8 dst = bpf2a64[insn->dst_reg];
505 /* lock *(u32/u64 *)(dst_reg + off) <op>= src_reg */
519 /* src_reg = atomic_fetch_<op>(dst_reg + off, src_reg) */
533 /* src_reg = atomic_xchg(dst_reg + off, src_reg); */
537 /* r0 = atomic_cmpxchg(dst_reg + off, r0, src_reg); */
558 const u8 dst = bpf2a64[insn->dst_reg];
580 /* lock *(u32/u64 *)(dst_reg + off) <op>= src_reg */
598 /* src_reg = atomic_fetch_<op>(dst_reg + off, src_reg) */
617 /* src_reg = atomic_xchg(dst_reg + off, src_reg); */
626 /* r0 = atomic_cmpxchg(dst_reg
746 int dst_reg = FIELD_GET(BPF_FIXUP_REG_MASK, ex->fixup); local
754 add_exception_handler(const struct bpf_insn *insn, struct jit_ctx *ctx, int dst_reg) argument
[all...]
/linux-master/arch/sparc/net/
H A Dbpf_jit_comp_64.c898 const u8 dst = bpf2sparc[insn->dst_reg];
1302 if (insn->dst_reg == BPF_REG_FP)
1343 if (insn->dst_reg == BPF_REG_FP)
1384 if (insn->dst_reg == BPF_REG_FP)
1412 if (insn->dst_reg == BPF_REG_FP)
/linux-master/arch/x86/net/
H A Dbpf_jit_comp32.c188 /* Encode 'dst_reg' register into IA32 opcode 'byte' */
189 static u8 add_1reg(u8 byte, u32 dst_reg) argument
191 return byte + dst_reg;
194 /* Encode 'dst_reg' and 'src_reg' registers into IA32 opcode 'byte' */
195 static u8 add_2reg(u8 byte, u32 dst_reg, u32 src_reg) argument
197 return byte + dst_reg + (src_reg << 3);
1675 const bool dstk = insn->dst_reg != BPF_REG_AX;
1678 const u8 *dst = bpf2ia32[insn->dst_reg];
1911 /* ST: *(u8*)(dst_reg + off) = imm */
1951 /* STX: *(u8*)(dst_reg
[all...]
/linux-master/tools/lib/bpf/
H A Drelo_core.c975 insn->dst_reg = 0;
1119 insn[1].code != 0 || insn[1].dst_reg != 0 ||
1145 insn->src_reg, insn->dst_reg, insn->off, insn->imm);
H A Dlibbpf.c757 insn->dst_reg == 0 &&
5902 insn->dst_reg = 0;
5929 insn->dst_reg = 0;
7208 insn->dst_reg == 0) {
/linux-master/tools/bpf/bpftool/
H A Dxlated_dumper.c283 jsonw_name(json_wtr, "dst_reg");
284 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].dst_reg);
/linux-master/kernel/trace/
H A Dbpf_trace.c2194 data), si->dst_reg, si->src_reg,
2196 *insn++ = BPF_LDX_MEM(BPF_DW, si->dst_reg, si->dst_reg,
2202 data), si->dst_reg, si->src_reg,
2204 *insn++ = BPF_LDX_MEM(BPF_DW, si->dst_reg, si->dst_reg,
2210 regs), si->dst_reg, si->src_reg,
2212 *insn++ = BPF_LDX_MEM(BPF_SIZEOF(long), si->dst_reg, si->dst_reg,
/linux-master/arch/riscv/net/
H A Dbpf_jit_comp64.c407 *rd = bpf_to_rv_reg(insn->dst_reg, ctx);
482 /* lock *(u32/u64 *)(dst_reg + off16) <op>= src_reg */
499 /* src_reg = atomic_fetch_<op>(dst_reg + off16, src_reg) */
524 /* src_reg = atomic_xchg(dst_reg + off16, src_reg); */
531 /* r0 = atomic_cmpxchg(dst_reg + off16, r0, src_reg); */
567 int dst_reg, int insn_len)
626 FIELD_PREP(BPF_FIXUP_REG_MASK, dst_reg);
565 add_exception_handler(const struct bpf_insn *insn, struct rv_jit_context *ctx, int dst_reg, int insn_len) argument
H A Dbpf_jit_comp32.c964 const s8 *dst = bpf2rv32[insn->dst_reg];
/linux-master/arch/mips/net/
H A Dbpf_jit_comp64.c637 u8 dst = bpf2mips64[insn->dst_reg];
H A Dbpf_jit_comp.c862 access_reg(ctx, insn->dst_reg);
H A Dbpf_jit_comp32.c1465 const u8 *dst = bpf2mips32[insn->dst_reg];
/linux-master/arch/parisc/net/
H A Dbpf_jit_comp32.c1126 const s8 *dst = regmap[insn->dst_reg];
1132 "BPF_CODE %#02x src_reg %d dst_reg %d\n",
1134 BPF_OP(code), insn->src_reg, insn->dst_reg);
H A Dbpf_jit_comp64.c419 *rd = bpf_to_hppa_reg(insn->dst_reg, ctx);
/linux-master/include/uapi/linux/
H A Dbpf.h79 __u8 dst_reg:4; /* dest register */ member in struct:bpf_insn
/linux-master/tools/include/uapi/linux/
H A Dbpf.h79 __u8 dst_reg:4; /* dest register */ member in struct:bpf_insn
/linux-master/tools/testing/selftests/bpf/
H A Dtest_verifier.c1460 i, insn->code, insn->dst_reg,
/linux-master/arch/arm/net/
H A Dbpf_jit_32.c1562 const s8 *dst = bpf2a32[insn->dst_reg];

Completed in 358 milliseconds

12