Home
last modified time | relevance | path

Searched refs:BPF_STX (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.1.9/Documentation/bpf/
Dinstruction-set.rst58 BPF_STX 0x03 store from register operations `Load and store instructions`_
197 For load and store instructions (``BPF_LD``, ``BPF_LDX``, ``BPF_ST``, and ``BPF_STX``), the
235 ``BPF_MEM | <size> | BPF_STX`` means::
259 * ``BPF_ATOMIC | BPF_W | BPF_STX`` for 32-bit operations
260 * ``BPF_ATOMIC | BPF_DW | BPF_STX`` for 64-bit operations
277 ``BPF_ATOMIC | BPF_W | BPF_STX`` with 'imm' = BPF_ADD means::
281 ``BPF_ATOMIC | BPF_DW | BPF_STX`` with 'imm' = BPF ADD means::
Dclassic_vs_extended.rst263 BPF_STX 0x03 BPF_STX 0x03
/linux-6.1.9/tools/include/uapi/linux/
Dbpf_common.h10 #define BPF_STX 0x03 macro
/linux-6.1.9/include/uapi/linux/
Dbpf_common.h10 #define BPF_STX 0x03 macro
/linux-6.1.9/samples/bpf/
Dbpf_insn.h131 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
154 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
/linux-6.1.9/arch/mips/net/
Dbpf_jit_comp64.c836 case BPF_STX | BPF_MEM | BPF_W: in build_insn()
837 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
838 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
839 case BPF_STX | BPF_MEM | BPF_DW: in build_insn()
846 case BPF_STX | BPF_ATOMIC | BPF_W: in build_insn()
847 case BPF_STX | BPF_ATOMIC | BPF_DW: in build_insn()
Dbpf_jit_comp32.c1680 case BPF_STX | BPF_MEM | BPF_W: in build_insn()
1681 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
1682 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
1683 case BPF_STX | BPF_MEM | BPF_DW: in build_insn()
1690 case BPF_STX | BPF_ATOMIC | BPF_W: in build_insn()
1722 case BPF_STX | BPF_ATOMIC | BPF_DW: in build_insn()
/linux-6.1.9/tools/include/linux/
Dfilter.h166 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_MEM, \
189 .code = BPF_STX | BPF_SIZE(SIZE) | BPF_ATOMIC, \
/linux-6.1.9/arch/powerpc/net/
Dbpf_jit_comp64.c739 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src */ in bpf_jit_build_body()
747 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body()
755 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ in bpf_jit_build_body()
763 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ in bpf_jit_build_body()
780 case BPF_STX | BPF_ATOMIC | BPF_W: in bpf_jit_build_body()
781 case BPF_STX | BPF_ATOMIC | BPF_DW: in bpf_jit_build_body()
Dbpf_jit_comp32.c757 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src */ in bpf_jit_build_body()
764 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body()
771 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ in bpf_jit_build_body()
778 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ in bpf_jit_build_body()
792 case BPF_STX | BPF_ATOMIC | BPF_W: in bpf_jit_build_body()
860 case BPF_STX | BPF_ATOMIC | BPF_DW: /* *(u64 *)(dst + off) += src */ in bpf_jit_build_body()
/linux-6.1.9/kernel/bpf/
Ddisasm.c66 [BPF_STX] = "stx",
163 } else if (class == BPF_STX) { in print_bpf_insn()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.h398 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_STX | BPF_MEM); in is_mbpf_store()
433 return (meta->insn.code & ~BPF_SIZE_MASK) == (BPF_STX | BPF_ATOMIC); in is_mbpf_atomic()
/linux-6.1.9/arch/loongarch/net/
Dbpf_jit.c909 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
910 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
911 case BPF_STX | BPF_MEM | BPF_W: in build_insn()
912 case BPF_STX | BPF_MEM | BPF_DW: in build_insn()
953 case BPF_STX | BPF_ATOMIC | BPF_W: in build_insn()
954 case BPF_STX | BPF_ATOMIC | BPF_DW: in build_insn()
/linux-6.1.9/arch/riscv/net/
Dbpf_jit_comp64.c395 code & BPF_LDX || code & BPF_STX) in init_regs()
1218 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn()
1228 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn()
1238 case BPF_STX | BPF_MEM | BPF_W: in bpf_jit_emit_insn()
1248 case BPF_STX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn()
1258 case BPF_STX | BPF_ATOMIC | BPF_W: in bpf_jit_emit_insn()
1259 case BPF_STX | BPF_ATOMIC | BPF_DW: in bpf_jit_emit_insn()
Dbpf_jit_comp32.c1261 case BPF_STX | BPF_MEM | BPF_B: in bpf_jit_emit_insn()
1262 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn()
1263 case BPF_STX | BPF_MEM | BPF_W: in bpf_jit_emit_insn()
1264 case BPF_STX | BPF_MEM | BPF_DW: in bpf_jit_emit_insn()
1275 case BPF_STX | BPF_ATOMIC | BPF_W: in bpf_jit_emit_insn()
1289 case BPF_STX | BPF_ATOMIC | BPF_DW: in bpf_jit_emit_insn()
/linux-6.1.9/arch/s390/net/
Dbpf_jit_comp.c1148 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src_reg */ in bpf_jit_insn()
1153 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_insn()
1158 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ in bpf_jit_insn()
1163 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ in bpf_jit_insn()
1199 case BPF_STX | BPF_ATOMIC | BPF_DW: in bpf_jit_insn()
1200 case BPF_STX | BPF_ATOMIC | BPF_W: in bpf_jit_insn()
/linux-6.1.9/arch/arm64/net/
Dbpf_jit_comp.c1239 case BPF_STX | BPF_MEM | BPF_W: in build_insn()
1240 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
1241 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
1242 case BPF_STX | BPF_MEM | BPF_DW: in build_insn()
1286 case BPF_STX | BPF_ATOMIC | BPF_W: in build_insn()
1287 case BPF_STX | BPF_ATOMIC | BPF_DW: in build_insn()
1323 case BPF_STX: in find_fpb_offset()
1326 if (class == BPF_STX && mode == BPF_ATOMIC && in find_fpb_offset()
/linux-6.1.9/arch/sparc/net/
Dbpf_jit_comp_64.c1336 case BPF_STX | BPF_MEM | BPF_W: in build_insn()
1337 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
1338 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
1339 case BPF_STX | BPF_MEM | BPF_DW: { in build_insn()
1372 case BPF_STX | BPF_ATOMIC | BPF_W: { in build_insn()
1402 case BPF_STX | BPF_ATOMIC | BPF_DW: { in build_insn()
/linux-6.1.9/tools/bpf/
Dbpf_dbg.c146 [BPF_STX] = "stx",
247 case BPF_STX: in bpf_disasm()
248 op = op_table[BPF_STX]; in bpf_disasm()
661 case BPF_STX: in bpf_single_step()
Dbpf_exp.y206 bpf_set_curr_instr(BPF_STX, 0, 0, $4); }
/linux-6.1.9/lib/
Dtest_bpf.c3481 BPF_STMT(BPF_STX, 15), /* M3 = len */
4573 BPF_STMT(BPF_STX, 16),
4691 BPF_STMT(BPF_STX, 0),
4696 BPF_STMT(BPF_STX, 1),
4701 BPF_STMT(BPF_STX, 2),
4706 BPF_STMT(BPF_STX, 3),
4711 BPF_STMT(BPF_STX, 4),
4716 BPF_STMT(BPF_STX, 5),
4721 BPF_STMT(BPF_STX, 6),
4726 BPF_STMT(BPF_STX, 7),
[all …]
/linux-6.1.9/arch/x86/net/
Dbpf_jit_comp.c1264 case BPF_STX | BPF_MEM | BPF_B: in do_jit()
1265 case BPF_STX | BPF_MEM | BPF_H: in do_jit()
1266 case BPF_STX | BPF_MEM | BPF_W: in do_jit()
1267 case BPF_STX | BPF_MEM | BPF_DW: in do_jit()
1376 case BPF_STX | BPF_ATOMIC | BPF_W: in do_jit()
1377 case BPF_STX | BPF_ATOMIC | BPF_DW: in do_jit()
Dbpf_jit_comp32.c1952 case BPF_STX | BPF_MEM | BPF_B: in do_jit()
1953 case BPF_STX | BPF_MEM | BPF_H: in do_jit()
1954 case BPF_STX | BPF_MEM | BPF_W: in do_jit()
1955 case BPF_STX | BPF_MEM | BPF_DW: in do_jit()
2461 case BPF_STX | BPF_ATOMIC | BPF_W: in do_jit()
2462 case BPF_STX | BPF_ATOMIC | BPF_DW: in do_jit()
/linux-6.1.9/arch/arm/net/
Dbpf_jit_32.c1631 case BPF_STX | BPF_ATOMIC | BPF_W: in build_insn()
1632 case BPF_STX | BPF_ATOMIC | BPF_DW: in build_insn()
1635 case BPF_STX | BPF_MEM | BPF_W: in build_insn()
1636 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
1637 case BPF_STX | BPF_MEM | BPF_B: in build_insn()
1638 case BPF_STX | BPF_MEM | BPF_DW: in build_insn()
/linux-6.1.9/tools/testing/selftests/bpf/verifier/
Dunpriv.c210 BPF_RAW_INSN(BPF_STX | BPF_ATOMIC | BPF_DW,

12