/external/linux-kselftest/tools/testing/selftests/bpf/verifier/ |
D | subreg.c | 17 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 18 BPF_LD_IMM64(BPF_REG_0, 0x100000000ULL), 19 BPF_ALU32_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 20 BPF_ALU64_IMM(BPF_RSH, BPF_REG_0, 32), 31 BPF_ALU64_REG(BPF_OR, BPF_REG_0, BPF_REG_1), 38 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, 0), 39 BPF_ALU64_IMM(BPF_RSH, BPF_REG_0, 32), 40 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), 43 BPF_ALU64_REG(BPF_OR, BPF_REG_0, BPF_REG_1), 44 BPF_ALU32_IMM(BPF_ADD, BPF_REG_0, -2), [all …]
|
D | jump.c | 18 BPF_MOV64_IMM(BPF_REG_0, 0), 46 BPF_MOV64_IMM(BPF_REG_0, 0), 133 BPF_MOV64_IMM(BPF_REG_0, 0), 150 BPF_MOV64_IMM(BPF_REG_0, 0), 156 BPF_MOV64_IMM(BPF_REG_0, 0), 162 BPF_MOV64_IMM(BPF_REG_0, 0), 168 BPF_MOV64_IMM(BPF_REG_0, 0), 174 BPF_MOV64_IMM(BPF_REG_0, 0), 184 BPF_MOV64_IMM(BPF_REG_0, 1), 187 BPF_MOV64_IMM(BPF_REG_0, 2), [all …]
|
D | value_ptr_arith.c | 4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 1, 3), 11 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 1, 2), 14 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 16 BPF_ALU64_REG(BPF_ADD, BPF_REG_1, BPF_REG_0), 17 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0), 18 BPF_MOV64_IMM(BPF_REG_0, 1), 31 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 36 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 1, 3), 38 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 1, 2), [all …]
|
D | ctx_skb.c | 4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 6 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1), 7 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 9 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1), 10 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 12 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1), 13 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 15 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), 16 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 18 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 0), [all …]
|
D | sock.c | 5 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 0), 6 BPF_MOV64_IMM(BPF_REG_0, 0), 18 BPF_MOV64_IMM(BPF_REG_0, 0), 20 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, family)), 21 BPF_MOV64_IMM(BPF_REG_0, 0), 32 BPF_MOV64_IMM(BPF_REG_0, 0), 34 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, type)), 35 BPF_MOV64_IMM(BPF_REG_0, 0), 47 BPF_MOV64_IMM(BPF_REG_0, 0), 59 BPF_MOV64_IMM(BPF_REG_0, 0), [all …]
|
D | direct_packet_access.c | 4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 8 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_2), 22 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 23 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 24 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1), 25 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0), 26 BPF_MOV64_IMM(BPF_REG_0, 0), 35 BPF_MOV64_IMM(BPF_REG_0, 1), 43 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_3, 7), 60 BPF_MOV64_IMM(BPF_REG_0, 0), [all …]
|
D | bounds.c | 9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9), 10 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0), 12 BPF_LDX_MEM(BPF_B, BPF_REG_3, BPF_REG_0, 1), 16 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 17 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0), 19 BPF_MOV64_IMM(BPF_REG_0, 0), 34 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 8), 35 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0), 37 BPF_LDX_MEM(BPF_B, BPF_REG_3, BPF_REG_0, 1), 40 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), [all …]
|
D | ref_tracking.c | 5 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), /* leak reference */ 16 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), /* leak reference */ 29 BPF_STX_MEM(BPF_DW, BPF_REG_4, BPF_REG_0, 0), 30 BPF_MOV64_IMM(BPF_REG_0, 0), 43 BPF_STX_MEM(BPF_DW, BPF_REG_4, BPF_REG_0, 0), 44 BPF_MOV64_IMM(BPF_REG_0, 0), 56 BPF_MOV64_IMM(BPF_REG_0, 0), /* leak reference */ 67 BPF_MOV64_IMM(BPF_REG_0, 0), /* leak reference */ 78 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 79 BPF_MOV64_IMM(BPF_REG_0, 0), [all …]
|
D | bounds_deduction.c | 4 BPF_MOV64_IMM(BPF_REG_0, 1), 5 BPF_JMP_IMM(BPF_JSGE, BPF_REG_0, 1, 0), 6 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_1), 15 BPF_MOV64_IMM(BPF_REG_0, 1), 16 BPF_JMP_IMM(BPF_JSGE, BPF_REG_0, 1, 1), 18 BPF_JMP_IMM(BPF_JSLE, BPF_REG_0, 1, 1), 20 BPF_ALU64_REG(BPF_SUB, BPF_REG_1, BPF_REG_0), 29 BPF_MOV64_IMM(BPF_REG_0, 0), 30 BPF_JMP_IMM(BPF_JSLE, BPF_REG_0, 0, 0), 31 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_1), [all …]
|
D | loops1.c | 4 BPF_MOV64_IMM(BPF_REG_0, 0), 5 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 1), 6 BPF_JMP_IMM(BPF_JLT, BPF_REG_0, 4, -2), 16 BPF_MOV64_IMM(BPF_REG_0, 0), 17 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 3), 18 BPF_JMP_IMM(BPF_JLT, BPF_REG_0, 20, -2), 28 BPF_JMP_IMM(BPF_JSLT, BPF_REG_0, 0, 2), 29 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 1), 30 BPF_JMP_IMM(BPF_JLT, BPF_REG_0, 4, -2), 41 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 1), [all …]
|
D | calls.c | 5 BPF_MOV64_IMM(BPF_REG_0, 1), 7 BPF_MOV64_IMM(BPF_REG_0, 2), 17 BPF_MOV64_IMM(BPF_REG_0, 1), 19 BPF_MOV64_IMM(BPF_REG_0, 2), 35 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0), 38 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0), 39 BPF_MOV64_IMM(BPF_REG_0, 1), 44 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 60 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0), 63 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0), [all …]
|
D | xadd.c | 4 BPF_MOV64_IMM(BPF_REG_0, 1), 5 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8), 6 BPF_STX_XADD(BPF_W, BPF_REG_10, BPF_REG_0, -7), 7 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_10, -8), 22 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1), 25 BPF_STX_XADD(BPF_W, BPF_REG_0, BPF_REG_1, 3), 26 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, 3), 43 BPF_MOV64_IMM(BPF_REG_0, 99), 45 BPF_MOV64_IMM(BPF_REG_0, 1), 48 BPF_STX_XADD(BPF_W, BPF_REG_2, BPF_REG_0, 1), [all …]
|
D | bounds_mix_sign_unsign.c | 9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 7), 15 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 16 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0), 17 BPF_MOV64_IMM(BPF_REG_0, 0), 33 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 7), 39 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 40 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0), 41 BPF_MOV64_IMM(BPF_REG_0, 0), 57 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9), 65 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_8), [all …]
|
D | lwt.c | 8 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 9 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 10 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1), 12 BPF_MOV64_IMM(BPF_REG_0, 0), 26 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 27 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), 28 BPF_JMP_REG(BPF_JGT, BPF_REG_0, BPF_REG_3, 1), 30 BPF_MOV64_IMM(BPF_REG_0, 0), 44 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 45 BPF_ALU64_IMM(BPF_ADD, BPF_REG_0, 8), [all …]
|
D | helper_value_access.c | 9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4), 10 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 28 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4), 29 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 47 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 48 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 66 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4), 67 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 86 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4), 87 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), [all …]
|
D | dead_code.c | 7 BPF_MOV64_IMM(BPF_REG_0, 7), 8 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 10, -4), 17 BPF_MOV64_IMM(BPF_REG_0, 7), 18 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 0, 1), 19 BPF_JMP_IMM(BPF_JGE, BPF_REG_0, 10, 0), 29 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 4), 30 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1), 32 BPF_MOV64_IMM(BPF_REG_0, 7), 34 BPF_MOV64_IMM(BPF_REG_0, 1), 43 BPF_MOV64_IMM(BPF_REG_0, 7), [all …]
|
D | runtime_jit.c | 7 BPF_MOV64_IMM(BPF_REG_0, 1), 20 BPF_MOV64_IMM(BPF_REG_0, 1), 33 BPF_MOV64_IMM(BPF_REG_0, 1), 46 BPF_MOV64_IMM(BPF_REG_0, 1), 56 BPF_MOV64_IMM(BPF_REG_0, 13), 57 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 59 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 61 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 13, 4), 68 BPF_MOV64_IMM(BPF_REG_0, 1), 78 BPF_MOV64_IMM(BPF_REG_0, 14), [all …]
|
D | ld_abs.c | 7 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1), 19 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 31 BPF_MOV64_REG(BPF_REG_0, BPF_REG_3), 43 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4), 55 BPF_MOV64_REG(BPF_REG_0, BPF_REG_5), 67 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 89 BPF_MOV64_IMM(BPF_REG_0, 42), 110 BPF_MOV32_IMM(BPF_REG_0, 256), 112 BPF_LD_IND(BPF_DW, BPF_REG_0, 0), 124 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0x806, 28), [all …]
|
D | spin_lock.c | 10 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1), 12 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), 13 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 18 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, 0), 20 BPF_MOV64_IMM(BPF_REG_0, 0), 38 BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, 1), 40 BPF_MOV64_REG(BPF_REG_6, BPF_REG_0), 41 BPF_MOV64_REG(BPF_REG_1, BPF_REG_0), 46 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 0), 48 BPF_MOV64_IMM(BPF_REG_0, 0), [all …]
|
D | basic_instr.c | 10 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1), 23 BPF_MOV32_IMM(BPF_REG_0, 2), 25 BPF_MOV32_IMM(BPF_REG_0, 1), 35 BPF_MOV64_IMM(BPF_REG_0, 1), 36 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 5), 45 BPF_LD_IMM64(BPF_REG_0, 0x1122334485667788), 46 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 7), 55 BPF_MOV64_IMM(BPF_REG_0, 1), 57 BPF_ALU32_REG(BPF_ARSH, BPF_REG_0, BPF_REG_1), 66 BPF_LD_IMM64(BPF_REG_0, 0xffff55667788), [all …]
|
D | helper_access_var_len.c | 6 BPF_MOV64_IMM(BPF_REG_0, 0), 7 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -64), 8 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -56), 9 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -48), 10 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -40), 11 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -32), 12 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -24), 13 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -16), 14 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8), 23 BPF_MOV64_IMM(BPF_REG_0, 0), [all …]
|
D | cgroup_storage.c | 7 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0), 8 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1), 9 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 1), 22 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0), 23 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1), 24 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 1), 38 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 1), 51 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 256), 53 BPF_MOV64_IMM(BPF_REG_0, 0), 67 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, -2), [all …]
|
D | array_access.c | 9 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1), 10 BPF_ST_MEM(BPF_DW, BPF_REG_0, 0, offsetof(struct test_val, foo)), 26 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 4), 29 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 30 BPF_ST_MEM(BPF_DW, BPF_REG_0, 0, offsetof(struct test_val, foo)), 47 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 5), 48 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0), 51 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_1), 52 BPF_ST_MEM(BPF_DW, BPF_REG_0, 0, offsetof(struct test_val, foo)), 69 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9), [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 50 BPF_MOV64_IMM(BPF_REG_0, 1), 61 BPF_MOV64_IMM(BPF_REG_0, 1), 72 BPF_MOV64_IMM(BPF_REG_0, 0), 89 BPF_MOV64_IMM(BPF_REG_0, 0), 93 BPF_MOV64_IMM(BPF_REG_0, 1), 110 BPF_MOV64_IMM(BPF_REG_0, 0), 114 BPF_MOV64_IMM(BPF_REG_0, 1), 136 BPF_MOV64_IMM(BPF_REG_0, 1), 137 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_7), 150 BPF_MOV64_IMM(BPF_REG_0, 0), [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt.c | 44 BPF_MOV64_IMM(BPF_REG_0, 1), 56 BPF_MOV64_IMM(BPF_REG_0, 1), 68 BPF_MOV64_IMM(BPF_REG_0, 1), 89 BPF_MOV64_IMM(BPF_REG_0, 0), 109 BPF_MOV64_IMM(BPF_REG_0, 0x80), 110 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0), 113 BPF_MOV64_IMM(BPF_REG_0, 1), 130 BPF_MOV64_IMM(BPF_REG_0, 0), 131 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 134 BPF_MOV64_IMM(BPF_REG_0, 1), [all …]
|