/tools/testing/selftests/bpf/verifier/ |
D | int_ptr.c | 5 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10), 6 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 8 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0), 10 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), 19 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 20 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7), 36 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10), 37 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -8), 39 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0), 41 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), [all …]
|
D | jmp32.c | 5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 7 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, -2, 1), 11 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, 1, 1), 36 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 38 BPF_JMP32_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1), 43 BPF_JMP32_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1), 68 BPF_LD_IMM64(BPF_REG_7, 0x8000000000000000), 70 BPF_JMP_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1), 72 BPF_JMP32_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1), 84 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, 0x10, 1), [all …]
|
D | regalloc.c | 11 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 16 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), 17 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_2), 18 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_7, 0), 36 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 41 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), 42 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_2), 43 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_7, 0), 61 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 67 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), [all …]
|
D | ld_abs.c | 65 BPF_MOV64_IMM(BPF_REG_7, 0), 67 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 79 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 81 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), 85 BPF_MOV64_REG(BPF_REG_6, BPF_REG_7), 129 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -64), 130 BPF_LD_IND(BPF_W, BPF_REG_7, 14), 134 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -56), 136 BPF_ALU32_REG(BPF_SUB, BPF_REG_0, BPF_REG_7), 142 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -56), [all …]
|
D | value.c | 40 BPF_MOV64_REG(BPF_REG_7, BPF_REG_8), 41 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 3), 42 BPF_ST_MEM(BPF_DW, BPF_REG_7, 0, 22), 43 BPF_ST_MEM(BPF_DW, BPF_REG_7, 4, 23), 44 BPF_ST_MEM(BPF_DW, BPF_REG_7, -4, 24), 65 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0), 66 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 2), 68 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_8, 0), 69 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_8, 2), 71 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0), [all …]
|
D | bpf_get_stack.c | 11 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 14 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), 24 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), 31 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), 50 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1, 8), // ctx->task 59 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0, 2), 63 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7),
|
D | helper_packet_access.c | 212 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 217 BPF_JMP_REG(BPF_JGT, BPF_REG_3, BPF_REG_7, 4), 234 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 238 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 3), 254 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 259 BPF_JMP_REG(BPF_JGT, BPF_REG_1, BPF_REG_7, 6), 277 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 282 BPF_JMP_REG(BPF_JGT, BPF_REG_1, BPF_REG_7, 6), 300 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 305 BPF_JMP_REG(BPF_JGT, BPF_REG_1, BPF_REG_7, 6), [all …]
|
D | jset.c | 5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 9 BPF_JMP_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1), 14 BPF_JMP_REG(BPF_JSET, BPF_REG_7, BPF_REG_8, 1), 19 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, -1, 1), 23 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, 0x80000000, 1), 62 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0), 64 BPF_JMP_IMM(BPF_JSET, BPF_REG_7, 0x80000000, 1),
|
D | ref_tracking.c | 78 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 80 BPF_MOV64_IMM(BPF_REG_7, 0), /* leak reference */ 422 BPF_MOV64_IMM(BPF_REG_7, 1), 423 BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000), 424 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 437 BPF_MOV64_IMM(BPF_REG_7, 1), 438 BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000), 439 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 452 BPF_MOV64_REG(BPF_REG_7, BPF_REG_1), 460 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), [all …]
|
D | ld_ind.c | 65 BPF_MOV64_IMM(BPF_REG_7, 1), 66 BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000), 67 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
|
D | xadd.c | 63 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10), 68 BPF_JMP_REG(BPF_JNE, BPF_REG_7, BPF_REG_10, 2), 83 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10), 88 BPF_JMP_REG(BPF_JNE, BPF_REG_7, BPF_REG_10, 2),
|
D | raw_tp_writable.c | 25 BPF_MOV64_IMM(BPF_REG_7, 4242), 26 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_7, 0),
|
D | calls.c | 377 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 381 BPF_JMP_REG(BPF_JGT, BPF_REG_8, BPF_REG_7, 2), 432 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 435 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), 436 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 520 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 523 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), 524 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 675 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 678 BPF_MOV64_REG(BPF_REG_6, BPF_REG_7), [all …]
|
D | spill_fill.c | 47 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_10, -8), 49 BPF_ST_MEM(BPF_DW, BPF_REG_7, 0, 0), 51 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7),
|
D | cgroup_skb.c | 16 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 45 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 66 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 78 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_7, 113 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1,
|
D | stack_ptr.c | 306 BPF_MOV64_REG(BPF_REG_7, BPF_REG_10), 307 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -10), 308 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, -10), 309 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), 312 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), 341 BPF_MOV64_IMM(BPF_REG_7, -1),
|
D | value_or_null.c | 89 BPF_MOV64_REG(BPF_REG_7, BPF_REG_2), 93 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7), 113 BPF_MOV64_REG(BPF_REG_7, BPF_REG_2), 118 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
|
D | search_pruning.c | 140 BPF_ALU64_REG(BPF_MOV, BPF_REG_7, BPF_REG_0), 145 BPF_STX_MEM(BPF_B, BPF_REG_10, BPF_REG_7, -9), 146 BPF_LDX_MEM(BPF_B, BPF_REG_7, BPF_REG_10, -9),
|
D | bounds_mix_sign_unsign.c | 339 BPF_MOV64_IMM(BPF_REG_7, 1), 340 BPF_JMP_IMM(BPF_JSGT, BPF_REG_7, 0, 2), 343 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_1), 344 BPF_JMP_IMM(BPF_JSGT, BPF_REG_7, 4, 2), 345 BPF_ALU64_REG(BPF_ADD, BPF_REG_0, BPF_REG_7),
|
/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 84 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 86 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2), 105 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 107 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2), 128 BPF_LDX_MEM(BPF_H, BPF_REG_7, BPF_REG_1, 131 BPF_LDX_MEM(BPF_H, BPF_REG_7, BPF_REG_1, 134 BPF_ALU64_IMM(BPF_AND, BPF_REG_7, 1), 137 BPF_ALU64_REG(BPF_SUB, BPF_REG_0, BPF_REG_7), 165 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 167 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 3, 2), [all …]
|
D | test_sock.c | 52 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 69 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 86 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 103 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 234 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 236 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 238 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 240 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x2001, 2), 264 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 266 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, [all …]
|
D | test_sock_addr.c | 758 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load() 760 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, AF_INET, 8), in sendmsg4_rw_asm_prog_load() 763 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load() 765 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, SOCK_DGRAM, 6), in sendmsg4_rw_asm_prog_load() 768 BPF_MOV32_IMM(BPF_REG_7, src4_rw_ip.s_addr), in sendmsg4_rw_asm_prog_load() 769 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load() 773 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_addr.s_addr), in sendmsg4_rw_asm_prog_load() 774 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load() 778 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_port), in sendmsg4_rw_asm_prog_load() 779 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load() [all …]
|
/tools/lib/bpf/ |
D | gen_loader.c | 132 emit(gen, BPF_MOV64_REG(BPF_REG_0, BPF_REG_7)); in bpf_gen__init() 215 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_sys_bpf() 231 emit(gen, BPF_JMP_IMM(BPF_JSLT, BPF_REG_7, 0, off)); in emit_check_err() 281 emit_debug(gen, BPF_REG_7, -1, fmt, args); in debug_ret() 380 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf() 459 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create() 465 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create() 500 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_find_attach_target() 540 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_relo() 548 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, 0)); in emit_relo() [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | align.c | 488 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 494 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 2), 495 BPF_ALU64_REG(BPF_SUB, BPF_REG_6, BPF_REG_7), 542 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 552 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 2), 553 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 76), 555 BPF_ALU64_REG(BPF_ADD, BPF_REG_5, BPF_REG_7),
|
D | sockopt.c | 355 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1, 359 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 1), 663 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_1, 667 BPF_JMP_REG(BPF_JGT, BPF_REG_6, BPF_REG_7, 1), 763 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 764 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 1), 771 BPF_JMP_REG(BPF_JGT, BPF_REG_7, BPF_REG_8, 4), 809 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 810 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 1), 817 BPF_JMP_REG(BPF_JGT, BPF_REG_7, BPF_REG_8, 4),
|