Home
last modified time | relevance | path

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

/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,
Dcalls.c931 BPF_LD_ABS(BPF_H, 0),
938 BPF_LD_ABS(BPF_H, 0),
/tools/include/uapi/linux/
Dbpf_common.h19 #define BPF_H 0x08 /* 16-bit */ macro
/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,
Dbpf_dbg.c78 #define BPF_LD_H (BPF_LD | BPF_H)
/tools/lib/bpf/
Dgen_loader.c204 case 2: return BPF_H; in insn_bytes_to_bpf_size()
698 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), 0)); in emit_relo_kfunc_btf()
718 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), btf_fd_idx)); in emit_relo_kfunc_btf()
724 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, in emit_relo_kfunc_btf()
742 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, sizeof(struct bpf_insn) + in emit_ksym_relo_log()
Drelo_core.c990 case BPF_H: return 2; in insn_bpf_size_to_bytes()
1001 case 2: return BPF_H; in insn_bytes_to_bpf_size()
/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),
Dctx_rewrite.c817 bpf_sz = BPF_H; in run_one_testcase()
/tools/testing/selftests/bpf/
Dtest_sysctl.c128 BPF_LDX_MEM(BPF_H, BPF_REG_7, BPF_REG_1,
131 BPF_LDX_MEM(BPF_H, BPF_REG_7, BPF_REG_1,
537 BPF_STX_MEM(BPF_H, BPF_REG_7, BPF_REG_0, 6),
/tools/testing/selftests/net/
Dgro.c124 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, ethproto_off), in setup_sock_filter()
128 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, dport_off), in setup_sock_filter()
130 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, dport_off + optlen), in setup_sock_filter()
Dtoeplitz.c294 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __set_filter()
Dcsum.c502 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __recv_prepare_packet_filter()