Home
last modified time | relevance | path

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

12

/linux-6.1.9/kernel/bpf/
Ddisasm.c167 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
175 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
186 BPF_SIZE(insn->code) == BPF_DW ? "64" : "", in print_bpf_insn()
188 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
194 BPF_SIZE(insn->code) == BPF_DW ? "64" : "", in print_bpf_insn()
195 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
202 BPF_SIZE(insn->code) == BPF_DW ? "64" : "", in print_bpf_insn()
203 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
212 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
227 bpf_ldst_string[BPF_SIZE(insn->code) >> 3], in print_bpf_insn()
[all …]
Dcore.c1939 if (BPF_SIZE(insn->code) == BPF_W) \ in ___bpf_prog_run()
1947 if (BPF_SIZE(insn->code) == BPF_W) \ in ___bpf_prog_run()
1967 if (BPF_SIZE(insn->code) == BPF_W) in ___bpf_prog_run()
1977 if (BPF_SIZE(insn->code) == BPF_W) in ___bpf_prog_run()
Dcgroup.c2200 BPF_SIZE(si->code), si->dst_reg, si->src_reg, in sysctl_convert_ctx_access()
2238 read_size = bpf_size_to_bytes(BPF_SIZE(si->code)); in sysctl_convert_ctx_access()
2240 BPF_SIZE(si->code), si->dst_reg, si->dst_reg, in sysctl_convert_ctx_access()
Dverifier.c2369 return BPF_SIZE(code) == BPF_DW; in is_reg64()
2381 return BPF_SIZE(code) == BPF_DW; in is_reg64()
4998 if (BPF_SIZE(insn->code) != BPF_W && BPF_SIZE(insn->code) != BPF_DW) { in check_atomic()
5063 BPF_SIZE(insn->code), BPF_READ, -1, true); in check_atomic()
5066 BPF_SIZE(insn->code), BPF_READ, load_reg, in check_atomic()
5073 BPF_SIZE(insn->code), BPF_WRITE, -1, true); in check_atomic()
10353 if (BPF_SIZE(insn->code) != BPF_DW) { in check_ld_imm()
10482 BPF_SIZE(insn->code) == BPF_DW || in check_ld_abs()
12299 insn->off, BPF_SIZE(insn->code), in do_check()
12354 insn->off, BPF_SIZE(insn->code), in do_check()
[all …]
/linux-6.1.9/samples/bpf/
Dbpf_insn.h111 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
121 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
131 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
154 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
167 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
/linux-6.1.9/tools/include/linux/
Dfilter.h136 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
146 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
156 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
166 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
189 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
202 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
/linux-6.1.9/tools/include/uapi/linux/
Dbpf_common.h17 #define BPF_SIZE(code) ((code) & 0x18) macro
/linux-6.1.9/include/uapi/linux/
Dbpf_common.h17 #define BPF_SIZE(code) ((code) & 0x18) macro
/linux-6.1.9/include/linux/
Dfilter.h230 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
240 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
250 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
260 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
284 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
297 .code = BPF_ST | BPF_SIZE(SIZE) | BPF_MEM, \
461 const int __size = bpf_size_to_bytes(BPF_SIZE((insn)->code)); \
/linux-6.1.9/arch/mips/net/
Dbpf_jit_comp64.c825 emit_ldx(ctx, dst, src, off, BPF_SIZE(code)); in build_insn()
833 emit_stx(ctx, dst, MIPS_R_T4, off, BPF_SIZE(code)); in build_insn()
840 emit_stx(ctx, dst, src, off, BPF_SIZE(code)); in build_insn()
858 if (BPF_SIZE(code) == BPF_DW) { in build_insn()
876 if (BPF_SIZE(code) == BPF_DW) { in build_insn()
Dbpf_jit_comp32.c1659 emit_ldx(ctx, dst, lo(src), off, BPF_SIZE(code)); in build_insn()
1666 switch (BPF_SIZE(code)) { in build_insn()
1677 emit_stx(ctx, lo(dst), tmp, off, BPF_SIZE(code)); in build_insn()
1684 emit_stx(ctx, lo(dst), src, off, BPF_SIZE(code)); in build_insn()
/linux-6.1.9/arch/x86/net/
Dbpf_jit_comp.c1260 EMIT(imm32, bpf_size_to_x86_bytes(BPF_SIZE(insn->code))); in do_jit()
1268 emit_stx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn->off); in do_jit()
1330 emit_ldx(&prog, BPF_SIZE(insn->code), dst_reg, src_reg, insn->off); in do_jit()
1381 bool is64 = BPF_SIZE(insn->code) == BPF_DW; in do_jit()
1400 emit_ldx(&prog, BPF_SIZE(insn->code), in do_jit()
1414 BPF_SIZE(insn->code)); in do_jit()
1430 insn->off, BPF_SIZE(insn->code)); in do_jit()
Dbpf_jit_comp32.c1924 switch (BPF_SIZE(code)) { in do_jit()
1939 EMIT(imm32, bpf_size_to_x86_bytes(BPF_SIZE(code))); in do_jit()
1941 if (BPF_SIZE(code) == BPF_DW) { in do_jit()
1972 switch (BPF_SIZE(code)) { in do_jit()
1989 if (BPF_SIZE(code) == BPF_DW) { in do_jit()
2025 switch (BPF_SIZE(code)) { in do_jit()
2049 switch (BPF_SIZE(code)) { in do_jit()
/linux-6.1.9/arch/loongarch/net/
Dbpf_jit.c287 const bool isdw = BPF_SIZE(insn->code) == BPF_DW; in emit_atomic()
819 switch (BPF_SIZE(code)) { in build_insn()
864 switch (BPF_SIZE(code)) { in build_insn()
913 switch (BPF_SIZE(code)) { in build_insn()
/linux-6.1.9/arch/arm64/net/
Dbpf_jit_comp.c447 const bool isdw = BPF_SIZE(code) == BPF_DW; in emit_lse_atomic()
521 const bool isdw = BPF_SIZE(code) == BPF_DW; in emit_ll_sc_atomic()
1135 switch (BPF_SIZE(code)) { in build_insn()
1202 switch (BPF_SIZE(code)) { in build_insn()
1250 switch (BPF_SIZE(code)) { in build_insn()
/linux-6.1.9/arch/arm/net/
Dbpf_jit_32.c1607 emit_ldx_r(dst, rn, off, ctx, BPF_SIZE(code)); in build_insn()
1617 switch (BPF_SIZE(code)) { in build_insn()
1628 emit_str_r(dst_lo, tmp2, off, ctx, BPF_SIZE(code)); in build_insn()
1640 emit_str_r(dst_lo, rs, off, ctx, BPF_SIZE(code)); in build_insn()
/linux-6.1.9/net/core/
Dfilter.c473 int size = bpf_size_to_bytes(BPF_SIZE(fp->code)); in convert_bpf_ld_abs()
474 bool endian = BPF_SIZE(fp->code) == BPF_H || in convert_bpf_ld_abs()
475 BPF_SIZE(fp->code) == BPF_W; in convert_bpf_ld_abs()
494 *insn++ = BPF_LDX_MEM(BPF_SIZE(fp->code), BPF_REG_A, in convert_bpf_ld_abs()
499 *insn++ = BPF_LDX_MEM(BPF_SIZE(fp->code), BPF_REG_A, in convert_bpf_ld_abs()
518 switch (BPF_SIZE(fp->code)) { in convert_bpf_ld_abs()
8602 switch (BPF_SIZE(orig->code)) { in bpf_gen_ld_abs()
9347 *insn++ = BPF_STX_MEM(BPF_SIZE(si->code), si->dst_reg, in bpf_convert_ctx_access()
9350 *insn++ = BPF_LDX_MEM(BPF_SIZE(si->code), si->dst_reg, in bpf_convert_ctx_access()
9660 BPF_SIZE(si->code), si->dst_reg, si->src_reg, in bpf_sock_convert_ctx_access()
[all …]
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Djit.c834 else if (BPF_SIZE(meta->insn.code) != BPF_DW) in nfp_cpp_memcpy()
839 switch (BPF_SIZE(meta->insn.code)) { in nfp_cpp_memcpy()
861 if (BPF_SIZE(meta->insn.code) != BPF_DW) in nfp_cpp_memcpy()
3982 if (!exp_mask[BPF_SIZE(insn.code)]) in nfp_bpf_opt_ld_mask()
3984 if (exp_mask[BPF_SIZE(insn.code)] != next.imm) in nfp_bpf_opt_ld_mask()
4013 if (BPF_SIZE(insn.code) != BPF_W) in nfp_bpf_opt_ld_shift()
4065 if (BPF_SIZE(ld->code) != BPF_SIZE(st->code)) in curr_pair_is_memcpy()
/linux-6.1.9/arch/sparc/net/
Dbpf_jit_comp_64.c1263 switch (BPF_SIZE(code)) { in build_insn()
1308 switch (BPF_SIZE(code)) { in build_insn()
1346 switch (BPF_SIZE(code)) { in build_insn()
/linux-6.1.9/arch/powerpc/net/
Dbpf_jit_comp64.c360 u32 size = BPF_SIZE(code); in bpf_jit_build_body()
894 if (BPF_SIZE(code) == BPF_DW && (off & 3)) in bpf_jit_build_body()
Dbpf_jit_comp32.c289 u32 size = BPF_SIZE(code); in bpf_jit_build_body()
/linux-6.1.9/arch/riscv/net/
Dbpf_jit_comp32.c1248 if (emit_load_r64(dst, src, off, ctx, BPF_SIZE(code))) in bpf_jit_emit_insn()
1270 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code), in bpf_jit_emit_insn()
1283 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code), in bpf_jit_emit_insn()
Dbpf_jit_comp64.c1096 switch (BPF_SIZE(code)) { in bpf_jit_emit_insn()
1261 BPF_SIZE(code) == BPF_DW, ctx); in bpf_jit_emit_insn()
/linux-6.1.9/tools/lib/bpf/
Drelo_core.c987 switch (BPF_SIZE(insn->code)) { in insn_bpf_size_to_bytes()
/linux-6.1.9/arch/s390/net/
Dbpf_jit_comp.c1202 bool is32 = BPF_SIZE(insn->code) == BPF_W; in bpf_jit_insn()

12