/linux-6.1.9/tools/bpf/ |
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); } }
|
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()
|
/linux-6.1.9/lib/ |
D | test_bpf.c | 368 insn[i] = __BPF_STMT(BPF_LDX | BPF_B | BPF_MSH, 0); in bpf_fill_maxinsns12() 389 insn[i] = __BPF_STMT(BPF_LDX | BPF_B | BPF_MSH, 0); in bpf_fill_maxinsns13() 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), [all …]
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | bpf_common.h | 8 #define BPF_LDX 0x01 macro
|
/linux-6.1.9/include/uapi/linux/ |
D | bpf_common.h | 8 #define BPF_LDX 0x01 macro
|
/linux-6.1.9/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 864 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_build_body() 865 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_build_body() 867 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_build_body() 868 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body() 870 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_build_body() 871 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_build_body() 873 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_build_body() 874 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_build_body()
|
D | bpf_jit_comp32.c | 866 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ in bpf_jit_build_body() 867 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_build_body() 868 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_build_body() 869 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body() 870 case BPF_LDX | BPF_MEM | BPF_W: /* dst = *(u32 *)(ul) (src + off) */ in bpf_jit_build_body() 871 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_build_body() 872 case BPF_LDX | BPF_MEM | BPF_DW: /* dst = *(u64 *)(ul) (src + off) */ in bpf_jit_build_body() 873 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_build_body()
|
/linux-6.1.9/arch/s390/net/ |
D | bpf_jit_comp.c | 686 if (BPF_CLASS(insn->code) == BPF_LDX && in bpf_jit_insn() 1265 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ in bpf_jit_insn() 1266 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_insn() 1273 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_insn() 1274 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_insn() 1281 case BPF_LDX | BPF_MEM | BPF_W: /* dst = *(u32 *)(ul) (src + off) */ in bpf_jit_insn() 1282 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_insn() 1289 case BPF_LDX | BPF_MEM | BPF_DW: /* dst = *(u64 *)(ul) (src + off) */ in bpf_jit_insn() 1290 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_insn()
|
/linux-6.1.9/arch/riscv/net/ |
D | bpf_jit_comp64.c | 395 code & BPF_LDX || code & BPF_STX) in init_regs() 1085 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1086 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1087 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1088 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn() 1089 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in bpf_jit_emit_insn() 1090 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_emit_insn() 1091 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in bpf_jit_emit_insn() 1092 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in bpf_jit_emit_insn()
|
D | bpf_jit_comp32.c | 1244 case BPF_LDX | BPF_MEM | BPF_B: in bpf_jit_emit_insn() 1245 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1246 case BPF_LDX | BPF_MEM | BPF_W: in bpf_jit_emit_insn() 1247 case BPF_LDX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn()
|
/linux-6.1.9/arch/arm64/net/ |
D | bpf_jit_comp.c | 1120 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1121 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1122 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1123 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn() 1124 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in build_insn() 1125 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in build_insn() 1126 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in build_insn() 1127 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in build_insn() 1344 case BPF_LDX: in find_fpb_offset() 1350 if (class == BPF_LDX && mode == BPF_MEM && in find_fpb_offset()
|
/linux-6.1.9/kernel/bpf/ |
D | disasm.c | 64 [BPF_LDX] = "ldx", 220 } else if (class == BPF_LDX) { in print_bpf_insn()
|
/linux-6.1.9/arch/sparc/net/ |
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()
|
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()
|
/linux-6.1.9/Documentation/bpf/ |
D | instruction-set.rst | 56 BPF_LDX 0x01 load into register operations `Load and store instructions`_ 197 For load and store instructions (``BPF_LD``, ``BPF_LDX``, ``BPF_ST``, and ``BPF_STX``), the 243 ``BPF_MEM | <size> | BPF_LDX`` means::
|
/linux-6.1.9/arch/x86/net/ |
D | bpf_jit_comp.c | 1272 case BPF_LDX | BPF_MEM | BPF_B: in do_jit() 1273 case BPF_LDX | BPF_PROBE_MEM | BPF_B: in do_jit() 1274 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() 1275 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in do_jit() 1276 case BPF_LDX | BPF_MEM | BPF_W: in do_jit() 1277 case BPF_LDX | BPF_PROBE_MEM | BPF_W: in do_jit() 1278 case BPF_LDX | BPF_MEM | BPF_DW: in do_jit() 1279 case BPF_LDX | BPF_PROBE_MEM | BPF_DW: in do_jit()
|
D | bpf_jit_comp32.c | 2013 case BPF_LDX | BPF_MEM | BPF_B: in do_jit() 2014 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() 2015 case BPF_LDX | BPF_MEM | BPF_W: in do_jit() 2016 case BPF_LDX | BPF_MEM | BPF_DW: in do_jit()
|
/linux-6.1.9/arch/mips/net/ |
D | bpf_jit_comp64.c | 821 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 822 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 823 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 824 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn()
|
/linux-6.1.9/samples/bpf/ |
D | bpf_insn.h | 121 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
|
/linux-6.1.9/kernel/ |
D | seccomp.c | 285 ftest->code = BPF_LDX | BPF_W | BPF_ABS; in seccomp_check_filter() 294 case BPF_LDX | BPF_W | BPF_LEN: in seccomp_check_filter() 295 ftest->code = BPF_LDX | BPF_IMM; in seccomp_check_filter() 321 case BPF_LDX | BPF_IMM: in seccomp_check_filter() 325 case BPF_LDX | BPF_MEM: in seccomp_check_filter()
|
/linux-6.1.9/arch/loongarch/net/ |
D | bpf_jit.c | 815 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 816 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 817 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 818 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn()
|
/linux-6.1.9/tools/include/linux/ |
D | filter.h | 156 .code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, \
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.h | 378 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_LDX | BPF_MEM); in is_mbpf_load()
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | psock_fanout.c | 151 { BPF_LDX | BPF_W | BPF_MEM, 0, 6, len_off, 0 }, in sock_fanout_set_ebpf()
|
/linux-6.1.9/arch/arm/net/ |
D | bpf_jit_32.c | 1602 case BPF_LDX | BPF_MEM | BPF_W: in build_insn() 1603 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1604 case BPF_LDX | BPF_MEM | BPF_B: in build_insn() 1605 case BPF_LDX | BPF_MEM | BPF_DW: in build_insn()
|