/linux/arch/powerpc/net/ |
A D | bpf_jit_comp64.c | 380 if (BPF_CLASS(code) == BPF_ALU) in bpf_jit_build_body() 391 if (BPF_CLASS(code) == BPF_ALU) in bpf_jit_build_body() 435 switch (BPF_CLASS(code)) { in bpf_jit_build_body() 703 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 711 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 719 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 727 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body() 928 if (BPF_CLASS(code) == BPF_JMP32) in bpf_jit_build_body() 942 if (BPF_CLASS(code) == BPF_JMP32) in bpf_jit_build_body() 949 if (BPF_CLASS(code) == BPF_JMP) { in bpf_jit_build_body() [all …]
|
A D | bpf_jit_comp32.c | 1109 if (BPF_CLASS(code) == BPF_ALU && !fp->aux->verifier_zext && in bpf_jit_build_body()
|
/linux/arch/x86/net/ |
A D | bpf_jit_comp.c | 927 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 935 BPF_CLASS(insn->code) == BPF_ALU64, in do_jit() 943 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 958 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1099 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1131 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit() 1458 BPF_CLASS(insn->code) == BPF_JMP); in do_jit() 1466 BPF_CLASS(insn->code) == BPF_JMP); in do_jit() 1474 BPF_CLASS(insn->code) == BPF_JMP); in do_jit() 1501 BPF_CLASS(insn->code) == BPF_JMP); in do_jit() [all …]
|
A 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/drivers/net/ethernet/netronome/nfp/bpf/ |
A 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()
|
A D | jit.c | 3944 insn.code = BPF_CLASS(insn.code) | BPF_SUB; in nfp_bpf_opt_neg_add_sub() 3946 insn.code = BPF_CLASS(insn.code) | BPF_ADD; in nfp_bpf_opt_neg_add_sub() 3973 if (BPF_CLASS(insn.code) != BPF_LD) in nfp_bpf_opt_ld_mask() 4008 if (BPF_CLASS(insn.code) != BPF_LD) in nfp_bpf_opt_ld_shift()
|
/linux/tools/include/uapi/linux/ |
A D | bpf_common.h | 6 #define BPF_CLASS(code) ((code) & 0x07) macro
|
/linux/include/uapi/linux/ |
A D | bpf_common.h | 6 #define BPF_CLASS(code) ((code) & 0x07) macro
|
/linux/arch/s390/net/ |
A D | bpf_jit_comp.c | 708 if (BPF_CLASS(insn->code) == BPF_LDX && in bpf_jit_insn() 1508 if (BPF_CLASS(insn->code) == BPF_JMP32) { in bpf_jit_insn() 1564 bool is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn() 1572 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn() 1593 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn() 1611 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn()
|
/linux/tools/bpf/bpftool/ |
A D | cfg.c | 162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32; in is_jmp_insn()
|
/linux/tools/perf/util/ |
A D | bpf-prologue.c | 335 u8 class = BPF_CLASS(insn->code); in prologue_relocate()
|
/linux/kernel/bpf/ |
A D | verifier.c | 537 return BPF_CLASS(insn->code) == BPF_STX && in is_cmpxchg_insn() 2002 if (BPF_CLASS(code) == BPF_LD && in check_subprogs() 2005 if (BPF_CLASS(code) != BPF_JMP && BPF_CLASS(code) != BPF_JMP32) in check_subprogs() 2095 class = BPF_CLASS(code); in is_reg64() 2176 switch (BPF_CLASS(insn->code)) { in insn_def_regno() 2329 u8 class = BPF_CLASS(insn->code); in backtrack_insn() 9049 if (BPF_CLASS(insn->code) == BPF_JMP32) in try_match_pkt_pointers() 11116 class = BPF_CLASS(insn->code); in do_check() 12210 if (BPF_CLASS(code) == BPF_JMP32) in insn_is_cond_jump() 12213 if (BPF_CLASS(code) != BPF_JMP) in insn_is_cond_jump() [all …]
|
A D | disasm.c | 136 u8 class = BPF_CLASS(insn->code); in print_bpf_insn()
|
A D | core.c | 401 if ((BPF_CLASS(code) != BPF_JMP && in bpf_adj_branches() 402 BPF_CLASS(code) != BPF_JMP32) || in bpf_adj_branches()
|
A D | syscall.c | 3560 if (BPF_CLASS(code) == BPF_LDX && BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_insn_prepare_dump()
|
/linux/tools/lib/bpf/ |
A D | relo_core.c | 926 class = BPF_CLASS(insn->code); in bpf_core_patch_insn() 1001 insn->code = BPF_MODE(insn->code) | insn_bpf_sz | BPF_CLASS(insn->code); in bpf_core_patch_insn()
|
A D | libbpf.c | 640 return BPF_CLASS(insn->code) == BPF_JMP && in insn_is_subprog_call() 6326 if (BPF_CLASS(insn->code) == BPF_JMP && in insn_is_helper_call()
|
/linux/arch/sparc/net/ |
A 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/arch/arm64/net/ |
A D | bpf_jit_comp.c | 440 const bool is64 = BPF_CLASS(code) == BPF_ALU64 || in build_insn() 441 BPF_CLASS(code) == BPF_JMP; in build_insn()
|
/linux/tools/bpf/ |
A 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/arch/riscv/net/ |
A D | bpf_jit_comp32.c | 959 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn() 960 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn() 1267 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
|
A D | bpf_jit_comp64.c | 527 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn() 528 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn()
|
/linux/arch/arm/net/ |
A D | bpf_jit_32.c | 1373 const bool is64 = BPF_CLASS(code) == BPF_ALU64; in build_insn() 1739 BPF_CLASS(code) == BPF_JMP); in build_insn()
|
/linux/net/core/ |
A D | filter.c | 656 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter() 660 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter() 814 *insn = BPF_STX_MEM(BPF_W, BPF_REG_FP, BPF_CLASS(fp->code) == in bpf_convert_filter() 829 *insn = BPF_LDX_MEM(BPF_W, BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter() 837 *insn = BPF_MOV32_IMM(BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter() 854 *insn = BPF_LDX_MEM(BPF_W, BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter()
|
/linux/Documentation/networking/ |
A D | filter.rst | 918 When BPF_CLASS(code) == BPF_ALU or BPF_JMP, 4th bit encodes source operand ... 937 If BPF_CLASS(code) == BPF_ALU or BPF_ALU64 [ in eBPF ], BPF_OP(code) is one of:: 954 If BPF_CLASS(code) == BPF_JMP or BPF_JMP32 [ in eBPF ], BPF_OP(code) is one of::
|