/Linux-v6.6/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 450 if (BPF_CLASS(code) == BPF_ALU) in bpf_jit_build_body() 461 if (BPF_CLASS(code) == BPF_ALU) in bpf_jit_build_body() 501 switch (BPF_CLASS(code)) { in bpf_jit_build_body() 548 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body() 565 if (imm < 0 && BPF_CLASS(code) == BPF_ALU64) { in bpf_jit_build_body() 650 if (BPF_CLASS(code) == BPF_ALU && !fp->aux->verifier_zext) in bpf_jit_build_body() 760 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 768 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 776 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 784 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() [all …]
|
D | bpf_jit_comp32.c | 312 if (i && (BPF_CLASS(code) == BPF_ALU64 || BPF_CLASS(code) == BPF_ALU) && in bpf_jit_build_body() 313 (BPF_CLASS(prevcode) == BPF_ALU64 || BPF_CLASS(prevcode) == BPF_ALU) && in bpf_jit_build_body() 1292 if (BPF_CLASS(code) == BPF_ALU && !fp->aux->verifier_zext && in bpf_jit_build_body()
|
/Linux-v6.6/arch/x86/net/ |
D | bpf_jit_comp.c | 1079 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1088 BPF_CLASS(insn->code) == BPF_ALU64, in do_jit() 1092 BPF_CLASS(insn->code) == BPF_ALU64, in do_jit() 1100 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1115 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1154 emit_mov_imm32(&prog, BPF_CLASS(insn->code) == BPF_ALU64, in do_jit() 1173 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64; in do_jit() 1208 if (BPF_CLASS(insn->code) == BPF_ALU) in do_jit() 1237 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1253 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() [all …]
|
D | bpf_jit_comp32.c | 1674 const bool is64 = BPF_CLASS(insn->code) == BPF_ALU64; in do_jit() 2161 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit() 2232 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit() 2276 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit() 2332 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.h | 353 return BPF_CLASS(meta->insn.code); in mbpf_class() 415 return BPF_CLASS(code) == BPF_LD && in is_mbpf_classic_load() 423 return BPF_CLASS(code) == BPF_ST && BPF_MODE(code) == BPF_MEM; in is_mbpf_classic_store()
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | bpf_common.h | 6 #define BPF_CLASS(code) ((code) & 0x07) macro
|
/Linux-v6.6/include/uapi/linux/ |
D | bpf_common.h | 6 #define BPF_CLASS(code) ((code) & 0x07) macro
|
/Linux-v6.6/tools/bpf/bpftool/ |
D | cfg.c | 162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32; in is_jmp_insn()
|
/Linux-v6.6/arch/s390/net/ |
D | bpf_jit_comp.c | 790 if (BPF_CLASS(insn->code) == BPF_LDX && in bpf_jit_insn() 1619 if (BPF_CLASS(insn->code) == BPF_JMP32) { in bpf_jit_insn() 1675 bool is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn() 1683 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn() 1704 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn() 1722 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn()
|
/Linux-v6.6/arch/parisc/net/ |
D | bpf_jit_comp64.c | 510 if (BPF_CLASS(opcode) == BPF_ALU) { in emit_call_libgcc_ll() 595 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn() 596 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn() 1077 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
|
D | bpf_jit_comp32.c | 1119 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn() 1120 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn() 1133 BPF_CLASS(code), code, (code & BPF_ALU64) ? 1:0, BPF_SIZE(code), in bpf_jit_emit_insn() 1442 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
|
/Linux-v6.6/arch/arm64/net/ |
D | bpf_jit_comp.c | 774 const bool is64 = BPF_CLASS(code) == BPF_ALU64 || in build_insn() 775 BPF_CLASS(code) == BPF_JMP; in build_insn() 866 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_BE) in build_insn() 869 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_LE) in build_insn() 998 if (BPF_CLASS(code) == BPF_JMP) in build_insn() 1380 const u8 class = BPF_CLASS(insn->code); in find_fpb_offset()
|
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | disasm.c | 174 u8 class = BPF_CLASS(insn->code); in print_bpf_insn()
|
/Linux-v6.6/kernel/bpf/ |
D | disasm.c | 174 u8 class = BPF_CLASS(insn->code); in print_bpf_insn()
|
D | verifier.c | 586 return BPF_CLASS(insn->code) == BPF_STX && in is_cmpxchg_insn() 2852 if (BPF_CLASS(code) == BPF_LD && in check_subprogs() 2855 if (BPF_CLASS(code) != BPF_JMP && BPF_CLASS(code) != BPF_JMP32) in check_subprogs() 2994 class = BPF_CLASS(code); in is_reg64() 3077 switch (BPF_CLASS(insn->code)) { in insn_def_regno() 3407 u8 class = BPF_CLASS(insn->code); in backtrack_insn() 4285 return BPF_CLASS(insn->code) == BPF_ST && BPF_MODE(insn->code) == BPF_MEM; in is_bpf_st_mem() 5097 int class = BPF_CLASS(insn->code); in check_map_kptr_access() 12055 if (BPF_CLASS(insn->code) != BPF_ALU64) { in adjust_ptr_min_max_vals() 12835 u64 insn_bitness = (BPF_CLASS(insn->code) == BPF_ALU64) ? 64 : 32; in adjust_scalar_min_max_vals() [all …]
|
D | cgroup.c | 2246 BPF_CLASS(si->code) | BPF_MEM | BPF_SIZEOF(u32), in sysctl_convert_ctx_access() 2407 BPF_MEM | BPF_CLASS(si->code)), \ 2460 *insn++ = BPF_RAW_INSN(BPF_CLASS(si->code) | BPF_MEM | in cg_sockopt_convert_ctx_access()
|
/Linux-v6.6/Documentation/bpf/ |
D | classic_vs_extended.rst | 289 If BPF_CLASS(code) == BPF_ALU or BPF_ALU64 [ in eBPF ], BPF_OP(code) is one of:: 306 If BPF_CLASS(code) == BPF_JMP or BPF_JMP32 [ in eBPF ], BPF_OP(code) is one of::
|
/Linux-v6.6/arch/sparc/net/ |
D | bpf_jit_comp_64.c | 1120 div = (BPF_CLASS(code) == BPF_ALU64) ? UDIVX : DIV; in build_insn() 1124 if (BPF_CLASS(code) != BPF_ALU64) in build_insn() 1164 if (BPF_CLASS(code) == BPF_ALU && in build_insn()
|
/Linux-v6.6/tools/bpf/ |
D | bpf_dbg.c | 431 if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) in bpf_disasm() 518 if (BPF_CLASS(f[i].code) == BPF_LD && in bpf_runnable()
|
/Linux-v6.6/arch/riscv/net/ |
D | bpf_jit_comp32.c | 957 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn() 958 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn() 1265 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
|
D | bpf_jit_comp64.c | 1072 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn() 1073 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn() 1387 if (BPF_CLASS(code) == BPF_JMP) in bpf_jit_emit_insn()
|
/Linux-v6.6/arch/loongarch/net/ |
D | bpf_jit.c | 465 const bool is32 = BPF_CLASS(insn->code) == BPF_ALU || BPF_CLASS(insn->code) == BPF_JMP32; in build_insn()
|
/Linux-v6.6/tools/lib/bpf/ |
D | relo_core.c | 1031 class = BPF_CLASS(insn->code); in bpf_core_patch_insn() 1109 insn->code = BPF_MODE(insn->code) | insn_bpf_sz | BPF_CLASS(insn->code); in bpf_core_patch_insn()
|
/Linux-v6.6/net/core/ |
D | filter.c | 659 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter() 663 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter() 817 *insn = BPF_STX_MEM(BPF_W, BPF_REG_FP, BPF_CLASS(fp->code) == in bpf_convert_filter() 832 *insn = BPF_LDX_MEM(BPF_W, BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter() 840 *insn = BPF_MOV32_IMM(BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter() 857 *insn = BPF_LDX_MEM(BPF_W, BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter() 9360 *insn++ = BPF_RAW_INSN(BPF_CLASS(si->code) | BPF_DW | BPF_MEM, in bpf_convert_tstamp_write() 9366 BPF_RAW_INSN(BPF_CLASS((si)->code) | (size) | BPF_MEM, \ 9454 if (BPF_CLASS(si->code) == BPF_ST && si->imm >= NO_QUEUE_MAPPING) { in bpf_convert_ctx_access() 9459 if (BPF_CLASS(si->code) == BPF_STX) in bpf_convert_ctx_access() [all …]
|
/Linux-v6.6/arch/arm/net/ |
D | bpf_jit_32.c | 1358 const bool is64 = BPF_CLASS(code) == BPF_ALU64; in build_insn() 1724 BPF_CLASS(code) == BPF_JMP); in build_insn()
|