/kernel/linux/linux-5.10/samples/bpf/ |
H A D | bpf_insn.h | 12 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 20 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 30 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 38 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 161 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 171 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \ 181 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 191 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | bpf_insn.h | 12 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 20 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 30 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 38 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 177 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 187 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \ 197 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 207 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | disasm.c | 159 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) && in is_sdiv_smod() 165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx() 177 if (BPF_OP(insn->code) == BPF_END) { in print_bpf_insn() 182 } else if (BPF_OP(insn->code) == BPF_NEG) { in print_bpf_insn() 191 is_sdiv_smod(insn) ? bpf_alu_sign_string[BPF_OP(insn->code) >> 4] in print_bpf_insn() 192 : bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 200 is_sdiv_smod(insn) ? bpf_alu_sign_string[BPF_OP(insn->code) >> 4] in print_bpf_insn() 201 : bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 218 bpf_alu_string[BPF_OP(ins in print_bpf_insn() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | disasm.c | 159 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) && in is_sdiv_smod() 165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx() 177 if (BPF_OP(insn->code) == BPF_END) { in print_bpf_insn() 182 } else if (BPF_OP(insn->code) == BPF_NEG) { in print_bpf_insn() 191 is_sdiv_smod(insn) ? bpf_alu_sign_string[BPF_OP(insn->code) >> 4] in print_bpf_insn() 192 : bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 200 is_sdiv_smod(insn) ? bpf_alu_sign_string[BPF_OP(insn->code) >> 4] in print_bpf_insn() 201 : bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 218 bpf_alu_string[BPF_OP(ins in print_bpf_insn() [all...] |
/kernel/linux/linux-5.10/tools/include/linux/ |
H A D | filter.h | 36 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 44 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 62 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 196 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 206 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \ 216 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 226 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/kernel/linux/linux-6.6/tools/include/linux/ |
H A D | filter.h | 36 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 44 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 54 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 62 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 212 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 222 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \ 232 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 242 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | disasm.c | 125 if (BPF_OP(insn->code) == BPF_END) { in print_bpf_insn() 130 } else if (BPF_OP(insn->code) == BPF_NEG) { in print_bpf_insn() 139 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 146 bpf_alu_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 218 u8 opcode = BPF_OP(insn->code); in print_bpf_insn() 245 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn() 253 bpf_jmp_string[BPF_OP(insn->code) >> 4], in print_bpf_insn()
|
/kernel/linux/linux-6.6/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 160 switch (BPF_OP(op)) { in emit_alu_i64() 203 switch (BPF_OP(op)) { in emit_alu_r64() 677 if (!valid_alu_i(BPF_OP(code), imm)) { in build_insn() 679 emit_alu_r(ctx, dst, MIPS_R_T4, BPF_OP(code)); in build_insn() 680 } else if (rewrite_alu_i(BPF_OP(code), imm, &alu, &val)) { in build_insn() 699 if (!valid_alu_i(BPF_OP(code), imm)) { in build_insn() 702 emit_alu_r(ctx, dst, MIPS_R_T4, BPF_OP(code)); in build_insn() 703 } else if (rewrite_alu_i(BPF_OP(code), imm, &alu, &val)) { in build_insn() 717 emit_alu_r(ctx, dst, src, BPF_OP(code)); in build_insn() 736 emit_alu_r(ctx, dst, MIPS_R_T4, BPF_OP(cod in build_insn() [all...] |
H A D | bpf_jit_comp32.c | 270 switch (BPF_OP(op)) { in emit_alu_r64() 324 switch (BPF_OP(op)) { in emit_shift_i64() 376 switch (BPF_OP(op)) { in emit_shift_r64() 546 switch (BPF_OP(op)) { in emit_divmod_r64() 1519 if (!valid_alu_i(BPF_OP(code), imm)) { in build_insn() 1521 emit_alu_r(ctx, lo(dst), MIPS_R_T6, BPF_OP(code)); in build_insn() 1522 } else if (rewrite_alu_i(BPF_OP(code), imm, &alu, &val)) { in build_insn() 1549 emit_alu_r(ctx, lo(dst), lo(src), BPF_OP(code)); in build_insn() 1567 emit_alu_i64(ctx, dst, imm, BPF_OP(code)); in build_insn() 1578 emit_alu_i64(ctx, dst, imm, BPF_OP(cod in build_insn() [all...] |
/kernel/linux/linux-6.6/arch/parisc/net/ |
H A D | bpf_jit_comp32.c | 340 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_millicode() 341 if (BPF_OP(opcode) == BPF_DIV) in emit_call_millicode() 379 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_libgcc_ll() 381 if (BPF_OP(opcode) == BPF_DIV) in emit_call_libgcc_ll() 1134 BPF_OP(code), insn->src_reg, insn->dst_reg); in bpf_jit_emit_insn() 1166 emit_alu_r64(dst, src, ctx, BPF_OP(code)); in bpf_jit_emit_insn() 1171 emit_alu_r64(dst, tmp2, ctx, BPF_OP(code)); in bpf_jit_emit_insn() 1181 emit_alu_i64(dst, imm, ctx, BPF_OP(cod in bpf_jit_emit_insn() [all...] |
H A D | bpf_jit_comp64.c | 533 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_libgcc_ll() 534 if (BPF_OP(opcode) == BPF_DIV) in emit_call_libgcc_ll() 890 if (is_signed_bpf_cond(BPF_OP(code))) in bpf_jit_emit_insn() 899 if (BPF_OP(code) == BPF_JSET) { in bpf_jit_emit_insn() 906 emit_branch(BPF_OP(code), rd, rs, paoff, ctx); in bpf_jit_emit_insn() 940 if (is_signed_bpf_cond(BPF_OP(code))) in bpf_jit_emit_insn() 949 emit_branch(BPF_OP(code), rd, rs, paoff, ctx); in bpf_jit_emit_insn()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | filter.h | 95 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 103 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 113 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 121 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 291 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 301 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 311 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \ 321 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | filter.h | 98 .code = BPF_ALU64 | BPF_OP(OP) | BPF_X, \ 109 .code = BPF_ALU | BPF_OP(OP) | BPF_X, \ 122 .code = BPF_ALU64 | BPF_OP(OP) | BPF_K, \ 130 .code = BPF_ALU | BPF_OP(OP) | BPF_K, \ 317 .code = BPF_JMP | BPF_OP(OP) | BPF_X, \ 327 .code = BPF_JMP | BPF_OP(OP) | BPF_K, \ 337 .code = BPF_JMP32 | BPF_OP(OP) | BPF_X, \ 347 .code = BPF_JMP32 | BPF_OP(OP) | BPF_K, \
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
H A D | bpf_common.h | 31 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | bpf_common.h | 31 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | bpf_common.h | 31 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | bpf_common.h | 41 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/linux-6.6/tools/include/uapi/linux/ |
H A D | bpf_common.h | 31 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | bpf_common.h | 41 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | bpf_common.h | 28 #define BPF_OP(code) ((code) & 0xf0) macro
|
/kernel/linux/linux-5.10/arch/mips/net/ |
H A D | ebpf_jit.c | 431 switch (BPF_OP(insn->code)) { in gen_imm_insn() 463 BPF_OP(insn->code) != BPF_MOV && in gen_imm_insn() 468 BPF_OP(insn->code) != BPF_LSH && in gen_imm_insn() 469 BPF_OP(insn->code) != BPF_MOV && in gen_imm_insn() 475 switch (BPF_OP(insn->code) | BPF_CLASS(insn->code)) { in gen_imm_insn() 529 if (BPF_OP(insn->code) == BPF_MOV) { in gen_imm_insn() 533 switch (BPF_OP(insn->code) | BPF_CLASS(insn->code)) { in gen_imm_insn() 667 int bpf_op = BPF_OP(insn->code); in build_one_insn() 1577 switch (BPF_OP(insn->code)) { in reg_val_propagate_range() 1614 switch (BPF_OP(ins in reg_val_propagate_range() [all...] |
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | cfg.c | 179 __u8 opcode = BPF_OP(cur->code); in func_partition_bb_head() 305 BPF_OP(insn->code) == BPF_EXIT) { in func_add_bb_edges() 310 } else if (BPF_OP(insn->code) == BPF_JA) { in func_add_bb_edges()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | cfg.c | 179 __u8 opcode = BPF_OP(cur->code); in func_partition_bb_head() 305 BPF_OP(insn->code) == BPF_EXIT) { in func_add_bb_edges() 310 } else if (BPF_OP(insn->code) == BPF_JA) { in func_add_bb_edges()
|
/kernel/linux/linux-5.10/arch/x86/net/ |
H A D | bpf_jit_comp32.c | 540 switch (BPF_OP(op)) { in emit_ia32_alu_r() 1559 emit_ia32_alu_r64(is64, BPF_OP(code), dst, in do_jit() 1564 emit_ia32_alu_i64(is64, BPF_OP(code), dst, in do_jit() 1594 emit_ia32_shift_r(BPF_OP(code), dst_lo, src_lo, in do_jit() 1601 emit_ia32_shift_r(BPF_OP(code), dst_lo, in do_jit() 1617 emit_ia32_div_mod_r(BPF_OP(code), dst_lo, in do_jit() 1624 emit_ia32_div_mod_r(BPF_OP(code), dst_lo, in do_jit() 1645 emit_ia32_shift_r(BPF_OP(code), dst_lo, IA32_ECX, dstk, in do_jit() 1682 emit_ia32_alu_i(is64, false, BPF_OP(code), in do_jit() 2169 emit_cond_jmp: jmp_cond = get_cond_jmp_opcode(BPF_OP(cod in do_jit() [all...] |
/kernel/linux/linux-6.6/arch/x86/net/ |
H A D | bpf_jit_comp32.c | 540 switch (BPF_OP(op)) { in emit_ia32_alu_r() 1740 emit_ia32_alu_r64(is64, BPF_OP(code), dst, in do_jit() 1745 emit_ia32_alu_i64(is64, BPF_OP(code), dst, in do_jit() 1775 emit_ia32_shift_r(BPF_OP(code), dst_lo, src_lo, in do_jit() 1782 emit_ia32_shift_r(BPF_OP(code), dst_lo, in do_jit() 1798 emit_ia32_div_mod_r(BPF_OP(code), dst_lo, in do_jit() 1805 emit_ia32_div_mod_r(BPF_OP(code), dst_lo, in do_jit() 1826 emit_ia32_shift_r(BPF_OP(code), dst_lo, IA32_ECX, dstk, in do_jit() 1863 emit_ia32_alu_i(is64, false, BPF_OP(code), in do_jit() 2362 emit_cond_jmp: jmp_cond = get_cond_jmp_opcode(BPF_OP(cod in do_jit() [all...] |