Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/bpf/verifier/
Dctx_sk_lookup.c14 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
16 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
32 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
34 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
50 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
52 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
92 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
94 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
96 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
98 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
[all …]
Dctx_skb.c362 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_2, 6),
567 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
569 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
571 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
573 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
575 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
577 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
579 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
581 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
583 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0,
[all …]
Ddirect_value_access.c164 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff),
178 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff),
179 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 0),
192 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff),
193 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 0),
207 BPF_ST_MEM(BPF_H, BPF_REG_2, 1, 0xffff),
208 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 0),
221 BPF_ST_MEM(BPF_H, BPF_REG_1, 0, 42),
Dld_abs.c77 BPF_LD_ABS(BPF_H, 0),
87 BPF_LD_ABS(BPF_H, 0),
123 BPF_LD_ABS(BPF_H, 12),
125 BPF_LD_ABS(BPF_H, 12),
138 BPF_LD_ABS(BPF_H, 12),
143 BPF_LD_IND(BPF_H, BPF_REG_7, 14),
253 BPF_LD_ABS(BPF_H, 0),
264 BPF_LD_ABS(BPF_H, 0),
Dperf_event_sample_period.c22 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
25 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
Dlwt.c118 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_2, 6),
178 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
181 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
Dspill_fill.c113 BPF_ST_MEM(BPF_H, BPF_REG_10, -8, 0xcafe),
190 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_10, -8),
222 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_10, -8),
250 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_10, -6),
Dctx_sk_msg.c175 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_2, 6),
Dsock.c152 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port)),
170 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port) + 2),
227 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, dst_port)),
/linux-6.1.9/lib/
Dtest_bpf.c3166 BPF_STMT(BPF_LD | BPF_H | BPF_IND, MAX_K),
3599 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 12),
3605 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 54),
3607 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 56),
3614 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 20),
3617 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 14),
3619 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 16),
3648 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 12),
3653 BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 20),
3656 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 14),
[all …]
/linux-6.1.9/tools/include/uapi/linux/
Dbpf_common.h19 #define BPF_H 0x08 /* 16-bit */ macro
/linux-6.1.9/include/uapi/linux/
Dbpf_common.h19 #define BPF_H 0x08 /* 16-bit */ macro
/linux-6.1.9/tools/bpf/
Dbpf_exp.y136 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_IND, 0, 0, $5); }
138 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_IND, 0, 0, $6); }
140 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_ABS, 0, 0, $3); }
142 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_ABS, 0, 0,
/linux-6.1.9/tools/perf/util/
Dbpf-prologue.c76 return BPF_H; in argtype_to_ldx_size()
91 case BPF_H: in insn_sz_to_str()
/linux-6.1.9/arch/mips/net/
Dbpf_jit_comp64.c339 case BPF_H: in emit_ldx()
363 case BPF_H: in emit_stx()
822 case BPF_LDX | BPF_MEM | BPF_H: in build_insn()
829 case BPF_ST | BPF_MEM | BPF_H: in build_insn()
837 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
/linux-6.1.9/arch/loongarch/net/
Dbpf_jit.c816 case BPF_LDX | BPF_MEM | BPF_H: in build_insn()
828 case BPF_H: in build_insn()
861 case BPF_ST | BPF_MEM | BPF_H: in build_insn()
874 case BPF_H: in build_insn()
910 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
922 case BPF_H: in build_insn()
/linux-6.1.9/arch/powerpc/net/
Dbpf_jit_comp64.c747 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body()
748 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_build_body()
867 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_build_body()
868 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body()
904 case BPF_H: in bpf_jit_build_body()
Dbpf_jit_comp32.c764 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body()
767 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_build_body()
868 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_build_body()
869 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body()
912 case BPF_H: in bpf_jit_build_body()
/linux-6.1.9/tools/lib/bpf/
Dgen_loader.c204 case 2: return BPF_H; in insn_bytes_to_bpf_size()
694 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0)); in emit_relo_kfunc_btf()
705 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0)); in emit_relo_kfunc_btf()
714 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), btf_fd_idx)); in emit_relo_kfunc_btf()
720 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, in emit_relo_kfunc_btf()
738 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, sizeof(struct bpf_insn) + in emit_ksym_relo_log()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dalign.c228 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_5, 0),
229 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_5, 2),
/linux-6.1.9/arch/x86/net/
Dbpf_jit_comp32.c1176 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
1912 case BPF_ST | BPF_MEM | BPF_H: in do_jit()
1927 case BPF_H: in do_jit()
1953 case BPF_STX | BPF_MEM | BPF_H: in do_jit()
1975 case BPF_H: in do_jit()
2014 case BPF_LDX | BPF_MEM | BPF_H: in do_jit()
2028 case BPF_H: in do_jit()
2051 case BPF_H: in do_jit()
Dbpf_jit_comp.c81 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
751 case BPF_H: in emit_ldx()
785 case BPF_H: in emit_stx()
1240 case BPF_ST | BPF_MEM | BPF_H: in do_jit()
1265 case BPF_STX | BPF_MEM | BPF_H: in do_jit()
1274 case BPF_LDX | BPF_MEM | BPF_H: in do_jit()
1275 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in do_jit()
/linux-6.1.9/net/core/
Dfilter.c317 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access()
325 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access()
351 *insn++ = BPF_LDX_MEM(BPF_H, BPF_REG_A, BPF_REG_CTX, in convert_bpf_extensions()
377 *insn = BPF_LDX_MEM(BPF_H, BPF_REG_A, BPF_REG_TMP, in convert_bpf_extensions()
414 *insn++ = BPF_LDX_MEM(BPF_H, BPF_REG_A, BPF_REG_CTX, in convert_bpf_extensions()
474 bool endian = BPF_SIZE(fp->code) == BPF_H || in convert_bpf_ld_abs()
522 case BPF_H: in convert_bpf_ld_abs()
650 case BPF_LD | BPF_ABS | BPF_H: in bpf_convert_filter()
653 case BPF_LD | BPF_IND | BPF_H: in bpf_convert_filter()
991 [BPF_LD | BPF_H | BPF_ABS] = true, in chk_code_allowed()
[all …]
/linux-6.1.9/arch/arm/net/
Dbpf_jit_32.c1018 case BPF_H: in is_ldst_imm()
1048 case BPF_H: in emit_str_r()
1087 case BPF_H: in emit_ldx_r()
1603 case BPF_LDX | BPF_MEM | BPF_H: in build_insn()
1614 case BPF_ST | BPF_MEM | BPF_H: in build_insn()
1623 case BPF_H: in build_insn()
1636 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
/linux-6.1.9/arch/sparc/net/
Dbpf_jit_comp_64.c1256 case BPF_LDX | BPF_MEM | BPF_H: in build_insn()
1267 case BPF_H: in build_insn()
1295 case BPF_ST | BPF_MEM | BPF_H: in build_insn()
1312 case BPF_H: in build_insn()
1337 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
1350 case BPF_H: in build_insn()

12