/linux/samples/seccomp/ |
A D | bpf-helper.h | 187 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 …]
|
A D | dropper.c | 31 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter() 34 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
|
A D | bpf-direct.c | 115 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()
|
/linux/tools/testing/selftests/bpf/verifier/ |
A D | ld_imm64.c | 34 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 …]
|
/linux/tools/bpf/ |
A D | bpf_exp.y | 124 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 …]
|
A D | bpf_dbg.c | 77 #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()
|
/linux/lib/ |
A D | test_bpf.c | 3066 BPF_STMT(BPF_LD | BPF_IMM, 1), 3068 BPF_STMT(BPF_LD | BPF_IMM, 2), 3072 BPF_STMT(BPF_LD | BPF_LEN, 0), 3097 BPF_STMT(BPF_LD | BPF_IMM, 1), 3112 BPF_STMT(BPF_LD | BPF_IMM, 8), 3395 BPF_STMT(BPF_LD | BPF_IMM, 2), 3399 BPF_STMT(BPF_LD | BPF_IMM, 2), 3402 BPF_STMT(BPF_LD | BPF_IMM, 2), 3405 BPF_STMT(BPF_LD | BPF_IMM, 2), 3408 BPF_STMT(BPF_LD | BPF_IMM, 2), [all …]
|
/linux/arch/sparc/net/ |
A D | bpf_jit_comp_32.c | 564 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()
|
/linux/tools/include/linux/ |
A D | filter.h | 136 .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, \
|
/linux/include/linux/ |
A D | filter.h | 192 .code = BPF_LD | BPF_DW | BPF_IMM, \ 230 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \ 240 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \ 1237 case BPF_LD | BPF_W | BPF_LEN: in bpf_needs_clear_a() 1240 case BPF_LD | BPF_W | BPF_ABS: in bpf_needs_clear_a() 1241 case BPF_LD | BPF_H | BPF_ABS: in bpf_needs_clear_a() 1242 case BPF_LD | BPF_B | BPF_ABS: in bpf_needs_clear_a() 1257 case BPF_LD | BPF_W | BPF_ABS: in bpf_anc_helper() 1258 case BPF_LD | BPF_H | BPF_ABS: in bpf_anc_helper() 1259 case BPF_LD | BPF_B | BPF_ABS: in bpf_anc_helper()
|
/linux/tools/testing/selftests/seccomp/ |
A D | seccomp_bpf.c | 654 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL() 682 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL() 722 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL() 795 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group() 807 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group() 1040 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP() 1159 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP() 1166 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP() 1173 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP() 1180 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP() [all …]
|
A D | seccomp_benchmark.c | 125 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()
|
/linux/samples/bpf/ |
A D | bpf_insn.h | 86 .code = BPF_LD | BPF_DW | BPF_IMM, \ 111 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_ABS, \
|
/linux/tools/include/uapi/linux/ |
A D | bpf_common.h | 7 #define BPF_LD 0x00 macro
|
/linux/include/uapi/linux/ |
A D | bpf_common.h | 7 #define BPF_LD 0x00 macro
|
/linux/tools/testing/selftests/net/ |
A D | toeplitz.c | 286 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, SKF_AD_OFF + SKF_AD_PKTTYPE), in __set_filter() 288 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, off_proto), in __set_filter() 290 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __set_filter()
|
A D | psock_fanout.c | 114 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 80), /* ldb [80] */ in sock_fanout_set_cbpf() 153 { BPF_LD | BPF_B | BPF_ABS, 0, 0, 0, 0x50 }, in sock_fanout_set_ebpf()
|
A D | gro.c | 123 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, ethproto_off), in setup_sock_filter() 125 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, ipproto_off), in setup_sock_filter() 127 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, dport_off), in setup_sock_filter() 129 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, dport_off + optlen), in setup_sock_filter()
|
A D | reuseport_bpf.c | 104 { BPF_LD | BPF_ABS | BPF_W, 0, 0, 0, 0 }, in attach_ebpf() 137 { BPF_LD | BPF_W | BPF_ABS, 0, 0, 0 }, in attach_cbpf()
|
/linux/tools/bpf/bpftool/ |
A D | xlated_dumper.c | 236 double_insn = insn[i].code == (BPF_LD | BPF_IMM | BPF_DW); in dump_xlated_json() 343 double_insn = insn[i].code == (BPF_LD | BPF_IMM | BPF_DW); in dump_xlated_plain()
|
/linux/kernel/bpf/ |
A D | disasm.c | 63 [BPF_LD] = "ld", 229 } else if (class == BPF_LD) { in print_bpf_insn()
|
A D | core.c | 293 dst[i].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_prog_calc_tag() 1072 case BPF_LD | BPF_IMM | BPF_DW: in bpf_jit_blind_insn() 1164 if (insn[0].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_jit_blind_constants() 1355 [BPF_LD | BPF_ABS | BPF_B] = true, in bpf_opcode_in_insntable() 1356 [BPF_LD | BPF_ABS | BPF_H] = true, in bpf_opcode_in_insntable() 1357 [BPF_LD | BPF_ABS | BPF_W] = true, in bpf_opcode_in_insntable() 1358 [BPF_LD | BPF_IND | BPF_B] = true, in bpf_opcode_in_insntable() 1359 [BPF_LD | BPF_IND | BPF_H] = true, in bpf_opcode_in_insntable() 1360 [BPF_LD | BPF_IND | BPF_W] = true, in bpf_opcode_in_insntable()
|
/linux/kernel/ |
A D | seccomp.c | 279 case BPF_LD | BPF_W | BPF_ABS: in seccomp_check_filter() 285 case BPF_LD | BPF_W | BPF_LEN: in seccomp_check_filter() 286 ftest->code = BPF_LD | BPF_IMM; in seccomp_check_filter() 315 case BPF_LD | BPF_IMM: in seccomp_check_filter() 319 case BPF_LD | BPF_MEM: in seccomp_check_filter() 731 case BPF_LD | BPF_W | BPF_ABS: in seccomp_is_const_allow()
|
/linux/net/core/ |
A D | filter.c | 646 case BPF_LD | BPF_ABS | BPF_W: in bpf_convert_filter() 647 case BPF_LD | BPF_ABS | BPF_H: in bpf_convert_filter() 648 case BPF_LD | BPF_ABS | BPF_B: in bpf_convert_filter() 649 case BPF_LD | BPF_IND | BPF_W: in bpf_convert_filter() 650 case BPF_LD | BPF_IND | BPF_H: in bpf_convert_filter() 826 case BPF_LD | BPF_MEM: in bpf_convert_filter() 835 case BPF_LD | BPF_IMM: in bpf_convert_filter() 929 case BPF_LD | BPF_MEM: in check_load_and_stores() 994 [BPF_LD | BPF_IMM] = true, in chk_code_allowed() 995 [BPF_LD | BPF_MEM] = true, in chk_code_allowed() [all …]
|
/linux/Documentation/networking/ |
A D | cdc_mbim.rst | 251 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF + SKF_AD_VLAN_TAG_PRESENT), 255 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, SKF_AD_OFF + SKF_AD_VLAN_TAG), 260 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 2 * ETH_ALEN),
|