/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A 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 …]
|
H A 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), 163 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 1, 2), [all …]
|
H A 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),
|
H A 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),
|
H A 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),
|
H A 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), 102 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_1, 2), 122 BPF_JMP_IMM(BPF_JEQ, BPF_REG_0, 0, 2),
|
H A 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),
|
H A 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),
|
H A 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),
|
H A 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), \
|
H A 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),
|
H A 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), 873 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 3), 1167 BPF_JMP_IMM(BPF_JEQ, BPF_REG_1, 0, 2), [all …]
|
H A 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),
|
H A 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),
|
/openbmc/linux/samples/seccomp/ |
H A 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()
|
H A 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 …]
|
H A 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()
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 2278 case BPF_JEQ: in __bpf_match_jmp_cond() 4217 BPF_JMP_REG(BPF_JEQ, R0, R1, 1), 4223 BPF_JMP_REG(BPF_JEQ, R1, R2, 1), 4229 BPF_JMP_REG(BPF_JEQ, R2, R3, 1), 4235 BPF_JMP_REG(BPF_JEQ, R3, R4, 1), 4241 BPF_JMP_REG(BPF_JEQ, R5, R4, 1), 4248 BPF_JMP_REG(BPF_JEQ, R5, R6, 1), 4471 BPF_JMP_IMM(BPF_JEQ, R0, 1, 1), 5145 BPF_JMP_IMM(BPF_JEQ, R0, 0, 2), 5235 BPF_JMP_IMM(BPF_JEQ, R0, 0, 2), [all …]
|
/openbmc/linux/tools/bpf/ |
H A 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); }
|
/openbmc/linux/samples/bpf/ |
H A 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()
|
/openbmc/linux/arch/loongarch/net/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/seccomp/ |
H A 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_getpid, 0, 1), in kill_thread_or_group() 822 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_getpid, 0, 1), in kill_thread_or_group() 1669 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in FIXTURE_SETUP() 2557 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 0, 1), in FIXTURE_SETUP() 3019 BPF_JUMP(BPF_JMP|BPF_JEQ|BPF_K, __NR_read, 6, 0), in TEST() [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 45 #define BPF_JEQ 0x10 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 45 #define BPF_JEQ 0x10 macro
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 1066 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_build_body() 1067 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1068 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_build_body() 1069 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1091 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1097 case BPF_JMP32 | BPF_JEQ | BPF_X: in bpf_jit_build_body() 1129 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_build_body() 1135 case BPF_JMP32 | BPF_JEQ | BPF_K: in bpf_jit_build_body()
|