Home
last modified time | relevance | path

Searched refs:BPF_IMM (Results 1 – 25 of 46) sorted by relevance

12

/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/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/bpf/
H A Dbpf_exp.y148 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); }
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); }
H A Dbpf_dbg.c279 case BPF_LD | BPF_IMM: in bpf_disasm()
283 case BPF_LDX | BPF_IMM: in bpf_disasm()
718 case BPF_LD | BPF_IMM: in bpf_single_step()
721 case BPF_LDX | BPF_IMM: 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),
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),
3412 BPF_STMT(BPF_LD | BPF_IMM, 2),
[all …]
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h23 #define BPF_IMM 0x00 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h23 #define BPF_IMM 0x00 macro
/openbmc/linux/Documentation/bpf/standardization/
H A Dinstruction-set.rst431 BPF_IMM 0x00 64-bit immediate instructions `64-bit immediate instructions`_
548 Instructions with the ``BPF_IMM`` 'mode' modifier use the wide instruction
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/include/linux/
H A Dfilter.h285 .code = BPF_LD | BPF_DW | BPF_IMM, \
299 .code = BPF_LD | BPF_DW | BPF_IMM, \
/openbmc/linux/samples/bpf/
H A Dbpf_insn.h86 .code = BPF_LD | BPF_DW | BPF_IMM, \
/openbmc/linux/Documentation/bpf/
H A Dlinux-notes.rst40 BPF_IMM | BPF_DW | BPF_LD 0x18 0x3 dst = var_addr(imm) variable id dat…
H A Dclassic_vs_extended.rst370 BPF_IMM 0x00 /* used for 32-bit mov in classic BPF and 64-bit in eBPF */
/openbmc/linux/kernel/
H A Dseccomp.c296 ftest->code = BPF_LD | BPF_IMM; in seccomp_check_filter()
300 ftest->code = BPF_LDX | BPF_IMM; in seccomp_check_filter()
325 case BPF_LD | BPF_IMM: in seccomp_check_filter()
326 case BPF_LDX | BPF_IMM: in seccomp_check_filter()
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_32.c570 case BPF_LD | BPF_IMM: in bpf_jit_compile()
573 case BPF_LDX | BPF_IMM: in bpf_jit_compile()
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c283 } else if (BPF_MODE(insn->code) == BPF_IMM && in print_bpf_insn()
H A Dtest_sysctl.c1422 if (prog[insn_num].code != (BPF_LD | BPF_DW | BPF_IMM)) { in fixup_sysctl_value()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c283 } else if (BPF_MODE(insn->code) == BPF_IMM && in print_bpf_insn()
H A Dcore.c307 dst[i].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_prog_calc_tag()
1355 case BPF_LD | BPF_IMM | BPF_DW: in bpf_jit_blind_insn()
1457 if (insn[0].code == (BPF_LD | BPF_IMM | BPF_DW) && in bpf_jit_blind_constants()
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf_internal.h546 return insn->code == (BPF_LD | BPF_IMM | BPF_DW); in is_ldimm64_insn()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c700 double_insn = insn[i].code == (BPF_LD | BPF_IMM | BPF_DW); in print_xlated()
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c820 case BPF_LD | BPF_IMM | BPF_DW: in build_insn()
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c966 case BPF_LD | BPF_IMM | BPF_DW: /* dst = (u64) imm */ in bpf_jit_build_body()

12