/openbmc/linux/tools/bpf/ |
H A D | bpf_exp.y | 173 bpf_set_curr_instr(BPF_LDX | BPF_IMM, 0, 0, $3); } 175 bpf_set_curr_instr(BPF_LDX | BPF_IMM, 0, 0, $2); } 180 bpf_set_curr_instr(BPF_LDX | BPF_IMM, 0, 0, $3); } 182 bpf_set_curr_instr(BPF_LDX | BPF_W | BPF_LEN, 0, 0, 0); } 184 bpf_set_curr_instr(BPF_LDX | BPF_MEM, 0, 0, $4); } 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); } }
|
H A D | bpf_dbg.c | 57 #define BPF_LDX_B (BPF_LDX | BPF_B) 58 #define BPF_LDX_W (BPF_LDX | BPF_W) 150 [BPF_LDX] = "ldx", 283 case BPF_LDX | BPF_IMM: in bpf_disasm() 284 op = op_table[BPF_LDX]; in bpf_disasm() 295 case BPF_LDX | BPF_MEM: in bpf_disasm() 296 op = op_table[BPF_LDX]; in bpf_disasm() 721 case BPF_LDX | BPF_IMM: in bpf_single_step() 727 case BPF_LDX | BPF_MEM: in bpf_single_step()
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 3086 BPF_STMT(BPF_LDX | BPF_LEN, 0), 3100 BPF_STMT(BPF_LDX | BPF_IMM, 3), 3165 BPF_STMT(BPF_LDX | BPF_LEN, 0), 3200 BPF_STMT(BPF_LDX | BPF_LEN, 0), 3227 BPF_STMT(BPF_LDX | BPF_LEN, 0), 3378 BPF_STMT(BPF_LDX | BPF_IMM, 2), 3380 BPF_STMT(BPF_LDX | BPF_IMM, 3), 3397 BPF_STMT(BPF_LDX | BPF_IMM, 3), 3474 BPF_STMT(BPF_LDX | BPF_LEN, 0), 3482 BPF_STMT(BPF_LDX | BPF_MEM, 1), [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 8 #define BPF_LDX 0x01 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 8 #define BPF_LDX 0x01 macro
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 404 code & BPF_LDX || code & BPF_STX) in init_regs() 1564 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1565 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1566 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1567 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1568 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_emit_insn() 1569 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_emit_insn() 1570 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_emit_insn() 1573 case BPF_LDX | BPF_MEMSX | BPF_B: in bpf_jit_emit_insn() 1574 case BPF_LDX | BPF_MEMSX | BPF_H: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 1158 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1159 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1160 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1161 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 1163 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in build_insn() 1164 case BPF_LDX | BPF_PROBE_MEM | BPF_H: 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() 1168 case BPF_LDX | BPF_MEMSX | BPF_H: in build_insn() 1169 case BPF_LDX | BPF_MEMSX | BPF_W: in build_insn() [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 424 code & BPF_LDX || code & BPF_STX) in init_regs() 1011 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1012 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1013 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1014 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1015 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_emit_insn() 1016 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_emit_insn() 1017 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_emit_insn() 1018 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_emit_insn()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 895 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_build_body() 896 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_build_body() 898 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_build_body() 899 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body() 901 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_build_body() 902 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_build_body() 904 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_build_body() 905 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_build_body()
|
H A D | bpf_jit_comp32.c | 931 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ in bpf_jit_build_body() 932 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_build_body() 933 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_build_body() 934 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body() 935 case BPF_LDX | BPF_MEM | BPF_W: /* dst = *(u32 *)(ul) (src + off) */ in bpf_jit_build_body() 936 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_build_body() 937 case BPF_LDX | BPF_MEM | BPF_DW: /* dst = *(u64 *)(ul) (src + off) */ in bpf_jit_build_body() 938 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_build_body()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 1441 case BPF_LDX | BPF_MEM | BPF_B: in do_jit() 1442 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in do_jit() 1443 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() 1444 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in do_jit() 1445 case BPF_LDX | BPF_MEM | BPF_W: in do_jit() 1446 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in do_jit() 1447 case BPF_LDX | BPF_MEM | BPF_DW: in do_jit() 1448 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in do_jit() 1450 case BPF_LDX | BPF_MEMSX | BPF_B: in do_jit() 1451 case BPF_LDX | BPF_MEMSX | BPF_H: in do_jit() [all …]
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 875 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 876 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 877 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 878 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 879 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in build_insn() 880 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in build_insn() 881 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in build_insn() 882 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in build_insn()
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 790 if (BPF_CLASS(insn->code) == BPF_LDX && in bpf_jit_insn() 1373 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ in bpf_jit_insn() 1374 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_insn() 1381 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_insn() 1382 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_insn() 1389 case BPF_LDX | BPF_MEM | BPF_W: /* dst = *(u32 *)(ul) (src + off) */ in bpf_jit_insn() 1390 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_insn() 1397 case BPF_LDX | BPF_MEM | BPF_DW: /* dst = *(u64 *)(ul) (src + off) */ in bpf_jit_insn() 1398 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_insn()
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_32.c | 567 case BPF_LDX | BPF_W | BPF_LEN: in bpf_jit_compile() 573 case BPF_LDX | BPF_IMM: in bpf_jit_compile() 580 case BPF_LDX | BPF_MEM: in bpf_jit_compile() 608 case BPF_LDX | BPF_B | BPF_MSH: in bpf_jit_compile()
|
H A D | bpf_jit_comp_64.c | 1255 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1256 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1257 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1258 case BPF_LDX | BPF_MEM | BPF_DW: { in build_insn()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 64 [BPF_LDX] = "ldx", 261 } else if (class == BPF_LDX) { in print_bpf_insn()
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 64 [BPF_LDX] = "ldx", 261 } else if (class == BPF_LDX) { in print_bpf_insn()
|
H A D | core.c | 1687 [BPF_LDX | BPF_PROBE_MEM | BPF_B] = &&LDX_PROBE_MEM_B, in ___bpf_prog_run() 1688 [BPF_LDX | BPF_PROBE_MEM | BPF_H] = &&LDX_PROBE_MEM_H, in ___bpf_prog_run() 1689 [BPF_LDX | BPF_PROBE_MEM | BPF_W] = &&LDX_PROBE_MEM_W, in ___bpf_prog_run() 1690 [BPF_LDX | BPF_PROBE_MEM | BPF_DW] = &&LDX_PROBE_MEM_DW, in ___bpf_prog_run() 1691 [BPF_LDX | BPF_PROBE_MEMSX | BPF_B] = &&LDX_PROBE_MEMSX_B, in ___bpf_prog_run() 1692 [BPF_LDX | BPF_PROBE_MEMSX | BPF_H] = &&LDX_PROBE_MEMSX_H, in ___bpf_prog_run() 1693 [BPF_LDX | BPF_PROBE_MEMSX | BPF_W] = &&LDX_PROBE_MEMSX_W, in ___bpf_prog_run()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 824 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 825 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 826 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 827 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn()
|
/openbmc/linux/samples/bpf/ |
H A D | bpf_insn.h | 121 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
|
/openbmc/linux/kernel/ |
H A D | seccomp.c | 290 ftest->code = BPF_LDX | BPF_W | BPF_ABS; in seccomp_check_filter() 299 case BPF_LDX | BPF_W | BPF_LEN: in seccomp_check_filter() 300 ftest->code = BPF_LDX | BPF_IMM; in seccomp_check_filter() 326 case BPF_LDX | BPF_IMM: in seccomp_check_filter() 330 case BPF_LDX | BPF_MEM: in seccomp_check_filter()
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 156 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
|
/openbmc/linux/Documentation/bpf/standardization/ |
H A D | instruction-set.rst | 179 BPF_LDX 0x01 load into register operations `Load and store instructions`_ 417 For load and store instructions (``BPF_LD``, ``BPF_LDX``, ``BPF_ST``, and ``BPF_STX``), the 464 ``BPF_MEM | <size> | BPF_LDX`` means:: 477 ``BPF_MEMSX | <size> | BPF_LDX`` means::
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | main.h | 378 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_LDX | BPF_MEM); in is_mbpf_load()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | psock_fanout.c | 151 { BPF_LDX | BPF_W | BPF_MEM, 0, 6, len_off, 0 }, in sock_fanout_set_ebpf()
|