/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | calls.c | 281 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2), 293 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2), 308 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 8), 333 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 8), 357 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 8), 390 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 0), 416 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 3, 0, 0), 454 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 2), 470 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 4), 1031 BPF_RAW_INSN(BPF_JMP|BPF_CALL, 0, 1, 0, 1), [all …]
|
H A D | basic_call.c | 4 BPF_RAW_INSN(BPF_JMP | BPF_CALL | BPF_X, 0, 0, 0, 0), 13 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 1, 0), 22 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, 1234567), 31 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid), 32 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid), 43 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid), 45 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_cgroup_classid),
|
H A D | map_kptr.c | 11 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), 31 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), 51 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), 82 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), 97 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg), 241 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_this_cpu_ptr), 284 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg), 308 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_this_cpu_ptr), 332 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg), 339 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_kptr_xchg), [all …]
|
H A D | bpf_loop_inline.c | 24 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, BPF_PSEUDO_CALL, \ 40 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_jiffies64), 50 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop), 70 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_jiffies64), 72 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_jiffies64), 81 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop), 117 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop), 155 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop), 189 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop), 196 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_loop), [all …]
|
H A D | dead_code.c | 30 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 85 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1), 101 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1), 103 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1), 117 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 3), 123 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, -5), 137 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1), 151 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 1),
|
H A D | precise.c | 120 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 124 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 129 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 1, 0, 4), 171 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 208 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_ringbuf_reserve), 213 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_ringbuf_submit), 243 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem),
|
H A D | jset.c | 107 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 122 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 136 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32), 151 BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_get_prandom_u32),
|
/openbmc/linux/samples/seccomp/ |
H A D | bpf-helper.h | 56 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (nr), 0, 1), \ 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), \ 213 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, (hi), 4, 0), \ 215 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \ 218 BPF_JUMP(BPF_JMP+BPF_JGE+BPF_K, (lo), 0, 2), \ 225 BPF_JUMP(BPF_JMP+BPF_JGT+BPF_K, (hi), 4, 0), \ 227 BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (hi), 0, 5), \ [all …]
|
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 | 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/tools/bpf/ |
H A D | bpf_exp.y | 212 bpf_set_curr_instr(BPF_JMP | BPF_JA, 0, 0, 0); } 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); } 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); } 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); } 257 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_X, 0, 0, 0); } 260 bpf_set_curr_instr(BPF_JMP | BPF_JGE | BPF_X, 0, 0, 0); } 269 bpf_set_curr_instr(BPF_JMP | BPF_JGT | BPF_X, 0, 0, 0); } [all …]
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 982 case BPF_JMP | BPF_EXIT: in bpf_jit_build_body() 999 case BPF_JMP | BPF_CALL: in bpf_jit_build_body() 1022 case BPF_JMP | BPF_JA: in bpf_jit_build_body() 1026 case BPF_JMP | BPF_JGT | BPF_K: in bpf_jit_build_body() 1027 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_build_body() 1036 case BPF_JMP | BPF_JLT | BPF_K: in bpf_jit_build_body() 1037 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_build_body() 1046 case BPF_JMP | BPF_JGE | BPF_K: in bpf_jit_build_body() 1047 case BPF_JMP | BPF_JGE | BPF_X: in bpf_jit_build_body() 1056 case BPF_JMP | BPF_JLE | BPF_K: in bpf_jit_build_body() [all …]
|
H A D | bpf_jit_comp32.c | 1038 case BPF_JMP | BPF_EXIT: in bpf_jit_build_body() 1055 case BPF_JMP | BPF_CALL: in bpf_jit_build_body() 1079 case BPF_JMP | BPF_JA: in bpf_jit_build_body() 1083 case BPF_JMP | BPF_JGT | BPF_K: in bpf_jit_build_body() 1084 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_build_body() 1093 case BPF_JMP | BPF_JLT | BPF_K: in bpf_jit_build_body() 1094 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_build_body() 1103 case BPF_JMP | BPF_JGE | BPF_K: in bpf_jit_build_body() 1104 case BPF_JMP | BPF_JGE | BPF_X: in bpf_jit_build_body() 1113 case BPF_JMP | BPF_JLE | BPF_K: in bpf_jit_build_body() [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 413 case BPF_JMP | BPF_JA: in init_regs() 414 case BPF_JMP | BPF_CALL: in init_regs() 415 case BPF_JMP | BPF_EXIT: in init_regs() 416 case BPF_JMP | BPF_TAIL_CALL: in init_regs() 857 case BPF_JMP | BPF_JA: in bpf_jit_emit_insn() 865 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_emit_insn() 867 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_emit_insn() 869 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_emit_insn() 968 case BPF_JMP | BPF_CALL: in bpf_jit_emit_insn() 983 case BPF_JMP | BPF_TAIL_CALL: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 976 case BPF_JMP | BPF_JEQ | BPF_X: in build_insn() 977 case BPF_JMP | BPF_JNE | BPF_X: in build_insn() 979 case BPF_JMP | BPF_JGT | BPF_X: in build_insn() 980 case BPF_JMP | BPF_JGE | BPF_X: in build_insn() 981 case BPF_JMP | BPF_JLT | BPF_X: in build_insn() 982 case BPF_JMP | BPF_JLE | BPF_X: in build_insn() 1005 case BPF_JMP | BPF_JEQ | BPF_K: in build_insn() 1030 case BPF_JMP | BPF_JA: in build_insn() 1037 case BPF_JMP | BPF_TAIL_CALL: in build_insn() 1042 case BPF_JMP | BPF_CALL: in build_insn() [all …]
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_32.c | 632 case BPF_JMP | BPF_JA: in bpf_jit_compile() 645 COND_SEL(BPF_JMP | BPF_JEQ | BPF_K, BE, BNE); in bpf_jit_compile() 649 COND_SEL(BPF_JMP | BPF_JEQ | BPF_X, BE, BNE); in bpf_jit_compile() 663 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_compile() 664 case BPF_JMP | BPF_JGE | BPF_X: in bpf_jit_compile() 665 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_compile() 669 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_compile() 673 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_compile() 674 case BPF_JMP | BPF_JGT | BPF_K: in bpf_jit_compile() 675 case BPF_JMP | BPF_JGE | BPF_K: in bpf_jit_compile() [all …]
|
H A D | bpf_jit_comp_64.c | 1170 case BPF_JMP | BPF_JA: in build_insn() 1175 case BPF_JMP | BPF_JEQ | BPF_X: in build_insn() 1176 case BPF_JMP | BPF_JGT | BPF_X: in build_insn() 1177 case BPF_JMP | BPF_JLT | BPF_X: in build_insn() 1178 case BPF_JMP | BPF_JGE | BPF_X: in build_insn() 1179 case BPF_JMP | BPF_JLE | BPF_X: in build_insn() 1180 case BPF_JMP | BPF_JNE | BPF_X: in build_insn() 1194 case BPF_JMP | BPF_JEQ | BPF_K: in build_insn() 1214 case BPF_JMP | BPF_CALL: in build_insn() 1228 case BPF_JMP | BPF_TAIL_CALL: in build_insn() [all …]
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 732 case BPF_JMP | BPF_JEQ | BPF_X: in build_insn() 733 case BPF_JMP | BPF_JNE | BPF_X: in build_insn() 734 case BPF_JMP | BPF_JGT | BPF_X: in build_insn() 735 case BPF_JMP | BPF_JGE | BPF_X: in build_insn() 736 case BPF_JMP | BPF_JLT | BPF_X: in build_insn() 737 case BPF_JMP | BPF_JLE | BPF_X: in build_insn() 767 case BPF_JMP | BPF_JEQ | BPF_K: in build_insn() 829 case BPF_JMP | BPF_JA: in build_insn() 836 case BPF_JMP | BPF_CALL: in build_insn() 849 case BPF_JMP | BPF_TAIL_CALL: in build_insn() [all …]
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 393 case BPF_JMP | BPF_JA: in init_regs() 394 case BPF_JMP | BPF_CALL: in init_regs() 395 case BPF_JMP | BPF_EXIT: in init_regs() 396 case BPF_JMP | BPF_TAIL_CALL: in init_regs() 1385 case BPF_JMP | BPF_JA: in bpf_jit_emit_insn() 1397 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_emit_insn() 1399 case BPF_JMP | BPF_JGT | BPF_X: in bpf_jit_emit_insn() 1401 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_emit_insn() 1508 case BPF_JMP | BPF_CALL: in bpf_jit_emit_insn() 1528 case BPF_JMP | BPF_TAIL_CALL: in bpf_jit_emit_insn() [all …]
|
H A D | bpf_jit_comp32.c | 1131 case BPF_JMP | BPF_JA: in bpf_jit_emit_insn() 1136 case BPF_JMP | BPF_CALL: in bpf_jit_emit_insn() 1150 case BPF_JMP | BPF_TAIL_CALL: in bpf_jit_emit_insn() 1155 case BPF_JMP | BPF_JEQ | BPF_X: in bpf_jit_emit_insn() 1156 case BPF_JMP | BPF_JEQ | BPF_K: in bpf_jit_emit_insn() 1160 case BPF_JMP | BPF_JNE | BPF_X: in bpf_jit_emit_insn() 1161 case BPF_JMP | BPF_JNE | BPF_K: in bpf_jit_emit_insn() 1165 case BPF_JMP | BPF_JLE | BPF_X: in bpf_jit_emit_insn() 1166 case BPF_JMP | BPF_JLE | BPF_K: in bpf_jit_emit_insn() 1170 case BPF_JMP | BPF_JLT | BPF_X: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 212 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 232 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 252 .code = BPF_JMP | BPF_JA, \ 262 .code = BPF_JMP | BPF_CALL, \ 325 .code = BPF_JMP | BPF_CALL, \ 335 .code = BPF_JMP | BPF_EXIT, \
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 1668 case BPF_JMP | BPF_CALL: { in do_jit() 1687 case BPF_JMP | BPF_TAIL_CALL: in do_jit() 1703 case BPF_JMP | BPF_JEQ | BPF_X: in do_jit() 1704 case BPF_JMP | BPF_JNE | BPF_X: in do_jit() 1705 case BPF_JMP | BPF_JGT | BPF_X: in do_jit() 1706 case BPF_JMP | BPF_JLT | BPF_X: in do_jit() 1707 case BPF_JMP | BPF_JGE | BPF_X: in do_jit() 1708 case BPF_JMP | BPF_JLE | BPF_X: in do_jit() 1745 case BPF_JMP | BPF_JEQ | BPF_K: in do_jit() 1862 case BPF_JMP | BPF_JA: in do_jit() [all …]
|
H A D | bpf_jit_comp32.c | 2083 case BPF_JMP | BPF_CALL: in do_jit() 2140 case BPF_JMP | BPF_TAIL_CALL: in do_jit() 2145 case BPF_JMP | BPF_JEQ | BPF_X: in do_jit() 2146 case BPF_JMP | BPF_JNE | BPF_X: in do_jit() 2147 case BPF_JMP | BPF_JGT | BPF_X: in do_jit() 2148 case BPF_JMP | BPF_JLT | BPF_X: in do_jit() 2149 case BPF_JMP | BPF_JGE | BPF_X: in do_jit() 2150 case BPF_JMP | BPF_JLE | BPF_X: in do_jit() 2316 case BPF_JMP | BPF_JEQ | BPF_K: in do_jit() 2436 case BPF_JMP | BPF_JA: in do_jit() [all …]
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 1406 case BPF_JMP | BPF_CALL: in bpf_jit_insn() 1456 case BPF_JMP | BPF_TAIL_CALL: { in bpf_jit_insn() 1546 case BPF_JMP | BPF_EXIT: /* return b0 */ in bpf_jit_insn() 1577 case BPF_JMP | BPF_JA: /* if (true) */ in bpf_jit_insn() 1652 case BPF_JMP | BPF_JGT | BPF_X: /* (dst > src) */ in bpf_jit_insn() 1656 case BPF_JMP | BPF_JLT | BPF_X: /* (dst < src) */ in bpf_jit_insn() 1660 case BPF_JMP | BPF_JGE | BPF_X: /* (dst >= src) */ in bpf_jit_insn() 1664 case BPF_JMP | BPF_JLE | BPF_X: /* (dst <= src) */ in bpf_jit_insn() 1668 case BPF_JMP | BPF_JNE | BPF_X: /* (dst != src) */ in bpf_jit_insn() 1672 case BPF_JMP | BPF_JEQ | BPF_X: /* (dst == src) */ in bpf_jit_insn() [all …]
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 775 BPF_CLASS(code) == BPF_JMP; in build_insn() 996 case BPF_JMP | BPF_JA: in build_insn() 1006 case BPF_JMP | BPF_JEQ | BPF_X: in build_insn() 1007 case BPF_JMP | BPF_JGT | BPF_X: in build_insn() 1008 case BPF_JMP | BPF_JLT | BPF_X: in build_insn() 1009 case BPF_JMP | BPF_JGE | BPF_X: in build_insn() 1010 case BPF_JMP | BPF_JLE | BPF_X: in build_insn() 1112 case BPF_JMP | BPF_CALL: in build_insn() 1127 case BPF_JMP | BPF_TAIL_CALL: in build_insn() 1132 case BPF_JMP | BPF_EXIT: in build_insn() [all …]
|