/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | align.c | 89 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 4), 90 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 2), 92 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 4), 93 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 2), 140 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), \ 218 BPF_ALU64_IMM(BPF_ADD, BPF_REG_5, 14), 220 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 4), 260 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 4), 273 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 4), 285 BPF_ALU64_IMM(BPF_ADD, BPF_REG_5, 4), [all …]
|
H A D | cgroup_attach_multi.c | 43 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load_cnt() 48 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in prog_load_cnt() 54 BPF_ATOMIC_OP(BPF_W, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in prog_load_cnt() 60 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 0x1), in prog_load_cnt()
|
H A D | sockopt.c | 291 BPF_ALU64_IMM(BPF_ADD, BPF_REG_6, 1), 380 BPF_ALU64_IMM(BPF_ADD, BPF_REG_6, 1), 690 BPF_ALU64_IMM(BPF_ADD, BPF_REG_6, 1), 727 BPF_ALU64_IMM(BPF_ADD, BPF_REG_6, 1), 831 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 1), 877 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 1),
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | map_kptr.c | 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 28 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 48 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 79 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 111 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 117 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 7), 133 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 163 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 172 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, 4), 187 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), [all …]
|
H A D | calls.c | 28 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 43 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 58 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 73 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 88 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 103 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 122 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 127 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 165 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 172 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -4), [all …]
|
H A D | atomic_fetch_add.c | 9 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8), 31 BPF_ATOMIC_OP(BPF_W, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4), 50 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_10, -8), 62 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_2, -8), 75 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_0, -8), 96 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_3, 0),
|
H A D | bpf_st_mem.c | 6 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, -42), 24 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 26 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 28 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 53 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_10),
|
H A D | atomic_fetch.c | 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 32 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 56 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 79 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 121 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_2, 1, BPF_ADD | BPF_FETCH, 2, 3), 122 __ATOMIC_FETCH_OP_TEST(BPF_REG_0, BPF_REG_1, 1, BPF_ADD | BPF_FETCH, 2, 3), 123 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_0, 1, BPF_ADD | BPF_FETCH, 2, 3), 124 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 1, BPF_ADD | BPF_FETCH, 2, 3), 125 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 1, BPF_ADD | BPF_FETCH, 2, 3), 126 __ATOMIC_FETCH_OP_TEST(BPF_REG_9, BPF_REG_8, 1, BPF_ADD | BPF_FETCH, 2, 3),
|
H A D | precise.c | 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 18 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 30 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, 1), /* R2=scalar(umin=1, umax=8) */ 32 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 67 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 77 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 89 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, 1), /* R2=scalar(umin=1, umax=8) */ 91 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -8), 242 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 249 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_6),
|
H A D | atomic_invalid.c | 14 __INVALID_ATOMIC_ACCESS_TEST(BPF_ADD), 15 __INVALID_ATOMIC_ACCESS_TEST(BPF_ADD | BPF_FETCH), 16 __INVALID_ATOMIC_ACCESS_TEST(BPF_ADD), 17 __INVALID_ATOMIC_ACCESS_TEST(BPF_ADD | BPF_FETCH),
|
H A D | basic_instr.c | 5 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, 2), 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -1), 200 BPF_ALU64_REG(BPF_ADD, BPF_REG_1, BPF_REG_2), 213 BPF_ALU64_REG(BPF_ADD, BPF_REG_1, BPF_REG_2),
|
H A D | jump.c | 59 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 63 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -16), 67 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -32), 71 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -40), 75 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -48), 79 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -56), 388 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -32767),
|
H A D | ctx_skb.c | 47 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 71 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 94 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 323 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 340 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 357 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 360 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, 6), 1160 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 42), // 3. r3 += 42 1163 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 14), // 6. r4 += 14 1182 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 42), // 3. r3 += 42 [all …]
|
H A D | atomic_bounds.c | 18 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8),
|
H A D | jmp32.c | 798 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 809 BPF_ALU64_REG(BPF_ADD, BPF_REG_8, BPF_REG_6), 825 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 837 BPF_ALU64_REG(BPF_ADD, BPF_REG_8, BPF_REG_6), 853 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 865 BPF_ALU64_REG(BPF_ADD, BPF_REG_8, BPF_REG_6),
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 231 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 272 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 314 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -24), 369 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -16), 418 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 460 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 496 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 535 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 574 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 610 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), [all …]
|
H A D | test_cgroup_storage.c | 25 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, 0x1), in main() 33 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in main()
|
H A D | disasm.c | 74 [BPF_ADD >> 4] = "+=", 102 [BPF_ADD >> 4] = "add", 212 (insn->imm == BPF_ADD || insn->imm == BPF_AND || in print_bpf_insn() 221 (insn->imm == (BPF_ADD | BPF_FETCH) || in print_bpf_insn()
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 570 case BPF_ADD: in __bpf_alu_result() 3709 BPF_ALU64_IMM(BPF_ADD, R1, 2), 5201 BPF_ALU32_IMM(BPF_ADD, R0, 2), 5212 BPF_ALU32_IMM(BPF_ADD, R0, 0), 5234 BPF_ALU32_IMM(BPF_ADD, R0, 2), 5329 BPF_ALU64_IMM(BPF_ADD, R0, 2), 5340 BPF_ALU64_IMM(BPF_ADD, R0, 0), 5363 BPF_ALU64_IMM(BPF_ADD, R0, 2), 8891 BPF_ALU64_IMM(BPF_ADD, R0, 1), 8909 BPF_ALU64_IMM(BPF_ADD, R0, 1), [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_attach.c | 52 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load() 57 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in prog_load() 63 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load() 69 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in prog_load()
|
H A D | cookie_uid_helper_example.c | 95 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), in prog_load() 138 BPF_ALU64_IMM(BPF_ADD, BPF_REG_3, -32), in prog_load() 150 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_9, BPF_REG_1, in prog_load() 154 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_9, BPF_REG_1, in prog_load()
|
H A D | sock_example.c | 53 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in test_sock() 58 BPF_ATOMIC_OP(BPF_DW, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in test_sock()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 186 case BPF_ADD: in emit_alu_i64() 217 case BPF_ADD: in emit_alu_r64() 390 case BPF_ADD: in emit_atomic_r64() 391 case BPF_ADD | BPF_FETCH: in emit_atomic_r64() 694 case BPF_ALU | BPF_ADD | BPF_K: in build_insn() 729 case BPF_ALU | BPF_ADD | BPF_X: in build_insn() 768 case BPF_ALU64 | BPF_ADD | BPF_K: in build_insn() 797 case BPF_ALU64 | BPF_ADD | BPF_X: in build_insn() 852 case BPF_ADD: in build_insn() 853 case BPF_ADD | BPF_FETCH: in build_insn()
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 74 [BPF_ADD >> 4] = "+=", 102 [BPF_ADD >> 4] = "add", 212 (insn->imm == BPF_ADD || insn->imm == BPF_AND || in print_bpf_insn() 221 (insn->imm == (BPF_ADD | BPF_FETCH) || in print_bpf_insn()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 32 #define BPF_ADD 0x00 macro
|