/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H 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 …]
|
H A D | bpf_loop_inline.c | 46 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 D | verifier_cgroup_storage.c | 84 … __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 D | verifier_map_ret_val.c | 33 … __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 D | bpf_exp.y | 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); } 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 D | bpf_dbg.c | 279 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 D | test_bpf.c | 3067 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 D | bpf_common.h | 23 #define BPF_IMM 0x00 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 23 #define BPF_IMM 0x00 macro
|
/openbmc/linux/Documentation/bpf/standardization/ |
H A D | instruction-set.rst | 431 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 D | xlated_dumper.c | 243 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 D | filter.h | 285 .code = BPF_LD | BPF_DW | BPF_IMM, \ 299 .code = BPF_LD | BPF_DW | BPF_IMM, \
|
/openbmc/linux/samples/bpf/ |
H A D | bpf_insn.h | 86 .code = BPF_LD | BPF_DW | BPF_IMM, \
|
/openbmc/linux/Documentation/bpf/ |
H A D | linux-notes.rst | 40 BPF_IMM | BPF_DW | BPF_LD 0x18 0x3 dst = var_addr(imm) variable id dat…
|
H A D | classic_vs_extended.rst | 370 BPF_IMM 0x00 /* used for 32-bit mov in classic BPF and 64-bit in eBPF */
|
/openbmc/linux/kernel/ |
H A D | seccomp.c | 296 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 D | bpf_jit_comp_32.c | 570 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 D | disasm.c | 283 } else if (BPF_MODE(insn->code) == BPF_IMM && in print_bpf_insn()
|
H A D | test_sysctl.c | 1422 if (prog[insn_num].code != (BPF_LD | BPF_DW | BPF_IMM)) { in fixup_sysctl_value()
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 283 } else if (BPF_MODE(insn->code) == BPF_IMM && in print_bpf_insn()
|
H A D | core.c | 307 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 D | libbpf_internal.h | 546 return insn->code == (BPF_LD | BPF_IMM | BPF_DW); in is_ldimm64_insn()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | ctx_rewrite.c | 700 double_insn = insn[i].code == (BPF_LD | BPF_IMM | BPF_DW); in print_xlated()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 820 case BPF_LD | BPF_IMM | BPF_DW: in build_insn()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 966 case BPF_LD | BPF_IMM | BPF_DW: /* dst = (u64) imm */ in bpf_jit_build_body()
|