/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | jump.c | 6 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 D | dead_code.c | 4 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 D | jset.c | 15 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 D | map_kptr.c | 12 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 D | precise.c | 11 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 D | calls.c | 16 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 D | atomic_and.c | 11 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 D | atomic_xor.c | 11 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 D | atomic_or.c | 11 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 D | jit.c | 8 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 D | atomic_fetch_add.c | 11 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 D | bpf_loop_inline.c | 41 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 D | atomic_fetch.c | 15 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 D | atomic_cmpxchg.c | 11 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 D | jmp32.c | 8 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 D | ld_abs.c | 124 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 D | ld_imm64.c | 4 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 D | ctx_skb.c | 6 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 D | atomic_xchg.c | 10 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2), 15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 4, 2),
|
H A D | basic_instr.c | 24 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 D | test_sysctl.c | 86 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 D | test_sock.c | 204 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 D | gen_loader.c | 133 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 D | test_bpf.c | 4471 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 D | sockopt.c | 133 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),
|