Home
last modified time | relevance | path

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

/linux/arch/powerpc/net/
A Dbpf_jit_comp64.c380 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 Dbpf_jit_comp32.c1109 if (BPF_CLASS(code) == BPF_ALU && !fp->aux->verifier_zext && in bpf_jit_build_body()
/linux/arch/x86/net/
A Dbpf_jit_comp.c927 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 Dbpf_jit_comp32.c1674 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 Dmain.h353 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 Djit.c3944 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 Dbpf_common.h6 #define BPF_CLASS(code) ((code) & 0x07) macro
/linux/include/uapi/linux/
A Dbpf_common.h6 #define BPF_CLASS(code) ((code) & 0x07) macro
/linux/arch/s390/net/
A Dbpf_jit_comp.c708 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 Dcfg.c162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32; in is_jmp_insn()
/linux/tools/perf/util/
A Dbpf-prologue.c335 u8 class = BPF_CLASS(insn->code); in prologue_relocate()
/linux/kernel/bpf/
A Dverifier.c537 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 Ddisasm.c136 u8 class = BPF_CLASS(insn->code); in print_bpf_insn()
A Dcore.c401 if ((BPF_CLASS(code) != BPF_JMP && in bpf_adj_branches()
402 BPF_CLASS(code) != BPF_JMP32) || in bpf_adj_branches()
A Dsyscall.c3560 if (BPF_CLASS(code) == BPF_LDX && BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_insn_prepare_dump()
/linux/tools/lib/bpf/
A Drelo_core.c926 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 Dlibbpf.c640 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 Dbpf_jit_comp_64.c1120 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 Dbpf_jit_comp.c440 const bool is64 = BPF_CLASS(code) == BPF_ALU64 || in build_insn()
441 BPF_CLASS(code) == BPF_JMP; in build_insn()
/linux/tools/bpf/
A Dbpf_dbg.c431 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 Dbpf_jit_comp32.c959 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 Dbpf_jit_comp64.c527 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 Dbpf_jit_32.c1373 const bool is64 = BPF_CLASS(code) == BPF_ALU64; in build_insn()
1739 BPF_CLASS(code) == BPF_JMP); in build_insn()
/linux/net/core/
A Dfilter.c656 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 Dfilter.rst918 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::

Completed in 157 milliseconds