Home
last modified time | relevance | path

Searched refs:BPF_MODE (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c205 if (BPF_MODE(insn->code) == BPF_MEM) in print_bpf_insn()
211 else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
220 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
231 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
239 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
250 if (BPF_MODE(insn->code) == BPF_MEM) { in print_bpf_insn()
262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) { in print_bpf_insn()
268 BPF_MODE(insn->code) == BPF_MEM ? in print_bpf_insn()
273 if (BPF_MODE(insn->code) == BPF_ABS) { in print_bpf_insn()
278 } else if (BPF_MODE(insn->code) == BPF_IND) { in print_bpf_insn()
[all …]
/openbmc/linux/kernel/bpf/
H A Ddisasm.c205 if (BPF_MODE(insn->code) == BPF_MEM) in print_bpf_insn()
211 else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
220 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
231 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
239 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn()
250 if (BPF_MODE(insn->code) == BPF_MEM) { in print_bpf_insn()
262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) { in print_bpf_insn()
268 BPF_MODE(insn->code) == BPF_MEM ? in print_bpf_insn()
273 if (BPF_MODE(insn->code) == BPF_ABS) { in print_bpf_insn()
278 } else if (BPF_MODE(insn->code) == BPF_IND) { in print_bpf_insn()
[all …]
H A Dverifier.c598 BPF_MODE(insn->code) == BPF_ATOMIC && in is_cmpxchg_insn()
3078 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND)) in check_subprogs()
3273 u8 mode = BPF_MODE(code); in is_reg64()
3660 u8 mode = BPF_MODE(insn->code); in backtrack_insn()
5363 if (BPF_MODE(insn->code) != BPF_MEM) { in check_map_kptr_access()
14850 u8 mode = BPF_MODE(insn->code); in check_ld_abs()
17299 u8 mode = BPF_MODE(insn->code); in do_check()
17604 ((BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) || in resolve_pseudo_ldimm64()
18198 BPF_MODE(code) == BPF_IMM) in opt_subreg_zext_lo32_rnd_hi32()
18367 if (BPF_MODE(insn->code) == BPF_MEM) in convert_ctx_accesses()
[all …]
H A Dsyscall.c4320 if (BPF_CLASS(code) == BPF_LDX && BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_insn_prepare_dump()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h368 return BPF_MODE(meta->insn.code); in mbpf_mode()
416 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND); in is_mbpf_classic_load()
423 return BPF_CLASS(code) == BPF_ST && BPF_MODE(code) == BPF_MEM; in is_mbpf_classic_store()
H A Djit.c3975 if (BPF_MODE(insn.code) != BPF_ABS && in nfp_bpf_opt_ld_mask()
3976 BPF_MODE(insn.code) != BPF_IND) in nfp_bpf_opt_ld_mask()
4010 if (BPF_MODE(insn.code) != BPF_ABS && in nfp_bpf_opt_ld_shift()
4011 BPF_MODE(insn.code) != BPF_IND) in nfp_bpf_opt_ld_shift()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h22 #define BPF_MODE(code) ((code) & 0xe0) macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h22 #define BPF_MODE(code) ((code) & 0xe0) macro
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1508 if (BPF_MODE(insn->code) == BPF_PROBE_MEM || in do_jit()
1509 BPF_MODE(insn->code) == BPF_PROBE_MEMSX) { in do_jit()
1557 if (BPF_MODE(insn->code) == BPF_PROBE_MEMSX || in do_jit()
1558 BPF_MODE(insn->code) == BPF_MEMSX) in do_jit()
1562 if (BPF_MODE(insn->code) == BPF_PROBE_MEM || in do_jit()
1563 BPF_MODE(insn->code) == BPF_PROBE_MEMSX) { in do_jit()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c718 if (BPF_MODE(insn->code) != BPF_PROBE_MEM && in add_exception_handler()
719 BPF_MODE(insn->code) != BPF_PROBE_MEMSX) in add_exception_handler()
1180 sign_extend = (BPF_MODE(insn->code) == BPF_MEMSX || in build_insn()
1181 BPF_MODE(insn->code) == BPF_PROBE_MEMSX); in build_insn()
1381 const u8 mode = BPF_MODE(insn->code); in find_fpb_offset()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c593 (BPF_MODE(insn->code) != BPF_PROBE_MEM && BPF_MODE(insn->code) != BPF_PROBE_MEMSX)) in add_exception_handler()
1583 sign_ext = BPF_MODE(insn->code) == BPF_MEMSX || in bpf_jit_emit_insn()
1584 BPF_MODE(insn->code) == BPF_PROBE_MEMSX; in bpf_jit_emit_insn()
H A Dbpf_jit_comp32.c1271 BPF_MODE(code))) in bpf_jit_emit_insn()
1284 BPF_MODE(code))) in bpf_jit_emit_insn()
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c912 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body()
954 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body()
H A Dbpf_jit_comp32.c945 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body()
992 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body()
/openbmc/linux/tools/lib/bpf/
H A Drelo_core.c1109 insn->code = BPF_MODE(insn->code) | insn_bpf_sz | BPF_CLASS(insn->code); in bpf_core_patch_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c1082 emit_store(rd, rs, off, ctx, BPF_SIZE(code), BPF_MODE(code)); in bpf_jit_emit_insn()
H A Dbpf_jit_comp32.c1448 BPF_MODE(code))) in bpf_jit_emit_insn()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c414 if (!ctx->image || !ctx->prog->aux->extable || BPF_MODE(insn->code) != BPF_PROBE_MEM) in add_exception_handler()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c791 BPF_MODE(insn->code) == BPF_PROBE_MEM) in bpf_jit_insn()
/openbmc/linux/net/core/
H A Dfilter.c478 bool indirect = BPF_MODE(fp->code) == BPF_IND; in convert_bpf_ld_abs()
662 BPF_MODE(fp->code) == BPF_ABS && in bpf_convert_filter()
8840 bool indirect = BPF_MODE(orig->code) == BPF_IND; in bpf_gen_ld_abs()