Home
last modified time | relevance | path

Searched refs:BPF_JSET (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Djset.c9 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),
80 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
94 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
108 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
123 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
138 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 3, 1),
155 BPF_JMP_IMM(BPF_JSET, BPF_REG_1, 0xf0, 3),
[all …]
H A Djmp32.c7 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, -2, 1),
11 BPF_JMP32_IMM(BPF_JSET, BPF_REG_7, 1, 1),
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),
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),
H A Ddead_code.c31 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 4),
32 BPF_JMP_IMM(BPF_JSET, BPF_REG_0, 1, 1),
/openbmc/linux/tools/bpf/
H A Dbpf_exp.y327 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_K, 0, 0, $3); }
331 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_X, 0, 0, 0); }
335 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_X, 0, 0, 0); }
338 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_K, 0, 0, $3); }
341 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_X, 0, 0, 0); }
344 bpf_set_curr_instr(BPF_JMP | BPF_JSET | BPF_X, 0, 0, 0); }
/openbmc/linux/samples/seccomp/
H A Dbpf-helper.h158 BPF_JUMP(BPF_JMP+BPF_JSET+BPF_K, (value), 0, 1), \
203 BPF_JUMP(BPF_JMP+BPF_JSET+BPF_K, (hi), 3, 0), \
206 BPF_JUMP(BPF_JMP+BPF_JSET+BPF_K, (lo), 0, 2), \
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h48 #define BPF_JSET 0x40 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h48 #define BPF_JSET 0x40 macro
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c1078 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_build_body()
1079 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_build_body()
1080 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_build_body()
1081 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_build_body()
1119 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_build_body()
1120 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_build_body()
1192 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_build_body()
1193 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_build_body()
H A Dbpf_jit_comp32.c1135 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_build_body()
1136 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_build_body()
1137 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_build_body()
1138 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_build_body()
1180 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_build_body()
1185 case BPF_JMP32 | BPF_JSET | BPF_X: { in bpf_jit_build_body()
1257 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_build_body()
1271 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_build_body()
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp.c512 case BPF_JSET: in valid_jmp_i()
539 case BPF_JSET: return JIT_JNSET; in invert_jmp()
615 case BPF_JSET: in setup_jmp_i()
654 case BPF_JSET: in setup_jmp_r()
705 case BPF_JSET: in emit_jmp_i()
773 case BPF_JSET: in emit_jmp_r()
H A Dbpf_jit_comp32.c1126 case BPF_JSET: in emit_jmp_i64()
1136 if (op == BPF_JSET) in emit_jmp_i64()
1209 case BPF_JSET: in emit_jmp_r64()
1214 if (op == BPF_JSET) in emit_jmp_r64()
1755 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
1784 case BPF_JMP32 | BPF_JSET | BPF_K: in build_insn()
1819 case BPF_JMP | BPF_JSET | BPF_X: in build_insn()
1848 case BPF_JMP | BPF_JSET | BPF_K: in build_insn()
H A Dbpf_jit_comp64.c911 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
942 case BPF_JMP32 | BPF_JSET | BPF_K: in build_insn()
978 case BPF_JMP | BPF_JSET | BPF_X: in build_insn()
1007 case BPF_JMP | BPF_JSET | BPF_K: in build_insn()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.h181 case BPF_JSET: in invert_jmp_cond()
212 case BPF_JSET: in cond_jmp_offset()
H A Dbpf_jit.c808 case BPF_JMP | BPF_JSET | BPF_X: in build_insn()
809 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
818 case BPF_JMP | BPF_JSET | BPF_K: in build_insn()
819 case BPF_JMP32 | BPF_JSET | BPF_K: in build_insn()
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_32.c646 COND_SEL(BPF_JMP | BPF_JSET | BPF_K, BNE, BE); in bpf_jit_compile()
650 COND_SEL(BPF_JMP | BPF_JSET | BPF_X, BNE, BE); in bpf_jit_compile()
669 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_compile()
683 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_compile()
H A Dbpf_jit_comp_64.c668 BPF_OP(code) == BPF_JSET) in emit_compare_and_branch()
691 if (BPF_OP(code) == BPF_JSET) { in emit_compare_and_branch()
718 case BPF_JSET: in emit_compare_and_branch()
1185 case BPF_JMP | BPF_JSET | BPF_X: { in build_insn()
1204 case BPF_JMP | BPF_JSET | BPF_K: { in build_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c255 if (op == BPF_JSET) { in emit_branch()
885 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
886 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
899 if (BPF_OP(code) == BPF_JSET) { in bpf_jit_emit_insn()
951 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
952 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp32.c769 case BPF_JSET: in emit_branch_r64()
795 if (op == BPF_JSET) { in emit_bcc()
1374 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
1375 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
1376 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
1377 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c634 case BPF_JSET: in emit_branch_r64()
658 if (op == BPF_JSET) { in emit_bcc()
707 case BPF_JSET: in emit_bcc()
1205 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
1206 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
1207 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
1208 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1417 case BPF_JMP | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
1418 case BPF_JMP32 | BPF_JSET | BPF_X: in bpf_jit_emit_insn()
1432 if (BPF_OP(code) == BPF_JSET) { in bpf_jit_emit_insn()
1486 case BPF_JMP | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
1487 case BPF_JMP32 | BPF_JSET | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c1113 case BPF_JSET: in emit_ar_r()
1659 case BPF_JMP | BPF_JSET | BPF_X: in build_insn()
1670 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
1696 case BPF_JMP | BPF_JSET | BPF_K: in build_insn()
1707 case BPF_JMP32 | BPF_JSET | BPF_K: in build_insn()
1730 case BPF_JSET: in build_insn()
/openbmc/linux/lib/
H A Dtest_bpf.c2276 case BPF_JSET: in __bpf_match_jmp_cond()
2421 return __bpf_fill_jmp_imm(self, BPF_JSET); in bpf_fill_jmp_jset_imm()
2533 return __bpf_fill_jmp_reg(self, BPF_JSET); in bpf_fill_jmp_jset_reg()
9057 BPF_JMP32_IMM(BPF_JSET, R0, 2, 1),
9058 BPF_JMP32_IMM(BPF_JSET, R0, 3, 1),
9083 BPF_JMP32_IMM(BPF_JSET, R0, -1, 1),
9097 BPF_JMP32_REG(BPF_JSET, R0, R1, 2),
9853 BPF_JMP_IMM(BPF_JSET, R1, 2, 1),
10252 BPF_JMP_REG(BPF_JSET, R1, R2, 1),
10267 BPF_JMP_REG(BPF_JSET, R1, R2, 1),
[all …]
/openbmc/linux/kernel/
H A Dseccomp.c340 case BPF_JMP | BPF_JSET | BPF_K: in seccomp_check_filter()
341 case BPF_JMP | BPF_JSET | BPF_X: in seccomp_check_filter()
767 case BPF_JMP | BPF_JSET | BPF_K: in seccomp_is_const_allow()
778 case BPF_JSET: in seccomp_is_const_allow()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp32.c1431 case BPF_JSET: in get_cond_jmp_opcode()
2230 case BPF_JMP | BPF_JSET | BPF_X: in do_jit()
2231 case BPF_JMP32 | BPF_JSET | BPF_X: { in do_jit()
2274 case BPF_JMP | BPF_JSET | BPF_K: in do_jit()
2275 case BPF_JMP32 | BPF_JSET | BPF_K: { in do_jit()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1046 case BPF_JSET: in build_insn()
1067 case BPF_JMP | BPF_JSET | BPF_X: in build_insn()
1068 case BPF_JMP32 | BPF_JSET | BPF_X: in build_insn()
1101 case BPF_JMP | BPF_JSET | BPF_K: in build_insn()
1102 case BPF_JMP32 | BPF_JSET | BPF_K: in build_insn()

12