Home
last modified time | relevance | path

Searched refs:BPF_REG_7 (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_sysctl.c84 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 …]
Dtest_sock.c54 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 …]
Dtest_sock_addr.c767 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/
Dint_ptr.c5 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 …]
Djmp32.c5 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 …]
Dregalloc.c11 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 …]
Dld_abs.c65 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 …]
Dvalue.c40 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 …]
Dringbuf.c17 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),
Dhelper_packet_access.c212 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 …]
Dbpf_get_stack.c11 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),
Djset.c5 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),
Dref_tracking.c78 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 …]
Dcalls.c631 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 …]
Dsearch_pruning.c138 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),
Dxadd.c63 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),
Dld_ind.c65 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),
Dcgroup_skb.c16 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,
Dstack_ptr.c306 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),
Dbpf_loop_inline.c73 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),
Draw_tp_writable.c25 BPF_MOV64_IMM(BPF_REG_7, 4242),
26 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_7, 0),
Dvalue_or_null.c89 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/
Dgen_loader.c152 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/
Dalign.c478 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),
Dsockopt.c355 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),

123