/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | align.c | 32 BPF_MOV64_IMM(BPF_REG_3, 2), 33 BPF_MOV64_IMM(BPF_REG_3, 4), 34 BPF_MOV64_IMM(BPF_REG_3, 8), 35 BPF_MOV64_IMM(BPF_REG_3, 16), 36 BPF_MOV64_IMM(BPF_REG_3, 32), 54 BPF_MOV64_IMM(BPF_REG_3, 1), 55 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1), 88 BPF_MOV64_IMM(BPF_REG_3, 4), 112 BPF_MOV64_IMM(BPF_REG_3, 7), 148 LOAD_UNKNOWN(BPF_REG_3), [all …]
|
H A D | flow_dissector_load_bytes.c | 13 BPF_ALU64_REG(BPF_MOV, BPF_REG_3, BPF_REG_10), in serial_test_flow_dissector_load_bytes() 14 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -1), in serial_test_flow_dissector_load_bytes()
|
H A D | cgroup_attach_multi.c | 59 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_0, 0), in prog_load_cnt() 60 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 0x1), in prog_load_cnt() 61 BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_3, 0), in prog_load_cnt()
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | jit.c | 84 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL), 85 BPF_ALU64_REG(BPF_MUL, BPF_REG_3, BPF_REG_1), 89 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL), 90 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, 0xefefef), 100 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL), 101 BPF_ALU32_REG(BPF_MUL, BPF_REG_3, BPF_REG_1), 105 BPF_LD_IMM64(BPF_REG_3, 0xfefefeULL), 106 BPF_ALU32_IMM(BPF_MUL, BPF_REG_3, 0xefefef), 139 BPF_LD_IMM64(BPF_REG_3, 0xeeff0d413122ULL), 150 BPF_LD_IMM64(BPF_REG_3, 0xbeefULL), [all …]
|
H A D | precise.c | 33 BPF_MOV64_IMM(BPF_REG_3, 0), 92 BPF_MOV64_IMM(BPF_REG_3, 0), 145 BPF_MOV64_REG(BPF_REG_3, BPF_REG_10), 146 BPF_JMP_IMM(BPF_JNE, BPF_REG_3, 123, 0), 147 BPF_ST_MEM(BPF_DW, BPF_REG_3, -8, 0), 172 BPF_MOV64_REG(BPF_REG_3, BPF_REG_10), 173 BPF_JMP_IMM(BPF_JNE, BPF_REG_3, 123, 0), 174 BPF_STX_MEM(BPF_DW, BPF_REG_3, BPF_REG_0, -8), 205 BPF_MOV64_IMM(BPF_REG_3, 0), 250 BPF_LDX_MEM(BPF_DW, BPF_REG_3, BPF_REG_0, 0), [all …]
|
H A D | jump.c | 144 BPF_MOV64_REG(BPF_REG_3, BPF_REG_2), 146 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8), 152 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8), 380 BPF_MOV64_IMM(BPF_REG_3, 0), 381 BPF_ALU64_IMM(BPF_NEG, BPF_REG_3, 0), 382 BPF_ALU64_IMM(BPF_NEG, BPF_REG_3, 0), 383 BPF_ALU64_IMM(BPF_OR, BPF_REG_3, 32767), 384 BPF_JMP_IMM(BPF_JSGE, BPF_REG_3, 0, 1), 386 BPF_JMP_IMM(BPF_JSLE, BPF_REG_3, 0x8000, 1), 388 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -32767), [all …]
|
H A D | basic_instr.c | 154 BPF_LD_IMM64(BPF_REG_3, 0), 155 BPF_ALU64_REG(BPF_RSH, BPF_REG_1, BPF_REG_3), 169 BPF_LD_IMM64(BPF_REG_3, 0), 170 BPF_ALU64_REG(BPF_ARSH, BPF_REG_1, BPF_REG_3), 210 BPF_MOV64_IMM(BPF_REG_3, 0), 211 BPF_MOV64_REG(BPF_REG_2, BPF_REG_3),
|
H A D | bpf_loop_inline.c | 48 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 80 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 115 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 153 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 187 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 194 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 206 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0),
|
H A D | atomic_fetch.c | 124 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 1, BPF_ADD | BPF_FETCH, 2, 3), 130 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010), 136 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_OR | BPF_FETCH, 0x011, 0x011), 142 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001), 148 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_XCHG, 0x011, 0x011),
|
H A D | calls.c | 319 BPF_MOV32_IMM(BPF_REG_3, 1), 942 BPF_MOV64_IMM(BPF_REG_3, 2), 1557 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7), 1629 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7), 1698 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7), 1769 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7), 1838 BPF_MOV64_REG(BPF_REG_3, BPF_REG_7), 1875 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, 1907 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, 1940 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, [all …]
|
H A D | ld_abs.c | 29 BPF_MOV64_IMM(BPF_REG_3, 0), 31 BPF_MOV64_REG(BPF_REG_0, BPF_REG_3), 83 BPF_MOV64_IMM(BPF_REG_3, 2), 259 BPF_MOV64_IMM(BPF_REG_3, 2),
|
H A D | ctx_skb.c | 320 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, 324 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1), 337 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, 341 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1), 354 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, 358 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 4), 361 BPF_JMP_REG(BPF_JGT, BPF_REG_1, BPF_REG_3, 1), 1159 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4 1160 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 42), // 3. r3 += 42 1181 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4 [all …]
|
H A D | atomic_fetch_add.c | 95 BPF_MOV64_IMM(BPF_REG_3, 1), 96 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_3, 0),
|
H A D | map_kptr.c | 54 BPF_MOV64_REG(BPF_REG_3, BPF_REG_0), 63 BPF_ALU64_REG(BPF_ADD, BPF_REG_3, BPF_REG_2), 64 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_3, 0), 85 BPF_MOV64_REG(BPF_REG_3, BPF_REG_0), 94 BPF_ALU64_REG(BPF_ADD, BPF_REG_3, BPF_REG_2), 95 BPF_MOV64_REG(BPF_REG_1, BPF_REG_3),
|
H A D | event_output.c | 33 BPF_MOV64_IMM(BPF_REG_3, 0), \
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 238 BPF_MOV64_IMM(BPF_REG_3, 8), 279 BPF_MOV64_IMM(BPF_REG_3, 7), 323 BPF_MOV64_IMM(BPF_REG_3, 17), 425 BPF_MOV64_IMM(BPF_REG_3, 7), 464 BPF_MOV64_IMM(BPF_REG_3, 8), 503 BPF_MOV64_IMM(BPF_REG_3, 7), 542 BPF_MOV64_IMM(BPF_REG_3, 6), 579 BPF_MOV64_IMM(BPF_REG_3, 8), 615 BPF_MOV64_IMM(BPF_REG_3, 8), 654 BPF_MOV64_IMM(BPF_REG_3, 8), [all …]
|
H A D | test_cgroup_storage.c | 24 BPF_LDX_MEM(BPF_DW, BPF_REG_3, BPF_REG_0, 0), in main() 25 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 0x1), in main() 26 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_3, 0), in main()
|
H A D | test_verifier.c | 206 insn[i++] = BPF_MOV64_IMM(BPF_REG_3, 2); in bpf_fill_ld_abs_vlan_push_pop() 445 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0); in bpf_fill_big_prog_with_loop_1() 476 BPF_MOV64_IMM(BPF_REG_3, sizeof(struct bpf_sock_tuple)), \ 489 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, \ 493 BPF_JMP_REG(BPF_JLE, BPF_REG_4, BPF_REG_3, 1), \ 591 BPF_MOV64_IMM(BPF_REG_3, idx), in create_prog_dummy_loop()
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_sock.c | 43 BPF_MOV64_IMM(BPF_REG_3, idx), in prog_load() 45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 56 BPF_MOV64_REG(BPF_REG_3, BPF_REG_0), in prog_load() 58 BPF_MOV64_IMM(BPF_REG_3, mark), in prog_load() 63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load() 69 BPF_MOV64_IMM(BPF_REG_3, prio), in prog_load() 71 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), in prog_load()
|
H A D | cookie_uid_helper_example.c | 137 BPF_MOV64_REG(BPF_REG_3, BPF_REG_10), in prog_load() 138 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -32), in prog_load()
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf-prologue.h | 13 #define BPF_PROLOGUE_START_ARG_REG BPF_REG_3
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_ld_ind.c | 56 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_3, -0x200000)) in ind_check_calling_conv_r3()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | gen_loader.c | 127 emit(gen, BPF_MOV64_IMM(BPF_REG_3, 0)); in bpf_gen__init() 271 emit(gen, BPF_MOV64_IMM(BPF_REG_3, attr_size)); in emit_sys_bpf() 320 emit(gen, BPF_MOV64_REG(BPF_REG_3, reg1)); in emit_debug() 550 emit(gen, BPF_MOV64_IMM(BPF_REG_3, gen->attach_kind)); in emit_find_attach_target() 624 emit(gen, BPF_MOV64_IMM(BPF_REG_3, relo->kind)); in emit_bpf_find_by_name_kind() 644 emit(gen, BPF_MOV64_IMM(BPF_REG_3, 0)); in emit_bpf_kallsyms_lookup_name() 1055 emit(gen, BPF_LDX_MEM(BPF_DW, BPF_REG_3, BPF_REG_6, in bpf_gen__map_update_elem() 1059 emit(gen, BPF_JMP_IMM(BPF_JEQ, BPF_REG_3, 0, 8)); in bpf_gen__map_update_elem()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 175 [BPF_REG_3] = 2, /* RDX */ 192 [BPF_REG_3] = offsetof(struct pt_regs, dx), 1231 if (dst_reg != BPF_REG_3) in do_jit() 1236 src_reg == BPF_REG_3) { in do_jit() 1273 dst_reg != BPF_REG_3) in do_jit() 1275 emit_mov_reg(&prog, is64, dst_reg, BPF_REG_3); in do_jit() 1281 if (dst_reg != BPF_REG_3) in do_jit() 2664 EMIT1(add_1mod(0x48, BPF_REG_3)); /* cmp rdx,func */ in emit_bpf_dispatcher() 2667 EMIT2_off32(0x81, add_1reg(0xF8, BPF_REG_3), in emit_bpf_dispatcher() 2685 EMIT1(add_1mod(0x48, BPF_REG_3)); /* cmp rdx,func */ in emit_bpf_dispatcher() [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 24 [BPF_REG_3] = HPPA_R(7), 351 const s8 idx_reg = regmap[BPF_REG_3]; in emit_bpf_tail_call() 471 emit_hppa_copy(regmap[BPF_REG_3], HPPA_REG_ARG2, ctx); in emit_call() 1169 LOAD_PARAM(HPPA_REG_ARG2, BPF_REG_3); in bpf_jit_build_prologue()
|