/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | align.c | 60 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), 183 BPF_MOV64_REG(BPF_REG_4, BPF_REG_3), [all …]
|
H A D | flow_dissector_load_bytes.c | 16 BPF_MOV64_IMM(BPF_REG_4, 1), in serial_test_flow_dissector_load_bytes()
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | jit.c | 27 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),
|
H A D | calls.c | 1558 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9), 1630 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9), 1699 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9), 1770 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9), 1839 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9), 1867 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10), 1896 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10), 1901 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0), 1928 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10), 1934 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0), [all …]
|
H A D | precise.c | 148 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),
|
H A D | bpf_loop_inline.c | 49 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),
|
H A D | atomic_fetch.c | 125 __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),
|
H A D | event_output.c | 30 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10), \ 31 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, -8), \
|
H A D | ctx_skb.c | 1157 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
|
H A D | ld_abs.c | 41 BPF_MOV64_IMM(BPF_REG_4, 0), 43 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
|
H A D | jump.c | 391 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
|
H A D | jmp32.c | 887 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 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), 1082 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7), 1123 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7), [all …]
|
H A D | test_verifier.c | 446 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), \
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_ld_ind.c | 73 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_4, -0x200000)) in ind_check_calling_conv_r4()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | gen_loader.c | 322 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()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 176 [BPF_REG_4] = 1, /* RCX */ 193 [BPF_REG_4] = offsetof(struct pt_regs, cx), 1337 if (boot_cpu_has(X86_FEATURE_BMI2) && src_reg != BPF_REG_4) { in do_jit() 1359 if (src_reg != BPF_REG_4) { /* common case */ in do_jit() 1361 if (dst_reg == BPF_REG_4) { in do_jit() 1369 EMIT_mov(BPF_REG_4, src_reg); in do_jit() 1379 if (src_reg != BPF_REG_4) { in do_jit() 1380 if (insn->dst_reg == BPF_REG_4) in do_jit()
|
H A D | bpf_jit_comp32.c | 147 [BPF_REG_4] = {STACK_OFFSET(32), STACK_OFFSET(36)}, 2088 const u8 *r4 = bpf2ia32[BPF_REG_4]; in do_jit()
|
/openbmc/linux/samples/bpf/ |
H A D | cookie_uid_helper_example.c | 139 BPF_MOV64_IMM(BPF_REG_4, 0), in prog_load()
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 17 #define BPF_REG_ARG4 BPF_REG_4
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 25 [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()
|
H A D | bpf_jit_comp32.c | 81 [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()
|
/openbmc/linux/include/linux/ |
H A D | bpf_verifier.h | 245 (1 << BPF_REG_3) | (1 << BPF_REG_4) | \
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | verifier.c | 261 reg1 = cur_regs(env) + BPF_REG_4; in nfp_bpf_check_helper_call()
|
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 156 [BPF_REG_4] = {STACK_OFFSET(BPF_R4_HI), STACK_OFFSET(BPF_R4_LO)}, 1784 const s8 *r4 = bpf2a32[BPF_REG_4]; in build_insn()
|