/linux-6.1.9/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 | 54 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 67 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 80 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 93 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 202 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 204 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 206 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 208 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0x2001, 2), 232 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 234 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, [all …]
|
D | test_sock_addr.c | 767 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load() 769 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, AF_INET, 8), in sendmsg4_rw_asm_prog_load() 772 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, in sendmsg4_rw_asm_prog_load() 774 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, SOCK_DGRAM, 6), in sendmsg4_rw_asm_prog_load() 777 BPF_MOV32_IMM(BPF_REG_7, src4_rw_ip.s_addr), in sendmsg4_rw_asm_prog_load() 778 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load() 782 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_addr.s_addr), in sendmsg4_rw_asm_prog_load() 783 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load() 787 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_port), in sendmsg4_rw_asm_prog_load() 788 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_7, in sendmsg4_rw_asm_prog_load() [all …]
|
/linux-6.1.9/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 | ringbuf.c | 17 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_10, -8), 19 BPF_ST_MEM(BPF_DW, BPF_REG_7, 0, 0), 21 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), 49 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_10, -8), 51 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 0xcafe), 53 BPF_ST_MEM(BPF_DW, BPF_REG_7, 0, 0), 55 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), 75 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 86 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 | 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 | 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 */ 561 BPF_MOV64_IMM(BPF_REG_7, 1), 562 BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000), 563 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 576 BPF_MOV64_IMM(BPF_REG_7, 1), 577 BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000), 578 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 591 BPF_MOV64_REG(BPF_REG_7, BPF_REG_1), 599 BPF_MOV64_REG(BPF_REG_1, BPF_REG_7), [all …]
|
D | calls.c | 631 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, 635 BPF_JMP_REG(BPF_JGT, BPF_REG_8, BPF_REG_7, 2), 686 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 689 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), 690 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 774 BPF_MOV64_REG(BPF_REG_7, BPF_REG_0), 777 BPF_ALU64_REG(BPF_ADD, BPF_REG_7, BPF_REG_0), 778 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7), 929 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 932 BPF_MOV64_REG(BPF_REG_6, BPF_REG_7), [all …]
|
D | search_pruning.c | 138 BPF_MOV64_REG(BPF_REG_7, BPF_REG_1), 174 BPF_MOV32_IMM(BPF_REG_7, 0xffffffff), 186 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, -8), 211 BPF_ALU64_REG(BPF_MOV, BPF_REG_7, BPF_REG_0), 216 BPF_STX_MEM(BPF_B, BPF_REG_10, BPF_REG_7, -9), 217 BPF_LDX_MEM(BPF_B, BPF_REG_7, BPF_REG_10, -9),
|
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 | 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 | 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 | bpf_loop_inline.c | 73 BPF_ALU64_REG(BPF_MOV, BPF_REG_7, BPF_REG_0), 76 BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 0, 0), 219 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -32), 224 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -32), 233 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -48),
|
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 | 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),
|
/linux-6.1.9/tools/lib/bpf/ |
D | gen_loader.c | 152 emit(gen, BPF_MOV64_REG(BPF_REG_0, BPF_REG_7)); in bpf_gen__init() 274 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_sys_bpf() 290 emit(gen, BPF_JMP_IMM(BPF_JSLT, BPF_REG_7, 0, off)); in emit_check_err() 340 emit_debug(gen, BPF_REG_7, -1, fmt, args); in debug_ret() 445 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf() 510 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create() 520 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_7, 0)); in bpf_gen__map_create() 553 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_find_attach_target() 623 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_0)); in emit_bpf_find_by_name_kind() 643 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_4)); in emit_bpf_kallsyms_lookup_name() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | align.c | 478 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 484 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 2), 485 BPF_ALU64_REG(BPF_SUB, BPF_REG_6, BPF_REG_7), 532 BPF_MOV64_REG(BPF_REG_7, BPF_REG_6), 542 BPF_ALU64_IMM(BPF_LSH, BPF_REG_7, 2), 543 BPF_ALU64_IMM(BPF_ADD, BPF_REG_7, 76), 545 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),
|