Home
last modified time | relevance | path

Searched refs:BPF_LD (Results 1 – 25 of 63) sorted by relevance

123

/openbmc/linux/samples/seccomp/
H A Dbpf-helper.h187 BPF_STMT(BPF_LD+BPF_MEM, 1), \
189 BPF_STMT(BPF_LD+BPF_MEM, 1)
194 BPF_STMT(BPF_LD+BPF_MEM, 0), \
197 BPF_STMT(BPF_LD+BPF_MEM, 1), \
199 BPF_STMT(BPF_LD+BPF_MEM, 1)
204 BPF_STMT(BPF_LD+BPF_MEM, 0), \
209 BPF_STMT(BPF_LD+BPF_MEM, 1)
221 BPF_STMT(BPF_LD+BPF_MEM, 1)
233 BPF_STMT(BPF_LD+BPF_MEM, 1)
245 BPF_STMT(BPF_LD+BPF_MEM, 1)
[all …]
H A Ddropper.c31 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
34 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
H A Dbpf-direct.c115 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_nr), in install_filter()
131 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
136 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dld_imm64.c34 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 0),
47 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 0),
56 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 0),
65 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1),
75 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 1, 1),
85 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1),
95 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1),
105 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, 0, 0, 1),
116 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, BPF_REG_1, 0, 1),
127 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, 0, BPF_REG_1, 0, 1),
[all …]
H A Dbpf_loop_inline.c46 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 6),
78 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 7),
107 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 10),
112 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 8),
148 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 9),
151 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 8),
185 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 22),
192 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 16),
204 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 6),
/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,
142 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_ABS, 0, 0,
148 bpf_set_curr_instr(BPF_LD | BPF_IMM, 0, 0, $3); }
150 bpf_set_curr_instr(BPF_LD | BPF_IMM, 0, 0, $2); }
155 bpf_set_curr_instr(BPF_LD | BPF_IMM, 0, 0, $3); }
157 bpf_set_curr_instr(BPF_LD | BPF_W | BPF_LEN, 0, 0, 0); }
159 bpf_set_curr_instr(BPF_LD | BPF_W | BPF_ABS, 0, 0,
[all …]
H A Dbpf_dbg.c77 #define BPF_LD_B (BPF_LD | BPF_B)
78 #define BPF_LD_H (BPF_LD | BPF_H)
79 #define BPF_LD_W (BPF_LD | BPF_W)
279 case BPF_LD | BPF_IMM: in bpf_disasm()
291 case BPF_LD | BPF_MEM: in bpf_disasm()
518 if (BPF_CLASS(f[i].code) == BPF_LD && in bpf_runnable()
718 case BPF_LD | BPF_IMM: in bpf_single_step()
724 case BPF_LD | BPF_MEM: in bpf_single_step()
/openbmc/linux/lib/
H A Dtest_bpf.c3067 BPF_STMT(BPF_LD | BPF_IMM, 1),
3069 BPF_STMT(BPF_LD | BPF_IMM, 2),
3073 BPF_STMT(BPF_LD | BPF_LEN, 0),
3098 BPF_STMT(BPF_LD | BPF_IMM, 1),
3113 BPF_STMT(BPF_LD | BPF_IMM, 8),
3396 BPF_STMT(BPF_LD | BPF_IMM, 2),
3400 BPF_STMT(BPF_LD | BPF_IMM, 2),
3403 BPF_STMT(BPF_LD | BPF_IMM, 2),
3406 BPF_STMT(BPF_LD | BPF_IMM, 2),
3409 BPF_STMT(BPF_LD | BPF_IMM, 2),
[all …]
/openbmc/linux/Documentation/bpf/
H A Dlinux-notes.rst40 BPF_IMM | BPF_DW | BPF_LD 0x18 0x3 dst = var_addr(imm) variable id dat…
54 The instructions come in two forms: ``BPF_ABS | <size> | BPF_LD`` and
55 ``BPF_IND | <size> | BPF_LD``.
76 ``BPF_ABS | BPF_W | BPF_LD`` (0x20) means::
82 ``BPF_IND | BPF_W | BPF_LD`` (0x40) means::
/openbmc/linux/tools/include/linux/
H A Dfilter.h136 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
146 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
285 .code = BPF_LD | BPF_DW | BPF_IMM, \
299 .code = BPF_LD | BPF_DW | BPF_IMM, \
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_32.c564 case BPF_LD | BPF_W | BPF_LEN: in bpf_jit_compile()
570 case BPF_LD | BPF_IMM: in bpf_jit_compile()
576 case BPF_LD | BPF_MEM: in bpf_jit_compile()
596 case BPF_LD | BPF_W | BPF_ABS: in bpf_jit_compile()
602 case BPF_LD | BPF_H | BPF_ABS: in bpf_jit_compile()
605 case BPF_LD | BPF_B | BPF_ABS: in bpf_jit_compile()
611 case BPF_LD | BPF_W | BPF_IND: in bpf_jit_compile()
626 case BPF_LD | BPF_H | BPF_IND: in bpf_jit_compile()
629 case BPF_LD | BPF_B | BPF_IND: in bpf_jit_compile()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_cgroup_storage.c84 … __imm_insn(ld_map_fd, BPF_RAW_INSN(BPF_LD | BPF_DW | BPF_IMM, BPF_REG_1, BPF_PSEUDO_MAP_FD, 0, 1)) in invalid_cgroup_storage_access_2()
223 … __imm_insn(ld_map_fd, BPF_RAW_INSN(BPF_LD | BPF_DW | BPF_IMM, BPF_REG_1, BPF_PSEUDO_MAP_FD, 0, 1)) in cpu_cgroup_storage_access_2()
H A Dverifier_map_ret_val.c33 … __imm_insn(ld_map_fd, BPF_RAW_INSN(BPF_LD | BPF_DW | BPF_IMM, BPF_REG_1, BPF_PSEUDO_MAP_FD, 0, 0)) in map_fd_for_function_call()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h7 #define BPF_LD 0x00 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h7 #define BPF_LD 0x00 macro
/openbmc/linux/include/linux/
H A Dfilter.h202 .code = BPF_LD | BPF_DW | BPF_IMM, \
240 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
250 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
1225 case BPF_LD | BPF_W | BPF_LEN: in bpf_needs_clear_a()
1228 case BPF_LD | BPF_W | BPF_ABS: in bpf_needs_clear_a()
1229 case BPF_LD | BPF_H | BPF_ABS: in bpf_needs_clear_a()
1230 case BPF_LD | BPF_B | BPF_ABS: in bpf_needs_clear_a()
1245 case BPF_LD | BPF_W | BPF_ABS: in bpf_anc_helper()
1246 case BPF_LD | BPF_H | BPF_ABS: in bpf_anc_helper()
1247 case BPF_LD | BPF_B | BPF_ABS: in bpf_anc_helper()
/openbmc/linux/samples/bpf/
H A Dbpf_insn.h86 .code = BPF_LD | BPF_DW | BPF_IMM, \
111 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_benchmark.c125 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)), in main()
133 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, args[0])), in main()
H A Dseccomp_bpf.c667 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
695 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
735 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
808 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group()
820 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group()
1053 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1172 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1179 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1186 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1193 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
[all …]
/openbmc/linux/Documentation/bpf/standardization/
H A Dinstruction-set.rst178 BPF_LD 0x00 non-standard load operations `Load and store instructions`_
417 For load and store instructions (``BPF_LD``, ``BPF_LDX``, ``BPF_ST``, and ``BPF_STX``), the
552 The following table defines a set of ``BPF_IMM | BPF_DW | BPF_LD`` instructions
559 BPF_IMM | BPF_DW | BPF_LD 0x18 0x0 dst = imm64 integer int…
560 BPF_IMM | BPF_DW | BPF_LD 0x18 0x1 dst = map_by_fd(imm) map fd map
561 BPF_IMM | BPF_DW | BPF_LD 0x18 0x2 dst = map_val(map_by_fd(imm)) + next_imm map fd dat…
562 BPF_IMM | BPF_DW | BPF_LD 0x18 0x3 dst = var_addr(imm) variable id dat…
563 BPF_IMM | BPF_DW | BPF_LD 0x18 0x4 dst = code_addr(imm) integer cod…
564 BPF_IMM | BPF_DW | BPF_LD 0x18 0x5 dst = map_by_idx(imm) map index map
565 BPF_IMM | BPF_DW | BPF_LD 0x18 0x6 dst = map_val(map_by_idx(imm)) + next_imm map index dat…
/openbmc/linux/tools/bpf/bpftool/
H A Dxlated_dumper.c243 double_insn = insn[i].code == (BPF_LD | BPF_IMM | BPF_DW); in dump_xlated_json()
350 double_insn = insn[i].code == (BPF_LD | BPF_IMM | BPF_DW); in dump_xlated_plain()
394 double_insn = cur->code == (BPF_LD | BPF_IMM | BPF_DW); in dump_xlated_for_graph()
/openbmc/linux/tools/testing/selftests/net/
H A Dtoeplitz.c290 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, SKF_AD_OFF + SKF_AD_PKTTYPE), in __set_filter()
292 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, off_proto), in __set_filter()
294 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __set_filter()
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/tools/perf/bench/
H A Dsched-seccomp-notify.c52 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in user_notif_syscall()
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c63 [BPF_LD] = "ld",
272 } else if (class == BPF_LD) { in print_bpf_insn()

123