Home
last modified time | relevance | path

Searched refs:BPF_ADD (Results 1 – 25 of 72) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c89 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 Dcgroup_attach_multi.c43 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()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dmap_kptr.c8 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 Dcalls.c28 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 Datomic_fetch_add.c9 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 Dbpf_st_mem.c6 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 Datomic_fetch.c8 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 Dprecise.c8 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 Datomic_invalid.c14 __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 Dbasic_instr.c5 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 Djump.c59 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 Dctx_skb.c47 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 Datomic_bounds.c18 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8),
H A Djmp32.c798 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 Dtest_sysctl.c231 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 Dtest_cgroup_storage.c25 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 Ddisasm.c74 [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 Dtest_bpf.c570 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 Dtest_cgrp2_attach.c52 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 Dcookie_uid_helper_example.c95 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 Dsock_example.c53 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 Dbpf_jit_comp64.c186 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 Ddisasm.c74 [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 Dbpf_common.h32 #define BPF_ADD 0x00 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h32 #define BPF_ADD 0x00 macro

123