/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | map_kptr.c | 5 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), 10 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 25 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 30 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 50 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 58 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_2, 0), 89 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_2, 0), 96 BPF_MOV64_IMM(BPF_REG_2, 0), 283 BPF_MOV64_IMM(BPF_REG_2, 0), [all …]
|
H A D | atomic_fetch.c | 7 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 12 BPF_ST_MEM(BPF_DW, BPF_REG_2, 0, 0), 31 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 32 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 36 BPF_ST_MEM(BPF_DW, BPF_REG_2, 0, 0), 55 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 56 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 60 BPF_ST_MEM(BPF_DW, BPF_REG_2, 0, 0), 78 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), [all …]
|
H A D | jit.c | 53 BPF_LD_IMM64(BPF_REG_2, 0xfeffffffULL), 66 BPF_LD_IMM64(BPF_REG_2, 0xffffffffULL), 77 BPF_LD_IMM64(BPF_REG_2, 0xeeff0d413122ULL), 94 BPF_MOV32_REG(BPF_REG_2, BPF_REG_2), 111 BPF_LD_IMM64(BPF_REG_2, 0x2ad4d4aaULL), 132 BPF_LD_IMM64(BPF_REG_2, 0xefeffeULL), 144 BPF_LD_IMM64(BPF_REG_2, 0xaa93ULL), 155 BPF_LD_IMM64(BPF_REG_2, 0x5ee1dULL), 166 BPF_ALU64_REG(BPF_MOD, BPF_REG_2, BPF_REG_2), 167 BPF_JMP_IMM(BPF_JEQ, BPF_REG_2, 0, 2), [all …]
|
H A D | basic_instr.c | 6 BPF_MOV64_IMM(BPF_REG_2, 3), 7 BPF_ALU64_REG(BPF_SUB, BPF_REG_1, BPF_REG_2), 19 BPF_MOV32_IMM(BPF_REG_2, -1), 20 BPF_ALU64_IMM(BPF_LSH, BPF_REG_2, 32), 21 BPF_ALU64_IMM(BPF_OR, BPF_REG_2, 0xffff), 22 BPF_ALU32_REG(BPF_XOR, BPF_REG_2, BPF_REG_2), 24 BPF_JMP_IMM(BPF_JNE, BPF_REG_2, 0, 1), 139 BPF_LD_IMM64(BPF_REG_2, 0), 197 BPF_MOV64_IMM(BPF_REG_2, 0), 198 BPF_MOV64_REG(BPF_REG_2, BPF_REG_2), [all …]
|
H A D | jump.c | 4 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 7 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 0), 9 BPF_ST_MEM(BPF_DW, BPF_REG_2, -16, 1), 11 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 2), 13 BPF_ST_MEM(BPF_DW, BPF_REG_2, -16, 3), 15 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 4), 148 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8), 154 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8), 160 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8), 166 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8), [all …]
|
H A D | calls.c | 168 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0), 175 BPF_MOV64_REG(BPF_REG_1, BPF_REG_2), 312 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0), 313 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, 8), 318 BPF_MOV32_IMM(BPF_REG_2, 0), 337 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0), 361 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0), 605 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 649 BPF_MOV64_IMM(BPF_REG_2, 0), 941 BPF_MOV64_IMM(BPF_REG_2, 1), [all …]
|
H A D | precise.c | 7 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP), 8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 17 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP), 18 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 26 BPF_MOV64_REG(BPF_REG_2, BPF_REG_9), 27 BPF_JMP_IMM(BPF_JLT, BPF_REG_2, 8, 1), 66 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP), 76 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP), 85 BPF_MOV64_REG(BPF_REG_2, BPF_REG_9), 204 BPF_MOV64_IMM(BPF_REG_2, 1), [all …]
|
H A D | jmp32.c | 5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 36 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 797 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 798 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 824 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 832 BPF_MOV32_IMM(BPF_REG_2, 1), 852 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 860 BPF_MOV32_IMM(BPF_REG_2, 1), 879 BPF_MOV64_IMM(BPF_REG_2, 0), 880 BPF_ALU64_IMM(BPF_NEG, BPF_REG_2, 0), [all …]
|
H A D | bpf_loop_inline.c | 46 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 6), 78 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 7), 107 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 10), 112 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 8), 148 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 9), 151 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 8), 185 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 22), 192 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 16), 204 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 6),
|
H A D | direct_value_access.c | 163 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 46), 164 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff), 177 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 46), 178 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff), 191 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 47), 192 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff), 206 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 46), 207 BPF_ST_MEM(BPF_H, BPF_REG_2, 1, 0xffff),
|
H A D | ld_abs.c | 17 BPF_MOV64_IMM(BPF_REG_2, 0), 19 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 82 BPF_MOV64_IMM(BPF_REG_2, 1), 170 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2), 171 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2), 190 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2), 191 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2), 258 BPF_MOV64_IMM(BPF_REG_2, 1),
|
H A D | atomic_fetch_add.c | 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), 90 BPF_LDX_MEM(BPF_DW, BPF_REG_2, BPF_REG_1, 0), 96 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_3, 0),
|
H A D | atomic_or.c | 90 BPF_MOV64_IMM(BPF_REG_2, 1), 91 BPF_ALU64_IMM(BPF_LSH, BPF_REG_2, 32), 92 BPF_ALU64_IMM(BPF_SUB, BPF_REG_2, 1), 94 BPF_JMP_REG(BPF_JEQ, BPF_REG_2, BPF_REG_1, 2),
|
H A D | ctx_skb.c | 46 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 47 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 70 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 71 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 93 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), 94 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), 322 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 339 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 342 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0), 356 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), [all …]
|
H A D | event_output.c | 28 BPF_MOV64_IMM(BPF_REG_2, 5), \ 29 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -8), \ 32 BPF_LD_MAP_FD(BPF_REG_2, 0), \
|
H A D | jset.c | 5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 62 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 883 BPF_MOV64_IMM(BPF_REG_2, 4), 927 BPF_MOV64_IMM(BPF_REG_2, 8), 952 BPF_MOV64_IMM(BPF_REG_2, 8), 997 BPF_MOV64_IMM(BPF_REG_2, 0), 1030 BPF_MOV64_IMM(BPF_REG_2, 4), 1074 BPF_MOV64_IMM(BPF_REG_2, 4), 1115 BPF_MOV64_IMM(BPF_REG_2, 4), 1157 BPF_MOV64_IMM(BPF_REG_2, 4), 1199 BPF_MOV64_IMM(BPF_REG_2, 4), 1244 BPF_MOV64_IMM(BPF_REG_2, 4), [all …]
|
H A D | test_verifier.c | 205 insn[i++] = BPF_MOV64_IMM(BPF_REG_2, 1); in bpf_fill_ld_abs_vlan_push_pop() 442 BPF_REG_2, BPF_PSEUDO_FUNC, 0, in bpf_fill_big_prog_with_loop_1() 466 BPF_MOV64_IMM(BPF_REG_2, 0), \ 467 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_2, -8), \ 468 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -16), \ 469 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -24), \ 474 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), \ 475 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -48), \ 487 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, \ 491 BPF_MOV64_REG(BPF_REG_4, BPF_REG_2), \ [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | align.c | 132 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, \ 139 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), \ 143 BPF_LDX_MEM(BPF_B, DST_REG, BPF_REG_2, 0) 213 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2), 256 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2), 268 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2), 281 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2), 372 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2), 448 BPF_MOV64_REG(BPF_REG_6, BPF_REG_2), 500 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2), [all …]
|
H A D | cgroup_attach_multi.c | 42 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in prog_load_cnt() 43 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load_cnt() 51 BPF_MOV64_IMM(BPF_REG_2, 0), in prog_load_cnt() 57 BPF_MOV64_IMM(BPF_REG_2, 0), in prog_load_cnt()
|
H A D | sockopt.c | 289 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6), 300 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xFF), 378 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6), 389 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xF0), 688 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6), 699 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xF0), 725 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6), 736 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 1 << 3),
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_attach.c | 51 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in prog_load() 52 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load() 62 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in prog_load() 63 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load()
|
H A D | sock_example.c | 52 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in test_sock() 53 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in test_sock()
|
H A D | test_cgrp2_sock.c | 44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load() 70 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, priority)), in prog_load()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 66 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in bpf_prog() 67 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), in bpf_prog()
|