Home
last modified time | relevance | path

Searched refs:BPF_REG_4 (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dalign.c60 BPF_MOV64_IMM(BPF_REG_4, 32),
61 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
62 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
63 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
64 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
91 BPF_MOV64_IMM(BPF_REG_4, 8),
92 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 4),
93 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 2),
153 LOAD_UNKNOWN(BPF_REG_4),
154 BPF_ALU64_IMM(BPF_LSH, BPF_REG_4, 5),
[all …]
Dflow_dissector_load_bytes.c16 BPF_MOV64_IMM(BPF_REG_4, 1), in serial_test_flow_dissector_load_bytes()
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Dcalls.c1556 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1569 BPF_JMP_IMM(BPF_JNE, BPF_REG_4, 1, 2),
1628 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1641 BPF_JMP_IMM(BPF_JNE, BPF_REG_4, 1, 2),
1697 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1710 BPF_JMP_IMM(BPF_JNE, BPF_REG_4, 1, 2),
1768 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1781 BPF_JMP_IMM(BPF_JNE, BPF_REG_4, 1, 2),
1837 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1850 BPF_JMP_IMM(BPF_JNE, BPF_REG_4, 0, 2),
[all …]
Djit.c27 BPF_MOV64_IMM(BPF_REG_4, 1),
30 BPF_ALU32_REG(BPF_LSH, BPF_REG_1, BPF_REG_4),
33 BPF_ALU64_REG(BPF_RSH, BPF_REG_1, BPF_REG_4),
34 BPF_MOV64_REG(BPF_REG_4, BPF_REG_1),
35 BPF_ALU32_REG(BPF_RSH, BPF_REG_4, BPF_REG_0),
36 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0xff, 1),
38 BPF_ALU64_REG(BPF_ARSH, BPF_REG_4, BPF_REG_4),
39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1),
Dprecise.c148 BPF_LDX_MEM(BPF_DW, BPF_REG_4, BPF_REG_10, -8),
150 BPF_JMP_REG(BPF_JGT, BPF_REG_4, BPF_REG_0, 0),
175 BPF_LDX_MEM(BPF_DW, BPF_REG_4, BPF_REG_10, -8),
177 BPF_JMP_REG(BPF_JGT, BPF_REG_4, BPF_REG_0, 0),
201 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, offsetof(struct xdp_md, ingress_ifindex)),
206 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1),
239 BPF_LD_MAP_FD(BPF_REG_4, 0),
240 BPF_ALU64_REG(BPF_MOV, BPF_REG_1, BPF_REG_4),
Dbpf_loop_inline.c49 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
75 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
84 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 1),
116 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
154 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
188 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
195 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
207 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
Datomic_fetch.c125 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 1, BPF_ADD | BPF_FETCH, 2, 3),
131 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
137 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_OR | BPF_FETCH, 0x011, 0x011),
143 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001),
149 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_XCHG, 0x011, 0x011),
Devent_output.c30 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10), \
31 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, -8), \
Dctx_skb.c1157 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, // 1. r4 = *(u32 *)(r1 + data)
1159 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4
1163 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 14), // 6. r4 += 14
1164 BPF_MOV64_REG(BPF_REG_1, BPF_REG_4), // 7. r1 = r4
1179 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, // 1. r4 = *(u32 *)(r1 + data)
1181 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4
1185 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 14), // 6. r4 += 14
1186 BPF_MOV64_REG(BPF_REG_1, BPF_REG_4), // 7. r1 = r4
Dld_abs.c41 BPF_MOV64_IMM(BPF_REG_4, 0),
43 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
Djump.c391 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
Djmp32.c887 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sysctl.c241 BPF_MOV64_IMM(BPF_REG_4, BPF_F_SYSCTL_BASE_NAME),
282 BPF_MOV64_IMM(BPF_REG_4, BPF_F_SYSCTL_BASE_NAME),
326 BPF_MOV64_IMM(BPF_REG_4, 0),
380 BPF_MOV64_IMM(BPF_REG_4, 0),
428 BPF_MOV64_IMM(BPF_REG_4, 0),
891 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
935 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
961 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
1005 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
1038 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
[all …]
Dtest_verifier.c446 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0); in bpf_fill_big_prog_with_loop_1()
477 BPF_MOV64_IMM(BPF_REG_4, 0), \
491 BPF_MOV64_REG(BPF_REG_4, BPF_REG_2), \
492 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 8), \
493 BPF_JMP_REG(BPF_JLE, BPF_REG_4, BPF_REG_3, 1), \
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dverifier_ld_ind.c73 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_4, -0x200000)) in ind_check_calling_conv_r4()
/Linux-v6.6/tools/lib/bpf/
Dgen_loader.c322 emit(gen, BPF_MOV64_REG(BPF_REG_4, reg2)); in emit_debug()
551 emit(gen, BPF_MOV64_IMM(BPF_REG_4, 0)); in emit_find_attach_target()
625 emit(gen, BPF_MOV64_IMM(BPF_REG_4, 0)); in emit_bpf_find_by_name_kind()
645 emit2(gen, BPF_LD_IMM64_RAW_FULL(BPF_REG_4, BPF_PSEUDO_MAP_IDX_VALUE, in emit_bpf_kallsyms_lookup_name()
647 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_4)); in emit_bpf_kallsyms_lookup_name()
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c126 [BPF_REG_4] = 1, /* RCX */
143 [BPF_REG_4] = offsetof(struct pt_regs, cx),
1283 if (boot_cpu_has(X86_FEATURE_BMI2) && src_reg != BPF_REG_4) { in do_jit()
1305 if (src_reg != BPF_REG_4) { /* common case */ in do_jit()
1307 if (dst_reg == BPF_REG_4) { in do_jit()
1315 EMIT_mov(BPF_REG_4, src_reg); in do_jit()
1325 if (src_reg != BPF_REG_4) { in do_jit()
1326 if (insn->dst_reg == BPF_REG_4) in do_jit()
Dbpf_jit_comp32.c147 [BPF_REG_4] = {STACK_OFFSET(32), STACK_OFFSET(36)},
2088 const u8 *r4 = bpf2ia32[BPF_REG_4]; in do_jit()
/Linux-v6.6/samples/bpf/
Dcookie_uid_helper_example.c139 BPF_MOV64_IMM(BPF_REG_4, 0), in prog_load()
/Linux-v6.6/tools/include/linux/
Dfilter.h17 #define BPF_REG_ARG4 BPF_REG_4
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp64.c25 [BPF_REG_4] = HPPA_R(8),
472 emit_hppa_copy(regmap[BPF_REG_4], HPPA_REG_ARG3, ctx); in emit_call()
1170 LOAD_PARAM(HPPA_REG_ARG3, BPF_REG_4); in bpf_jit_build_prologue()
Dbpf_jit_comp32.c81 [BPF_REG_4] = {HPPA_R(9), HPPA_R(10)},
901 reg = bpf_get_reg64_offset(regmap[BPF_REG_4], tmp, offset_sp, ctx); in emit_call()
1557 dst = regmap[BPF_REG_4]; in bpf_jit_build_prologue()
/Linux-v6.6/include/linux/
Dbpf_verifier.h245 (1 << BPF_REG_3) | (1 << BPF_REG_4) | \
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c261 reg1 = cur_regs(env) + BPF_REG_4; in nfp_bpf_check_helper_call()
/Linux-v6.6/arch/arm/net/
Dbpf_jit_32.c156 [BPF_REG_4] = {STACK_OFFSET(BPF_R4_HI), STACK_OFFSET(BPF_R4_LO)},
1784 const s8 *r4 = bpf2a32[BPF_REG_4]; in build_insn()

12