/Linux-v6.6/tools/testing/selftests/bpf/verifier/ |
D | jump.c | 6 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1), 8 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 1), 10 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 2, 1), 12 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 1), 14 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 4, 1), 16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 5, 1), 29 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 2), 32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 2), 35 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 2, 2), 38 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2), [all …]
|
D | jit.c | 8 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x3fc, 1), 12 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0xff, 1), 15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x7f, 1), 31 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x3fc, 1), 36 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0xff, 1), 39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1), 54 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1), 67 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1), 81 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_2, 2), 86 BPF_JMP_REG(BPF_JEQ, BPF_REG_3, BPF_REG_2, 2), [all …]
|
D | atomic_and.c | 11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x010, 2), 16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x011, 1), 32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2), 37 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x010, 2), 41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 123, 2), 62 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2), 67 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 0x010, 2), 87 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x110, 2), 92 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x010, 2),
|
D | atomic_or.c | 11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x111, 2), 16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x011, 1), 32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2), 37 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x111, 2), 41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 123, 2), 62 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2), 67 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 0x111, 2), 94 BPF_JMP_REG(BPF_JEQ, BPF_REG_2, BPF_REG_1, 2),
|
D | atomic_xor.c | 11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0x101, 2), 16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x011, 1), 32 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2), 37 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0x101, 2), 41 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 123, 2), 62 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 0x110, 2), 67 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 0x101, 2),
|
D | atomic_cmpxchg.c | 11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 3, 2), 16 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 3, 2), 24 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 3, 2), 29 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 4, 2), 48 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_0, 3, 2), 53 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_0, 3, 2), 61 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_0, 3, 2), 66 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_0, 4, 2), 113 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_1, 2), 133 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 2),
|
D | atomic_xchg.c | 10 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2), 15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 4, 2), 33 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_1, 3, 2), 38 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_0, 4, 2),
|
D | basic_instr.c | 99 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 1), 113 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1), 127 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1), 141 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 1), 156 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1), 171 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1),
|
D | atomic_fetch_add.c | 11 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2), 17 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 4, 1), 33 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 3, 2), 39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 4, 1),
|
D | atomic_fetch.c | 15 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1), 39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1), 63 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1), 86 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1), 107 BPF_JMP_IMM(BPF_JEQ, src_reg, operand1, 2), \ 112 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, expect, 2), \
|
D | ld_imm64.c | 4 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1), 19 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1), 33 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1),
|
D | calls.c | 453 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 469 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 486 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 506 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 523 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 3), 542 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, -3), 669 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 1), 673 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 1), 786 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, -3), 863 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, -3), [all …]
|
D | precise.c | 130 BPF_JMP_IMM(BPF_JEQ, BPF_REG_8, 1, 1), 134 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 0), 206 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1),
|
D | jmp32.c | 99 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_7, -1, 1), 123 BPF_JMP32_REG(BPF_JEQ, BPF_REG_7, BPF_REG_8, 1), 149 BPF_JMP32_IMM(BPF_JEQ, BPF_REG_7, 0x10, 1), 801 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 9), 828 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 10), 856 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 10),
|
/Linux-v6.6/samples/seccomp/ |
D | bpf-direct.c | 117 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_rt_sigreturn, 0, 1), in install_filter() 120 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_sigreturn, 0, 1), in install_filter() 123 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit_group, 0, 1), in install_filter() 125 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_exit, 0, 1), in install_filter() 127 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_read, 1, 0), in install_filter() 128 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, __NR_write, 3, 2), in install_filter() 132 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDIN_FILENO, 4, 0), in install_filter() 137 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDOUT_FILENO, 1, 0), in install_filter() 139 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, STDERR_FILENO, 1, 2), in install_filter()
|
D | bpf-helper.h | 56 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (nr), 0, 1), \ 150 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (value), 0, 1), \ 154 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (value), 1, 0), \ 183 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \ 186 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (lo), 0, 2), \ 193 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 3), \ 196 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (lo), 2, 0), \ 215 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \ 227 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \ 239 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \ [all …]
|
D | dropper.c | 33 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, arch, 0, 3), in install_filter() 36 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1), in install_filter()
|
/Linux-v6.6/lib/ |
D | test_bpf.c | 521 return __bpf_fill_max_jmp(self, BPF_JEQ, 1); in bpf_fill_max_jmp_taken() 527 return __bpf_fill_max_jmp(self, BPF_JEQ, 0); in bpf_fill_max_jmp_not_taken() 654 insn[i++] = BPF_JMP_REG(BPF_JEQ, R1, R4, 1); in __bpf_fill_alu_shift() 765 insn[i++] = BPF_JMP_REG(BPF_JEQ, R1, R2, 1); in __bpf_fill_alu_shift_same_reg() 930 insns[i++] = BPF_JMP_REG(BPF_JEQ, R1, R3, 1); in __bpf_emit_alu64_imm() 951 insns[i++] = BPF_JMP_REG(BPF_JEQ, R1, R3, 1); in __bpf_emit_alu32_imm() 973 insns[i++] = BPF_JMP_REG(BPF_JEQ, R1, R3, 1); in __bpf_emit_alu64_reg() 995 insns[i++] = BPF_JMP_REG(BPF_JEQ, R1, R3, 1); in __bpf_emit_alu32_reg() 1255 insns[i++] = BPF_JMP32_IMM(BPF_JEQ, rd, res, 2); in __bpf_fill_alu_imm_regs() 1260 insns[i++] = BPF_JMP32_IMM(BPF_JEQ, rd, res >> 32, 2); in __bpf_fill_alu_imm_regs() [all …]
|
/Linux-v6.6/tools/bpf/ |
D | bpf_exp.y | 219 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); } 223 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 227 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 230 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); } 233 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 236 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 242 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_K, 0, 0, $3); } 245 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); } 248 bpf_set_curr_instr(BPF_JMP | BPF_JEQ | BPF_X, 0, 0, 0); }
|
/Linux-v6.6/samples/bpf/ |
D | test_cgrp2_attach.c | 55 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 2), in prog_load() 66 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 2), in prog_load()
|
/Linux-v6.6/arch/loongarch/net/ |
D | bpf_jit.h | 178 case BPF_JEQ: in invert_jmp_cond() 182 return BPF_JEQ; in invert_jmp_cond() 207 case BPF_JEQ: in cond_jmp_offset()
|
/Linux-v6.6/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 669 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in TEST_SIGNAL() 697 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_times, 1, 0), in TEST_SIGNAL() 701 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, in TEST_SIGNAL() 737 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, sysno, 1, 0), in TEST_SIGNAL() 741 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, 0x0C0FFEE, 0, 1), in TEST_SIGNAL() 810 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_prctl, 0, 1), in kill_thread_or_group() 822 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_prctl, 0, 1), in kill_thread_or_group() 948 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), \ 1055 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in FIXTURE_SETUP() 1174 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 1, 0), in FIXTURE_SETUP() [all …]
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | bpf_common.h | 45 #define BPF_JEQ 0x10 macro
|
/Linux-v6.6/include/uapi/linux/ |
D | bpf_common.h | 45 #define BPF_JEQ 0x10 macro
|
/Linux-v6.6/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 1054 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_build_body() 1055 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1056 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_build_body() 1057 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1079 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1085 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1117 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_build_body() 1123 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_build_body()
|