Home
last modified time | relevance | path

Searched refs:BPF_JMP_IMM (Results 1 – 25 of 48) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Djump.c6 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
31 BPF_JMP_IMM(BPF_JA, 0, 0, 14),
34 BPF_JMP_IMM(BPF_JA, 0, 0, 11),
37 BPF_JMP_IMM(BPF_JA, 0, 0, 8),
40 BPF_JMP_IMM(BPF_JA, 0, 0, 5),
43 BPF_JMP_IMM(BPF_JA, 0, 0, 2),
60 BPF_JMP_IMM(BPF_JA, 0, 0, 19),
64 BPF_JMP_IMM(BPF_JA, 0, 0, 15),
68 BPF_JMP_IMM(BPF_JA, 0, 0, 11),
72 BPF_JMP_IMM(BPF_JA, 0, 0, 7),
[all …]
H A Ddead_code.c4 BPF_JMP_IMM(BPF_JA, 0, 0, 2),
6 BPF_JMP_IMM(BPF_JA, 0, 0, 2),
8 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 10, -4),
20 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
21 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 10, 0),
31 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 4),
32 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
33 BPF_JMP_IMM(BPF_JA, 0, 0, 2),
72 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
74 BPF_JMP_IMM(BPF_JA, 0, 0, -5),
[all …]
H A Djset.c15 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
19 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, -1, 1),
80 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
94 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
108 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
109 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
123 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
138 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 3, 1),
155 BPF_JMP_IMM(BPF_JSET, BPF_REG_1, 0xf0, 3),
156 BPF_JMP_IMM(BPF_JLT, BPF_REG_1, 0x10, 1),
[all …]
H A Dmap_kptr.c12 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
32 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
52 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
56 BPF_JMP_IMM(BPF_JNE, BPF_REG_2, 0, 1),
59 BPF_JMP_IMM(BPF_JLE, BPF_REG_2, 4, 1),
61 BPF_JMP_IMM(BPF_JGE, BPF_REG_2, 0, 1),
83 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
87 BPF_JMP_IMM(BPF_JNE, BPF_REG_2, 0, 1),
90 BPF_JMP_IMM(BPF_JLE, BPF_REG_2, 4, 1),
92 BPF_JMP_IMM(BPF_JGE, BPF_REG_2, 0, 1),
[all …]
H A Dprecise.c11 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
20 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
27 BPF_JMP_IMM(BPF_JLT, BPF_REG_2, 8, 1),
70 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
79 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
86 BPF_JMP_IMM(BPF_JLT, BPF_REG_2, 8, 1),
122 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
126 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1),
130 BPF_JMP_IMM(BPF_JEQ, BPF_REG_8, 1, 1),
134 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 0),
[all …]
H A Dcalls.c16 BPF_JMP_IMM(BPF_JGT, BPF_REG_0, 0, 2),
401 BPF_JMP_IMM(BPF_JA, 0, 0, 4),
402 BPF_JMP_IMM(BPF_JA, 0, 0, 4),
487 BPF_JMP_IMM(BPF_JA, 0, 0, 4),
491 BPF_JMP_IMM(BPF_JA, 0, 0, -6),
493 BPF_JMP_IMM(BPF_JA, 0, 0, -6),
511 BPF_JMP_IMM(BPF_JA, 0, 0, -5),
747 BPF_JMP_IMM(BPF_JA, 0, 0, 2),
749 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
761 BPF_JMP_IMM(BPF_JA, 0, 0, 2),
[all …]
H A Datomic_and.c11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x010, 2),
16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x011, 1),
32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2),
37 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x010, 2),
41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 123, 2),
87 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x110, 2),
92 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x010, 2),
H A Datomic_xor.c11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x101, 2),
16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x011, 1),
32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2),
37 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x101, 2),
41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 123, 2),
H A Datomic_or.c11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x111, 2),
16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x011, 1),
32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2),
37 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x111, 2),
41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 123, 2),
H A Djit.c8 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x3fc, 1),
12 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0xff, 1),
15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x7f, 1),
31 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x3fc, 1),
36 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0xff, 1),
39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1),
163 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 2),
167 BPF_JMP_IMM(BPF_JEQ, BPF_REG_2, 0, 2),
H A Datomic_fetch_add.c11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2),
17 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 4, 1),
33 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2),
39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 4, 1),
H A Dbpf_loop_inline.c41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 777, 2),
43 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
74 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 0, 9),
76 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0, 0),
85 BPF_JMP_IMM(BPF_JA, 0, 0, -10),
104 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 777, 4), /* pick a random callback */
109 BPF_JMP_IMM(BPF_JA, 0, 0, 3),
H A Datomic_fetch.c15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1),
39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1),
63 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1),
86 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1),
107 BPF_JMP_IMM(BPF_JEQ, src_reg, operand1, 2), \
112 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, expect, 2), \
H A Datomic_cmpxchg.c11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 3, 2),
16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 3, 2),
24 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 3, 2),
29 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 4, 2),
122 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 2),
H A Djmp32.c8 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
39 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
215 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x10, 1),
356 BPF_JMP_IMM(BPF_JGT, BPF_REG_7, 0x7ffffff0, 1),
498 BPF_JMP_IMM(BPF_JSLT, BPF_REG_7, 0x7ffffff0, 1),
569 BPF_JMP_IMM(BPF_JSGE, BPF_REG_7, 0x7ffffff0, 1),
640 BPF_JMP_IMM(BPF_JSGT, BPF_REG_7, -2, 1),
801 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9),
828 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 10),
856 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 10),
[all …]
H A Dld_abs.c124 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0x806, 28),
126 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0x806, 26),
137 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 15),
139 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0x806, 13),
150 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 2),
H A Dld_imm64.c4 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
19 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
33 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
H A Dctx_skb.c6 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
9 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
12 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1),
15 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
18 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
21 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
24 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
27 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0),
44 BPF_JMP_IMM(BPF_JGE, BPF_REG_1, 0, 9),
77 BPF_JMP_IMM(BPF_JA, 0, 0, -12),
[all …]
H A Datomic_xchg.c10 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2),
15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 4, 2),
H A Dbasic_instr.c24 BPF_JMP_IMM(BPF_JNE, BPF_REG_2, 0, 1),
99 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 1),
141 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 1),
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sysctl.c86 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2),
107 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2),
167 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 3, 2),
194 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 4, 2),
470 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 6, 6),
509 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 6, 6),
589 BPF_JMP_IMM(BPF_JNE, BPF_REG_9, 0, 2),
621 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 4, 6),
691 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 3, 4),
695 BPF_JMP_IMM(BPF_JNE, BPF_REG_9,
[all …]
H A Dtest_sock.c204 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
208 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x2001, 2),
234 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
238 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x1002, 2),
264 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
268 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x1002, 2),
295 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
299 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x1002, 2),
326 BPF_JMP_IMM(BPF_JNE, BPF_REG_7,
330 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x2001, 2),
/openbmc/linux/tools/lib/bpf/
H A Dgen_loader.c133 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, in bpf_gen__init()
146 emit(gen, BPF_JMP_IMM(BPF_JSLE, BPF_REG_1, 0, 1)); in bpf_gen__init()
246 emit(gen, BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3)); in move_ctx2blob()
293 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, -1)); in emit_check_err()
346 emit(gen, BPF_JMP_IMM(BPF_JSLE, BPF_REG_1, 0, in __emit_sys_close()
700 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, 10)); in emit_relo_kfunc_btf()
712 emit(gen, BPF_JMP_IMM(BPF_JNE, BPF_REG_9, 0, 2)); in emit_relo_kfunc_btf()
716 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, 1)); in emit_relo_kfunc_btf()
832 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, 4)); in emit_relo_ksym_btf()
840 emit(gen, BPF_JMP_IMM(BPF_JA, 0, 0, 3)); in emit_relo_ksym_btf()
[all …]
/openbmc/linux/lib/
H A Dtest_bpf.c4471 BPF_JMP_IMM(BPF_JEQ, R0, 1, 1),
5145 BPF_JMP_IMM(BPF_JEQ, R0, 0, 2),
5235 BPF_JMP_IMM(BPF_JEQ, R0, 0, 2),
9468 BPF_JMP_IMM(BPF_JA, 0, 0, 1),
9675 BPF_JMP_IMM(BPF_JGT, R1, 2, 1),
9689 BPF_JMP_IMM(BPF_JGT, R1, 1, 1),
9704 BPF_JMP_IMM(BPF_JLT, R1, 3, 1),
9733 BPF_JMP_IMM(BPF_JGE, R1, 2, 1),
9748 BPF_JMP_IMM(BPF_JLE, R1, 3, 1),
9778 BPF_JMP_IMM(BPF_JGE, R1, 3, 1),
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c133 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 123, 4),
176 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 123, 4),
237 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 64, 4),
501 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 123, 4),
555 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 123, 4),
609 BPF_JMP_IMM(BPF_JNE, BPF_REG_6, 64, 4),
844 BPF_JMP_IMM(BPF_JGT, BPF_REG_9, 128, 2),
890 BPF_JMP_IMM(BPF_JGT, BPF_REG_9, 128, 2),

12