Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dctx_sk_lookup.c5 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
7 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
9 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
11 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
23 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
25 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
27 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
29 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
41 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
43 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
[all …]
H A Dctx_skb.c395 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
397 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
399 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
401 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
403 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
405 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
407 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
409 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
411 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
413 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
[all …]
H A Dbasic_stx_ldx.c4 BPF_STX_MEM(BPF_B, BPF_REG_10, -1, -1),
13 BPF_STX_MEM(BPF_B, 14, BPF_REG_10, -1),
22 BPF_ST_MEM(BPF_B, 14, -1, -1),
31 BPF_LDX_MEM(BPF_B, BPF_REG_0, 12, 0),
40 BPF_LDX_MEM(BPF_B, 11, BPF_REG_1, 0),
H A Dld_abs.c76 BPF_LD_ABS(BPF_B, 0),
86 BPF_LD_ABS(BPF_B, 0),
169 BPF_LD_ABS(BPF_B, 3),
173 BPF_LD_ABS(BPF_B, 4),
175 BPF_LD_IND(BPF_B, BPF_REG_8, -70),
189 BPF_LD_ABS(BPF_B, 3),
193 BPF_LD_ABS(BPF_B, 128),
210 BPF_LD_ABS(BPF_B, 3),
226 BPF_LD_ABS(BPF_B, 256),
252 BPF_LD_ABS(BPF_B, 0),
[all …]
H A Dbpf_st_mem.c23 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_10, -8),
25 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_10, -4),
27 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_10, -1),
54 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
58 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_10, -20),
H A Djset.c81 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
95 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
110 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
124 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
139 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
157 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
162 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
H A Ddirect_value_access.c115 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
127 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
139 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
151 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
165 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
233 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
245 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
H A Dperf_event_sample_period.c6 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
9 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
H A Dcalls.c930 BPF_LD_ABS(BPF_B, 0),
937 BPF_LD_ABS(BPF_B, 0),
1030 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
1035 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
1048 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
1052 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
1066 BPF_ST_MEM(BPF_B, BPF_REG_10, -32, 0),
1074 BPF_ST_MEM(BPF_B, BPF_REG_10, -64, 0),
1089 BPF_ST_MEM(BPF_B, BPF_REG_10, -32, 0),
1093 BPF_ST_MEM(BPF_B, BPF_REG_10, -64, 0),
[all …]
H A Djmp32.c87 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
152 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
217 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
810 BPF_ST_MEM(BPF_B, BPF_REG_8, 0, 0),
838 BPF_ST_MEM(BPF_B, BPF_REG_8, 0, 0),
866 BPF_ST_MEM(BPF_B, BPF_REG_8, 0, 0),
H A Ddead_code.c5 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c143 BPF_LDX_MEM(BPF_B, DST_REG, BPF_REG_2, 0)
224 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 0),
225 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 1),
226 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 2),
227 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 3),
H A Draw_tp_writable_reject_nbd_invalid.c16 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_6, in test_raw_tp_writable_reject_nbd_invalid()
H A Dsockopt.c300 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xFF),
389 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xF0),
699 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xF0),
736 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 1 << 3),
841 BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_6, 0),
887 BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_6, 0),
/openbmc/linux/tools/bpf/
H A Dbpf_exp.y124 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_IND, 0, 0, $5); }
126 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_IND, 0, 0, $6); }
128 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_ABS, 0, 0, $3); }
130 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_ABS, 0, 0,
190 bpf_set_curr_instr(BPF_LDX | BPF_MSH | BPF_B, 0, 0, $6); } }
196 bpf_set_curr_instr(BPF_LDX | BPF_MSH | BPF_B, 0, 0, $6); } }
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h20 #define BPF_B 0x10 /* 8-bit */ macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h20 #define BPF_B 0x10 /* 8-bit */ macro
/openbmc/linux/lib/
H A Dtest_bpf.c7848 BPF_LDX_MEM(BPF_B, R0, R10, -1),
7850 BPF_LDX_MEM(BPF_B, R0, R10, -8),
7868 BPF_LDX_MEM(BPF_B, R0, R10, -1),
7870 BPF_LDX_MEM(BPF_B, R0, R10, -8),
7903 BPF_STX_MEM(BPF_B, R1, R2, 256),
7904 BPF_LDX_MEM(BPF_B, R0, R1, 256),
8240 BPF_STX_MEM(BPF_B, R10, R2, -1),
8242 BPF_STX_MEM(BPF_B, R10, R2, -8),
8262 BPF_STX_MEM(BPF_B, R10, R2, -1),
8264 BPF_STX_MEM(BPF_B, R10, R2, -8),
[all …]
/openbmc/linux/samples/bpf/
H A Dsock_example.c50 BPF_LD_ABS(BPF_B, ETH_HLEN + offsetof(struct iphdr, protocol) /* R0 = ip->proto */), in test_sock()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c875 case BPF_LDX | BPF_MEM | BPF_B: in build_insn()
882 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in build_insn()
884 case BPF_B: in build_insn()
922 case BPF_ST | BPF_MEM | BPF_B: in build_insn()
927 case BPF_B: in build_insn()
971 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
976 case BPF_B: in build_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c571 case BPF_B: in emit_store()
1011 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn()
1015 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_emit_insn()
1035 case BPF_B: in bpf_jit_emit_insn()
1068 case BPF_ST | BPF_MEM | BPF_B: in bpf_jit_emit_insn()
1073 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn()
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c338 case BPF_B: in emit_ldx()
362 case BPF_B: in emit_stx()
826 case BPF_LDX | BPF_MEM | BPF_B: in build_insn()
833 case BPF_ST | BPF_MEM | BPF_B: in build_insn()
841 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
/openbmc/linux/tools/testing/selftests/net/
H A Dpsock_fanout.c115 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 80), /* ldb [80] */ in sock_fanout_set_cbpf()
154 { BPF_LD | BPF_B | BPF_ABS, 0, 0, 0, 0x50 }, in sock_fanout_set_ebpf()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c134 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
840 case BPF_B: in emit_ldx()
870 case BPF_B: in emit_ldsx()
893 case BPF_B: in emit_stx()
1453 case BPF_ST | BPF_MEM | BPF_B: in do_jit()
1483 case BPF_STX | BPF_MEM | BPF_B: in do_jit()
1491 case BPF_LDX | BPF_MEM | BPF_B: in do_jit()
1492 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in do_jit()
1500 case BPF_LDX | BPF_MEMSX | BPF_B: in do_jit()
1503 case BPF_LDX | BPF_PROBE_MEMSX | BPF_B: in do_jit()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1160 case BPF_LDX | BPF_MEM | BPF_B: in build_insn()
1165 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in build_insn()
1167 case BPF_LDX | BPF_MEMSX | BPF_B: in build_insn()
1170 case BPF_LDX | BPF_PROBE_MEMSX | BPF_B: in build_insn()
1211 case BPF_B: in build_insn()
1256 case BPF_ST | BPF_MEM | BPF_B: in build_insn()
1284 case BPF_B: in build_insn()
1306 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
1332 case BPF_B: in build_insn()

123